HomeSort by relevance Sort by last modified time
    Searched refs:mocked (Results 1 - 9 of 9) sorted by null

  /external/dexmaker/dexmaker-mockito-inline-tests/src/main/java/com/android/dx/mockito/inline/tests/
MockFinal.java 133 SubClass mocked = mock(SubClass.class); local
139 assertNull(mocked.returnA());
140 assertNull(mocked.returnB());
141 assertNull(mocked.returnC());
151 // mocked is unaffected
152 assertNull(mocked.returnA());
153 assertNull(mocked.returnB());
154 assertNull(mocked.returnC());
161 // Set fake values for mocked
162 when(mocked.returnA()).thenReturn("fake2A")
    [all...]
  /external/mockito/src/test/java/org/mockitousage/basicapi/
MockingMultipleInterfacesTest.java 92 assertThat(e.getMessage()).contains("You mocked following type: IMethods");
109 Object mocked = mock(interface1, withSettings().extraInterfaces(interface2)); local
110 assertThat(interface2.isInstance(mocked)).describedAs("mock should be assignable from interface2 type").isTrue();
  /external/mockito/src/main/java/org/mockito/internal/creation/bytebuddy/
InlineBytecodeGenerator.java 66 private final WeakConcurrentSet<Class<?>> mocked; field in class:InlineBytecodeGenerator
81 mocked = new WeakConcurrentSet<Class<?>>(WeakConcurrentSet.Cleaner.INLINE);
107 * In order to check if an instance is a mock we need to look up if this instance is registered in the {@code mocked} set. But to look
153 if (mocked.add(type)) {
172 mocked.remove(failed);
192 if (mocked.add(type)) {
206 || !mocked.contains(classBeingRedefined)
MockMethodAdvice.java 69 @Advice.Enter Callable<?> mocked) throws Throwable {
70 if (mocked != null) {
71 returned = mocked.call();