Hi Paul, You didn't misread. It's supposed to work. :)
Could you try to run the same test using this WOUnit package [1] and send me the produced log? This package adds some log messages that can help solving the problem. [1]http://dl.dropbox.com/u/9599580/wounit-1.1-debug.jar Cheers, Henrique On 18/06/2011, at 01:10, Paul Hoadley wrote: > Hi Henrique, > > I wonder if I am mis-reading the documentation on the @UnderTest annotation > here: > > http://hprange.github.com/wounit/usage.html > > It seems like it should be sufficient to instantiate a MockEditingContext > with a @Rule annotation, and then just declare an EO with the @UnderTest > annotation. Yet this code fragment tells me category is null: > > public class CategoryTest { > @UnderTest > private Category category; > > @Rule > public MockEditingContext ec = new MockEditingContext("Survey"); > > @Test > public void categoryMustHaveDescriptionAndName() { > > System.out.println("CategoryTest.categoryMustHaveDescriptionAndName: category > = " > + category); > > This is running inside Eclipse 3.6.2, which seems to have JUnit 4.8 built in. > Is there a step I'm missing? > > > -- > Paul. > > http://logicsquad.net/ > > > _______________________________________________ > Do not post admin requests to the list. They will be ignored. > Webobjects-dev mailing list ([email protected]) > Help/Unsubscribe/Update your Subscription: > http://lists.apple.com/mailman/options/webobjects-dev/hprange%40gmail.com > > This email sent to [email protected]
_______________________________________________ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list ([email protected]) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to [email protected]
