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