Home
last modified time | relevance | path

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

/external/mockito/src/test/java/org/mockito/internal/util/
DMockUtilTest.java55 assertFalse(MockUtil.isSpy("i mock a mock")); in should_validate_spy()
56 assertFalse(MockUtil.isSpy(Mockito.mock(List.class))); in should_validate_spy()
57 assertFalse(MockUtil.isSpy(null)); in should_validate_spy()
59 assertTrue(MockUtil.isSpy(Mockito.spy(new ArrayList()))); in should_validate_spy()
60 assertTrue(MockUtil.isSpy(Mockito.spy(ArrayList.class))); in should_validate_spy()
61 …assertTrue(MockUtil.isSpy(Mockito.mock(ArrayList.class, withSettings().defaultAnswer(Mockito.CALLS… in should_validate_spy()
DDefaultMockingDetailsTest.java62 assertFalse(mockingDetails(foo).isSpy()); in should_know_mock()
63 assertFalse(mockingDetails(mock(Foo.class)).isSpy()); in should_know_mock()
68 assertFalse(mockingDetails("non mock").isSpy()); in should_handle_non_mocks()
71 assertFalse(mockingDetails(null).isSpy()); in should_handle_non_mocks()
/external/mockito/src/main/java/org/mockito/internal/util/
DDefaultMockingDetails.java36 public boolean isSpy(){ in isSpy() method in DefaultMockingDetails
37 return MockUtil.isSpy(toInspect); in isSpy()
DMockUtil.java69 public static boolean isSpy(Object mock) { in isSpy() method in MockUtil
/external/mockito/src/main/java/org/mockito/
DMockingDetails.java38 boolean isSpy(); in isSpy() method
/external/mockito/src/main/java/org/mockito/internal/configuration/injection/scanner/
DMockScanner.java84 || MockUtil.isSpy(instance); in isMockOrSpy()
/external/dexmaker/dexmaker-mockito-inline-extended-tests/src/main/java/com/android/dx/mockito/inline/extended/tests/
DMockStatic.java421 assertFalse(superClassDetails.isSpy()); in verifyMockingDetails()
427 assertTrue(subClassDetails.isSpy()); in verifyMockingDetails()