for (final Dto product : DemoDataProvider.getProducts(100)) {
productIds.add(createService.create(product));
}
final Dto contract = getContract(count, productIds);
long lastId = -1;
System.out.print("creating.. ");
for (int i=0; i<100; i++) {
lastId = createService.create(contract);
}
System.out.println("done.");
System.out.print("get all.. ");
for (int i=0; i<10; i++) {
readService.getAll(contractModule, 0, 100);
}
System.out.println("done.");
System.out.print("get.. ");
for (int i = 0; i < 1000; i++) {
final Dto retrieved = readService.get(contractModule, lastId);
assertNotNull(retrieved);
}
System.out.println("done.");
// for profiling this might be useful..