Re: JUnit Test Initialization

2011-02-01 Thread Joe Kramer
Hi John, Thanks for the help. What I ended up doing was: @BeforeClass public static void setUpBeforeClass() throws Exception { ERXApplication.setup(new String[0]); } That worked for me. Thanks again, Joe On Tue, Feb 1, 2011 at 2:08 PM, John Huss wrote: > There are varying levels of init

Re: JUnit Test Initialization

2011-02-01 Thread John Huss
There are varying levels of initialization you can perform. One of the shorter ones is this: @BeforeClass public static void setUpBeforeClass() throws Exception { ERXExtensions.initEOF(new String[0]); } You have to have the working directory set to ${working_dir_loc_WOLips:YOURPROJECT} for t

JUnit Test Initialization

2011-02-01 Thread Joe Kramer
Hi Everyone, I'm writing my first JUnit test for a WebObjects Application and I've hit a roadblock. I need access to some of the data in the database. When I just try to run the test I get an error: "java.lang.IllegalArgumentException: An object store for the entity "Account" could not be found.