Search the courses, subjects, tracks, games and features, or jump straight to a page.
2 cards from this section. Quick, good the night before a test.
What does the @Test annotation do?
Think about what indicates that a method should be run as a test.
Explain how @BeforeEach and @AfterEach interact in a test class.
Consider why it’s important to reset state between tests.
What does the @BeforeEach annotation do?
What do you need to prepare before each test runs?
Is the @Disabled annotation used to run a test method?
Consider what it means to skip a test.
Create a test class using JUnit 5 that utilizes all the annotations discussed. Explain your choice of how they facilitate testing.
Consider a scenario where you need to set up a complex object before tests.
1 more question in this section. Enroll free to practise them all.
Enroll free