Пример #1
0
  @Test
  public void testCreate() throws Exception {

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

    repository.save(uDet);

    emconNo = uDet.getEmconNo();

    Assert.assertNotNull(uDet.getEmconNo());
  }
Пример #2
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());
  }
Пример #3
0
 @Test
 public void testRead() throws Exception {
   UserDetails uDet = repository.findOne(emconNo);
   Assert.assertEquals("A0541", uDet.getEmconNo());
 }