Home
last modified time | relevance | path

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

/external/mockito/src/test/java/org/mockitousage/misuse/
DDetectingFinalMethodsTest.java25 @Mock private WithFinal withFinal; field in DetectingFinalMethodsTest
29 assumeTrue("Does not apply for inline mocks", withFinal.getClass() != WithFinal.class); in shouldFailWithUnfinishedVerification()
30 verify(withFinal).foo(); in shouldFailWithUnfinishedVerification()
32 verify(withFinal).foo(); in shouldFailWithUnfinishedVerification()
39 assumeTrue("Does not apply for inline mocks", withFinal.getClass() != WithFinal.class); in shouldFailWithUnfinishedStubbing()
40 withFinal = mock(WithFinal.class); in shouldFailWithUnfinishedStubbing()
42 when(withFinal.foo()).thenReturn(null); in shouldFailWithUnfinishedStubbing()
DDetectingMisusedMatchersTest.java34 @Mock private WithFinal withFinal; field in DetectingMisusedMatchersTest
89 assumeTrue("Does not apply for inline mocks", withFinal.getClass() != WithFinal.class); in shouldSayUnfinishedVerificationButNotInvalidUseOfMatchers()
90 verify(withFinal).finalMethod(anyObject()); in shouldSayUnfinishedVerificationButNotInvalidUseOfMatchers()
92 verify(withFinal); in shouldSayUnfinishedVerificationButNotInvalidUseOfMatchers()