← Quiz: Testing Spring Boot: all 10 questions
Quiz: Testing Spring Boot · Question 7 of 10
What is the Arrange-Act-Assert pattern?
What is the Arrange-Act-Assert pattern?
- A.Set up the data and mocks, call the method under test, then check the result
- B.Write the code, then the test, then the documentation
- C.Run unit tests, slice tests, then integration tests
- D.Mock, verify, stub
Answer & explanation
Correct answer: Set up the data and mocks, call the method under test, then check the result
Also written as given / when / then.
Can you get the rest right without peeking?
Take the timed Quiz: Testing Spring Boot quiz free. Pass it to earn XP and count towards your certificate.
Start the quiz →