On Tue, May 18, 2010 at 2:56 PM, Anton Podviaznikov
<[email protected]> wrote:

> Yes, I use AbstractQi4jTest but I use this methods in one test.

SO, between...

>     @Test
>     public void createCompany()
>     {
>         companyService.addCompany("Company 1");
>     }

AND

>     @Test
>     public void findCompanies()
>     {

the entire Qi4j application is torn down and brought back up, and
since you are using MemoryEntityStore, there will be nothing in it.


If collapse the two methods into one, it will work.

Or, you could try and set up a properly persisting store (the "D" in
ACID). That is a little bit more tricky, since they all need
configuration (IIRC).



Cheers
-- 
Niclas Hedhman, Software Developer
http://www.qi4j.org - New Energy for Java

I  live here; http://tinyurl.com/2qq9er
I  work here; http://tinyurl.com/2ymelc
I relax here; http://tinyurl.com/2cgsug

_______________________________________________
qi4j-dev mailing list
[email protected]
http://lists.ops4j.org/mailman/listinfo/qi4j-dev

Reply via email to