// @Test(dependsOnMethods = "update") public void delete() throws Exception { MotorCycle motorCycle = repository.findOne(id); repository.delete(motorCycle); MotorCycle deletedMotorCycle = repository.findOne(id); Assert.assertNull(deletedMotorCycle); }
// @Test(dependsOnMethods = "create") public void read() throws Exception { MotorCycle motorCycle = repository.findOne(id); Assert.assertNotNull(motorCycle); Assert.assertEquals("kawa34er", motorCycle.getSerialNumber()); Assert.assertEquals("Kawasaki", motorCycle.getMake()); }