Home
last modified time | relevance | path

Searched refs:mockedType (Results 1 – 12 of 12) sorted by relevance

/external/mockito/src/main/java/org/mockito/internal/creation/bytebuddy/
DSubclassInjectionLoader.java52 …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()
DMockFeatures.java14 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()
DSubclassBytecodeGenerator.java78 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()
DInlineBytecodeGenerator.java136 || 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()
DTypeCachingBytecodeGenerator.java31 ClassLoader classLoader = params.mockedType.getClassLoader(); in mockClass()
33 …new MockitoMockKey(params.mockedType, params.interfaces, params.serializableMode, params.stripAnno… in mockClass()
DByteBuddyCrossClassLoaderSerializationSupport.java118 … String mockedType = MockUtil.getMockSettings(mockitoMock).getTypeToMock().getCanonicalName(); in writeReplace()
120 "The mock '" + mockName + "' of type '" + mockedType + "'", in writeReplace()
DSubclassLoader.java22 …ClassLoadingStrategy<ClassLoader> resolveStrategy(Class<?> mockedType, ClassLoader classLoader, bo… in resolveStrategy() argument
/external/dexmaker/dexmaker-mockito-inline/src/main/java/com/android/dx/mockito/inline/
DMockFeatures.java12 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()
DClassTransformer.java120 || 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/
DStaticClassTransformer.java114 || 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/src/main/java/org/mockito/internal/exceptions/
DReporter.java602 …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()
/external/mockito/subprojects/android/src/main/java/org/mockito/android/internal/creation/
DAndroidLoadingStrategy.java19 …public ClassLoadingStrategy<ClassLoader> resolveStrategy(Class<?> mockedType, ClassLoader classLoa… in resolveStrategy() argument