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/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to