use of com.openmeap.model.dto.ApplicationVersion in project OpenMEAP by OpenMEAP.
the class ModelServiceImplTest method testFindAll.
public void testFindAll() {
List<ApplicationVersion> dtl = modelService.findAll(ApplicationVersion.class);
Assert.assertTrue(dtl.size() == 3);
for (String toFind : new String[] { "ApplicationVersion.identifier.1", "ApplicationVersion.identifier.2", "smacky id" }) {
Boolean found = false;
for (ApplicationVersion dt : dtl) {
found = dt.getIdentifier().compareTo(toFind) == 0;
if (found)
break;
}
Assert.assertTrue("expecting a ApplicationVersion with name " + toFind, found);
}
}
Aggregations