hprange / wounit

The WOUnit framework contains a set of utilities for testing WebObjects applications using JUnit 4.7 or later capabilities.
http://hprange.github.io/wounit/
Apache License 2.0
19 stars 18 forks source link

Inherited fields are not correctly initialized #11

Closed hprange closed 13 years ago

hprange commented 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(); } }