1. the test is function test, not unit test. Isn't it ? b/c it uses
real service object, but mock objects.
2. the method followed is a bit of useless..b/c personManager andd
person are not used by other test at all.
protected void onSetUpBeforeTransaction() throws Exception {
super.onSetUpBeforeTransaction();
GenericManager personManager = (GenericManager)
applicationContext.getBean("personManager");
// add a test person to the database
Person person = new Person();
person.setFirstName("Jack");
person.setLastName("Raible");
personManager.save(person);
}
chinofish