import org.junit.* import org.junit.jupiter.api.* (oder spezifisch import org.junit.Test;) import static org.junit.Assert.assertEquals; import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertTrue; import static org.junit.jupiter.api.Assertions.assertTimeoutPreemptively; @BeforeClass //executed once, before the start of all tests @BeforeAll @AfterClass //executed once, after all tests habe been finished @AfterAll @Before //executed before each test @BeforeEach @After //executed after each test @AfterEach @Test //identifies a method as a test method @Test @RepeatedTest() @Ignore or @Ignore("Why disabled") @Disabled or @Disabled() @Test(expected=ArithmeticException.class) @Test assertThrows(ArithmeticException.class, () -> ...); @Test(timeout=100) @Test assertTimeoutPreemptively(Duration.ofMillis(100), () -> {...});