Home
last modified time | relevance | path

Searched refs:doInt (Results 1 – 1 of 1) sorted by relevance

/external/mockito/src/test/java/org/mockitousage/bugs/
DMockitoStubbedCallInAnswerTest.java27 when(bar.doInt()).thenReturn(0); in stubbing_the_right_mock()
28 when(foo.doInt()).thenAnswer(new Answer<Integer>() { in stubbing_the_right_mock()
31 return bar.doInt(); in stubbing_the_right_mock()
34 assertEquals(0, foo.doInt()); in stubbing_the_right_mock()
35 assertEquals(0, bar.doInt()); in stubbing_the_right_mock()
38 when(foo.doInt()).thenReturn(1); in stubbing_the_right_mock()
41 assertEquals(1, foo.doInt()); in stubbing_the_right_mock()
44 assertEquals(0, bar.doInt()); in stubbing_the_right_mock()
52 return String.valueOf(bar.doInt()); in return_type_validation()
64 when(foo.doInt()).thenAnswer(new Answer<Integer>() { in prevents_stack_overflow()
[all …]