Searched refs:shadowClass (Results 1 – 4 of 4) sorted by relevance
81 public void bindShadowClass(Class<?> realClass, Class<?> shadowClass) { in bindShadowClass() argument82 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() local171 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() argument192 MetaShadow metaShadow = getMetaShadow(shadowClass); in injectRealObjectOn()198 private MetaShadow getMetaShadow(Class<?> shadowClass) { in getMetaShadow() argument[all …]
42 public static void bindShadowClass(Class<?> shadowClass) { in bindShadowClass() argument43 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() local51 String unloadableClassName = shadowClass.getSimpleName(); in bindShadowClass()
26 for (Class<?> shadowClass : Robolectric.getDefaultShadowClasses()) { in testAllImplementationMethodsHaveCorrectSignature()27 verifyClass(shadowClass); in testAllImplementationMethodsHaveCorrectSignature()33 private void verifyClass(final Class<?> shadowClass) { in verifyClass() argument34 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()
96 public static void bindShadowClass(Class<?> shadowClass) { in bindShadowClass() argument97 RobolectricInternals.bindShadowClass(shadowClass); in bindShadowClass()105 for (Class<?> shadowClass : shadowClasses) { in bindShadowClasses()106 bindShadowClass(shadowClass); in bindShadowClasses()