HomeSort by relevance Sort by last modified time
    Searched defs:shadowClass (Results 1 - 4 of 4) sorted by null

  /external/robolectric/src/main/java/com/xtremelabs/robolectric/bytecode/
RobolectricInternals.java 42 public static void bindShadowClass(Class<?> shadowClass) {
43 Implements realClass = shadowClass.getAnnotation(Implements.class);
45 throw new IllegalArgumentException(shadowClass + " is not annotated with @Implements");
49 ShadowWrangler.getInstance().bindShadowClass(realClass.value(), shadowClass);
51 String unloadableClassName = shadowClass.getSimpleName();
ShadowWrangler.java 81 public void bindShadowClass(Class<?> realClass, Class<?> shadowClass) {
82 shadowClassMap.put(realClass.getName(), shadowClass.getName());
83 if (debug) System.out.println("shadow " + realClass + " with " + shadowClass);
170 Class<?> shadowClass = loadClass(shadowClassName, instance.getClass().getClassLoader());
171 Constructor<?> constructor = findConstructor(instance, shadowClass);
175 shadow = shadowClass.newInstance();
179 injectRealObjectOn(shadow, shadowClass, instance);
191 private void injectRealObjectOn(Object shadow, Class<?> shadowClass, Object instance) {
192 MetaShadow metaShadow = getMetaShadow(shadowClass);
198 private MetaShadow getMetaShadow(Class<?> shadowClass) {
    [all...]
  /external/robolectric/src/test/java/com/xtremelabs/robolectric/bytecode/
RobolectricWiringTest.java 26 for (Class<?> shadowClass : Robolectric.getDefaultShadowClasses()) {
27 verifyClass(shadowClass);
33 private void verifyClass(final Class<?> shadowClass) {
34 Implements annotation = shadowClass.getAnnotation(Implements.class);
38 shadowClass.getConstructor(implementedClass);
41 shadowClass.getConstructor();
43 mismatches.add("Missing constructor for " + shadowClass.getSimpleName());
47 for (Method shadowMethod : shadowClass.getDeclaredMethods()) {
  /external/robolectric/src/main/java/com/xtremelabs/robolectric/shadows/
ShadowParcel.java 741 Class shadowClass = ShadowWrangler.getInstance().findShadowClass(c, loader);
742 if (shadowClass != null) {
743 c = shadowClass;
744 name = shadowClass.getName();

Completed in 487 milliseconds