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