1 package com.xtremelabs.robolectric.bytecode; 2 3 import com.xtremelabs.robolectric.internal.Implements; 4 import com.xtremelabs.robolectric.internal.RealObject; 5 6 @Implements(Foo.class) 7 public class ShadowFoo extends ShadowWranglerTest.ShadowFooParent { 8 @RealObject Foo realFooField; 9 Foo realFooInConstructor; 10 11 Foo realFooCtor; 12 13 String name; 14 ShadowFoo(Foo foo)15 public ShadowFoo(Foo foo) { 16 this.realFooCtor = foo; 17 } 18 19 @Override 20 @SuppressWarnings({"UnusedDeclaration"}) __constructor__(String name)21 public void __constructor__(String name) { 22 super.__constructor__(name); 23 this.name = name; 24 realFooInConstructor = realFooField; 25 } 26 27 @SuppressWarnings({"UnusedDeclaration"}) getName()28 public String getName() { 29 return name; 30 } 31 } 32