Exemplo n.º 1
0
  @Test
  public void testUpdate() throws Exception {

    UserDetails uDet = repository.findOne(emconNo);

    UserDetails newUDet = new UserDetails.Builder("B5051").build();

    repository.save(newUDet);

    Assert.assertEquals("B5051", newUDet.getEmconNo());
  }
Exemplo n.º 2
0
  @Test
  public void testCreate() throws Exception {

    UserDetails uDet = new UserDetails.Builder("A0541").build();

    repository.save(uDet);

    emconNo = uDet.getEmconNo();

    Assert.assertNotNull(uDet.getEmconNo());
  }