1 package org.robolectric.testing; 2 3 import org.robolectric.ShadowWranglerIntegrationTest; 4 import org.robolectric.annotation.Implementation; 5 import org.robolectric.annotation.Implements; 6 import org.robolectric.annotation.RealObject; 7 8 @Implements(Foo.class) 9 public class ShadowFoo extends ShadowWranglerIntegrationTest.ShadowFooParent { 10 @RealObject public Foo realFooField; 11 public Foo realFooInConstructor; 12 public String name; 13 14 @Override 15 @Implementation __constructor__(String name)16 protected void __constructor__(String name) { 17 super.__constructor__(name); 18 this.name = name; 19 realFooInConstructor = realFooField; 20 } 21 22 @SuppressWarnings({"UnusedDeclaration"}) getName()23 public String getName() { 24 return name; 25 } 26 } 27