Home
last modified time | relevance | path

Searched refs:shadowClass (Results 1 – 4 of 4) sorted by relevance

/external/robolectric/src/main/java/com/xtremelabs/robolectric/bytecode/
DShadowWrangler.java81 public void bindShadowClass(Class<?> realClass, Class<?> shadowClass) { in bindShadowClass() argument
82 shadowClassMap.put(realClass.getName(), shadowClass.getName()); in bindShadowClass()
83 if (debug) System.out.println("shadow " + realClass + " with " + shadowClass); in bindShadowClass()
170 Class<?> shadowClass = loadClass(shadowClassName, instance.getClass().getClassLoader()); in shadowFor() local
171 Constructor<?> constructor = findConstructor(instance, shadowClass); in shadowFor()
175 shadow = shadowClass.newInstance(); in shadowFor()
179 injectRealObjectOn(shadow, shadowClass, instance); in shadowFor()
191 private void injectRealObjectOn(Object shadow, Class<?> shadowClass, Object instance) { in injectRealObjectOn() argument
192 MetaShadow metaShadow = getMetaShadow(shadowClass); in injectRealObjectOn()
198 private MetaShadow getMetaShadow(Class<?> shadowClass) { in getMetaShadow() argument
[all …]
DRobolectricInternals.java42 public static void bindShadowClass(Class<?> shadowClass) { in bindShadowClass() argument
43 Implements realClass = shadowClass.getAnnotation(Implements.class); in bindShadowClass()
45 throw new IllegalArgumentException(shadowClass + " is not annotated with @Implements"); in bindShadowClass()
49 ShadowWrangler.getInstance().bindShadowClass(realClass.value(), shadowClass); in bindShadowClass() local
51 String unloadableClassName = shadowClass.getSimpleName(); in bindShadowClass()
/external/robolectric/src/test/java/com/xtremelabs/robolectric/bytecode/
DRobolectricWiringTest.java26 for (Class<?> shadowClass : Robolectric.getDefaultShadowClasses()) { in testAllImplementationMethodsHaveCorrectSignature()
27 verifyClass(shadowClass); in testAllImplementationMethodsHaveCorrectSignature()
33 private void verifyClass(final Class<?> shadowClass) { in verifyClass() argument
34 Implements annotation = shadowClass.getAnnotation(Implements.class); in verifyClass()
38 shadowClass.getConstructor(implementedClass); in verifyClass()
41 shadowClass.getConstructor(); in verifyClass()
43 mismatches.add("Missing constructor for " + shadowClass.getSimpleName()); in verifyClass()
47 for (Method shadowMethod : shadowClass.getDeclaredMethods()) { in verifyClass()
/external/robolectric/src/main/java/com/xtremelabs/robolectric/
DRobolectric.java96 public static void bindShadowClass(Class<?> shadowClass) { in bindShadowClass() argument
97 RobolectricInternals.bindShadowClass(shadowClass); in bindShadowClass()
105 for (Class<?> shadowClass : shadowClasses) { in bindShadowClasses()
106 bindShadowClass(shadowClass); in bindShadowClasses()