Hi Ron,

On 18/04/2012, at 13:06, Henrique Prange wrote:

> Hi Ron,
> 
> On 18/04/2012, at 08:06, Ron X wrote:
> 
>> What is the meaning of using @UnderTest?
> 
> 
> The @UnderTest annotation can be used to create real enterprise objects and 
> insert them into the editing context rule. It is a shorthand for:
> 
> public class SongTest {
>     ...
>     private Song song;
>  
>     @Before
>     public void setup() {
>         foo = Song.createFoo(ec);
>     }
>     ...
> }

A small fix:

public class SongTest {
    ...
    private Song song;
 
    @Before
    public void setup() {
        song = Song.createSong(ec);
    }
    ...
}

Cheers,

Henrique
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to