in itests/jpa-container-blueprint-testbundle-dao/src/main/java/org/apache/aries/jpa/container/itest/bundle/blueprint/impl/TestServiceImpl.java [52:70]
public void performTest() throws Exception {
try {
List<Car> cars = carDao.getAllCars();
if (cars.size() != 0) {
throw new RuntimeException("Database must be cleaned before executing the test!");
}
Car car = new Car();
car.setNumberOfSeats(4);
car.setEngineSize(42);
car.setNumberPlate("WWW-xxxx");
car.setColour("blue");
carDao.createNew(car);
newTxTestService.testNewTransaction(transactionManager.getTransaction());
} finally {
transactionManager.setRollbackOnly();
}
}