Closed hprange closed 13 years ago
If you have a ParentTest:
public class ParentTest { @Rule public MockEditingContext ec = new MockEditingContext("AnyModel");
@UnderTest protected Foo foo; }
And a ChildTest:
public class ChildTest extends ParentTest{ @Test public void anyTest() { // Throws a NullPointerException foo.bar(); } }
If you have a ParentTest:
public class ParentTest { @Rule public MockEditingContext ec = new MockEditingContext("AnyModel");
@UnderTest protected Foo foo; }
And a ChildTest:
public class ChildTest extends ParentTest{ @Test public void anyTest() { // Throws a NullPointerException foo.bar(); } }