Q38
How can we simulate if then behavior in Junits?
A.
if{..} else{..}
B.
if(..){..} else{..}
C.
Mockito.when(...).thenReturn(...);
AnswerD.
Mockito.if(..).then(..);
Answer: Option C
Solution
Answer: Option C
No explanation is given for this question Let's Discuss on Board