/* * (c) 2009 Thomas Smits */ package pr2.exceptions.junit; import org.junit.jupiter.api.Test; import static org.junit.jupiter.api.Assertions.assertEquals; import org.junit.jupiter.api.Assertions; public class BrokenTest { @Test public void testKaputt() { String s1 = new String("Hallo"); assertEquals("Hallo", s1); Assertions.assertThrows(NullPointerException.class, () -> { new String((String) null); new String((char[]) null); }); String s3 = new String("World"); assertEquals("world", s3); } }