>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.
But actually the code for adding and gettin companies was in the
findCompanies @Test method, just like yuo said.
>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).
I tried neo4j but encountered the same problem, so I just want it work with
in memroy enity store.
Best regards,
Anton Podviaznikov
@Test
public void findCompanies()
{
companyService.addCompany("Company 1");
companyService.addCompany("Company 2");
Assert.assertEquals(2,companyService.findAll().count());
}
_______________________________________________
qi4j-dev mailing list
[email protected]
http://lists.ops4j.org/mailman/listinfo/qi4j-dev