// @Test(dependsOnMethods = "read") public void update() throws Exception { AddJob addJob = repository.findOne(id); AddJob newAddJob = new AddJob.Builder(addJob.getJobName()).copy(addJob).vehicle("Vw").price(1500).build(); repository.save(newAddJob); AddJob updateJOb = repository.findOne(id); Assert.assertEquals("Audi", addJob.getVehicle()); Assert.assertEquals("Vw", newAddJob.getVehicle()); }
// @Test(dependsOnMethods = "create") public void read() throws Exception { AddJob addJob = repository.findOne(id); Assert.assertNotNull(addJob); }