Search the courses, subjects, tracks, games and features, or jump straight to a page.
5 cards from this section. Quick, good the night before a test.
What is JUnit used for?
Think about testing in Java development.
Describe what Mockito does.
Consider what you need when testing dependencies.
What is the purpose of JUnit?
Remember, it's about testing.
Mockito is used primarily for...
Think about isolating the test context.
Create a unit test using JUnit for a simple calculator that handles addition and subtraction. Integrate Mockito to mock a logging service that records every operation performed.
Consider how to structure the class and its dependencies.
Suppose you have several services interacting with an API. Design an approach using Mockito to isolate your service tests from the actual API calls while using JaCoCo to measure code coverage.
Think about the different behaviors that need to be simulated.
6 more questions in this section. Enroll free to practise them all.
Enroll free