WOUnit 1.1: @UnderTest annotation
WOUnit 1.1: @UnderTest annotation
- Subject: WOUnit 1.1: @UnderTest annotation
- From: Paul Hoadley <email@hidden>
- Date: Sat, 18 Jun 2011 13:40:32 +0930
Hi Henrique,
I wonder if I am mis-reading the documentation on the @UnderTest annotation here:
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?
|
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden