Home
last modified time | relevance | path

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

/external/mockito/src/test/java/org/mockitousage/strictness/
DStrictnessPerMockTest.java37 IMethods lenientMock; field in StrictnessPerMockTest
42 assertNull(lenientMock); in before()
43 lenientMock = mock(IMethods.class, withSettings().lenient()); in before()
48 assertTrue(mockingDetails(lenientMock).getMockCreationSettings().isLenient()); in knows_if_mock_is_lenient()
55 given(lenientMock.simpleMethod(100)).willReturn("100"); in potential_stubbing_problem()
59 lenientMock.simpleMethod(200); in potential_stubbing_problem()
73 given(lenientMock.simpleMethod(100)).willReturn("100"); in unnecessary_stubbing()
93 given(lenientMock.simpleMethod(100)).willReturn("100"); in verify_no_more_invocations()
98 lenientMock.simpleMethod(100); in verify_no_more_invocations()
104 verifyNoMoreInteractions(strictStubsMock, lenientMock); in verify_no_more_invocations()
DStrictnessWhenRuleStrictnessIsUpdatedTest.java44 final IMethods lenientMock = mock(IMethods.class, withSettings().lenient()); in strictness_per_mock() local
45 when(lenientMock.simpleMethod(1)).thenReturn("1"); in strictness_per_mock()
46 lenientMock.simpleMethod(100); in strictness_per_mock()