I use Spring Roo and I rely on Roo's data on demand for my integration tests.

I recently realized that the very same integration tests that run smoothly in Eclipse break when I run them from Maven.

The problem seems to come from Spring Roo's data on demand. For instance I get errors such as:

Code:
testFindPlisByMultiFieldWithNothingSet(trc.suivi.core.repository.PliRepositoryTest): expected:<10> but was:<0>
for the following test:

Code:
@Test
public void testFindPlisByMultiFieldWithNothingSet() {
    PliDataOnDemand dod = new PliDataOnDemand();
    dod.init();
    PliQueryInfo pliQueryInfo = new PliQueryInfo();
    List<Pli> plis = pliRepository.findPlisByMultiField(pliQueryInfo, null, null, null, null);
    assertEquals(10, plis.size());
}
indicating that dod.init() does not populate my in-memory database...

FYI, PliDataOnDemand is a data on demand class for one of our entities called Pli.

Can anyone please help?