예제 #1
0
  //  @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());
  }
예제 #2
0
  //  @Test(dependsOnMethods = "create")
  public void read() throws Exception {

    AddJob addJob = repository.findOne(id);
    Assert.assertNotNull(addJob);
  }