Search the courses, subjects, tracks, games and features, or jump straight to a page.
3 cards from this section. Quick, good the night before a test.
What is JUnit?
Think of a term used for writing tests.
What does the @Test annotation do?
It's essential for identifying what methods should be executed as tests.
What is the primary purpose of JUnit?
Consider what the major Java testing frameworks focus on.
True or False: JUnit can only be used with standalone Java applications.
Think about integration capabilities.
Write a JUnit test method that tests a simple add function and uses assertions to verify correctness.
Think about what `assertEquals` checks.
Explain how you would structure a JUnit test class to include setup and teardown operations.
Each test should have a controlled environment.
5 more questions in this section. Enroll free to practise them all.
Enroll free