/external/mockito/src/main/java/org/mockito/internal/creation/bytebuddy/ |
D | SubclassInjectionLoader.java | 52 …public ClassLoadingStrategy<ClassLoader> resolveStrategy(Class<?> mockedType, ClassLoader classLoa… in resolveStrategy() argument 53 …t.INJECTION.with(codegen ? InjectionBase.class.getProtectionDomain() : mockedType.getProtectionDom… in resolveStrategy() 72 …public ClassLoadingStrategy<ClassLoader> resolveStrategy(Class<?> mockedType, ClassLoader classLoa… in resolveStrategy() argument 75 } else if (classLoader != mockedType.getClassLoader()) { in resolveStrategy() 76 return ClassLoadingStrategy.Default.WRAPPER.with(mockedType.getProtectionDomain()); in resolveStrategy() 81 privateLookup = privateLookupIn.invoke(null, mockedType, lookup); in resolveStrategy() 84 … return ClassLoadingStrategy.Default.WRAPPER.with(mockedType.getProtectionDomain()); in resolveStrategy() 92 …va module system prevents Mockito from defining a mock class in the same package as " + mockedType, in resolveStrategy() 104 …public ClassLoadingStrategy<ClassLoader> resolveStrategy(Class<?> mockedType, ClassLoader classLoa… in resolveStrategy() argument 105 return loader.resolveStrategy(mockedType, classLoader, codegen); in resolveStrategy()
|
D | MockFeatures.java | 14 final Class<T> mockedType; field in MockFeatures 19 …private MockFeatures(Class<T> mockedType, Set<Class<?>> interfaces, SerializableMode serializableM… in MockFeatures() argument 20 this.mockedType = mockedType; in MockFeatures() 26 public static <T> MockFeatures<T> withMockFeatures(Class<T> mockedType, in withMockFeatures() argument 30 return new MockFeatures<T>(mockedType, interfaces, serializableMode, stripAnnotations); in withMockFeatures()
|
D | SubclassBytecodeGenerator.java | 78 String name = nameFor(features.mockedType); in mockClass() 80 byteBuddy.subclass(features.mockedType) in mockClass() 85 : features.mockedType.getAnnotations()) in mockClass() 112 .append(features.mockedType) in mockClass() 119 if (classLoader != features.mockedType.getClassLoader()) { in mockClass() 120 assertVisibility(features.mockedType); in mockClass() 129 ….load(classLoader, loader.resolveStrategy(features.mockedType, classLoader, name.startsWith(CODEGE… in mockClass()
|
D | InlineBytecodeGenerator.java | 136 || Modifier.isAbstract(features.mockedType.getModifiers()); in mockClass() 146 features.mockedType; in mockClass() 151 Class<?> type = features.mockedType; in triggerRetransformation() 183 && !features.mockedType.isArray() in checkSupportedCombination() 184 && !features.mockedType.isPrimitive() in checkSupportedCombination() 185 && Modifier.isFinal(features.mockedType.getModifiers())) { in checkSupportedCombination() 186 …ew MockitoException("Unsupported settings with this type '" + features.mockedType.getName() + "'"); in checkSupportedCombination()
|
D | TypeCachingBytecodeGenerator.java | 31 ClassLoader classLoader = params.mockedType.getClassLoader(); in mockClass() 33 …new MockitoMockKey(params.mockedType, params.interfaces, params.serializableMode, params.stripAnno… in mockClass()
|
D | SubclassLoader.java | 22 …ClassLoadingStrategy<ClassLoader> resolveStrategy(Class<?> mockedType, ClassLoader classLoader, bo… in resolveStrategy() argument
|
D | ByteBuddyCrossClassLoaderSerializationSupport.java | 118 … String mockedType = MockUtil.getMockSettings(mockitoMock).getTypeToMock().getCanonicalName(); in writeReplace() 120 "The mock '" + mockName + "' of type '" + mockedType + "'", in writeReplace()
|
/external/dexmaker/dexmaker-mockito-inline/src/main/java/com/android/dx/mockito/inline/ |
D | MockFeatures.java | 12 final Class<T> mockedType; field in MockFeatures 15 private MockFeatures(Class<T> mockedType, Set<Class<?>> interfaces) { in MockFeatures() argument 16 this.mockedType = mockedType; in MockFeatures() 20 static <T> MockFeatures<T> withMockFeatures(Class<T> mockedType, Set<Class<?>> interfaces) { in withMockFeatures() argument 21 return new MockFeatures<>(mockedType, interfaces); in withMockFeatures()
|
D | ClassTransformer.java | 120 || Modifier.isAbstract(features.mockedType.getModifiers()); in mockClass() 123 && !features.mockedType.isArray() in mockClass() 124 && !features.mockedType.isPrimitive() in mockClass() 125 && Modifier.isFinal(features.mockedType.getModifiers())) { in mockClass() 127 + features.mockedType.getName() + "'"); in mockClass() 132 Class<?> type = features.mockedType; in mockClass()
|
/external/dexmaker/dexmaker-mockito-inline-extended/src/main/java/com/android/dx/mockito/inline/ |
D | StaticClassTransformer.java | 114 || Modifier.isAbstract(features.mockedType.getModifiers()); in mockClass() 117 && !features.mockedType.isArray() in mockClass() 118 && !features.mockedType.isPrimitive() in mockClass() 119 && Modifier.isFinal(features.mockedType.getModifiers())) { in mockClass() 121 + features.mockedType.getName() + "'"); in mockClass() 126 Class<?> type = features.mockedType; in mockClass()
|
/external/mockito/subprojects/android/src/main/java/org/mockito/android/internal/creation/ |
D | AndroidLoadingStrategy.java | 19 …public ClassLoadingStrategy<ClassLoader> resolveStrategy(Class<?> mockedType, ClassLoader classLoa… in resolveStrategy() argument
|
/external/mockito/src/main/java/org/mockito/internal/exceptions/ |
D | Reporter.java | 602 …ockitoException mockedTypeIsInconsistentWithSpiedInstanceType(Class<?> mockedType, Object spiedIns… in mockedTypeIsInconsistentWithSpiedInstanceType() argument 605 … must be: " + spiedInstance.getClass().getSimpleName() + ", but is: " + mockedType.getSimpleName(), in mockedTypeIsInconsistentWithSpiedInstanceType() 715 …toException mockedTypeIsInconsistentWithDelegatedInstanceType(Class<?> mockedType, Object delegate… in mockedTypeIsInconsistentWithDelegatedInstanceType() argument 718 …t be: " + delegatedInstance.getClass().getSimpleName() + ", but is: " + mockedType.getSimpleName(), in mockedTypeIsInconsistentWithDelegatedInstanceType()
|