• Tutorials
  • Courses
  • Tracks

Question 3

Last Updated :
Discuss
Comments

Which Mockito method is used to define the behavior of a mock object?

mockBehavior()

when(...).thenReturn(...)

given(...).willReturn(...)

Both B and C

Share your thoughts in the comments