Example #1
0
  @Test
  public void createTest() {
    UserAccessKey uak = new UserAccessKey();

    uak.setKeyType(ApiAccessKeyType.BTC_CHINA_ACCESS_KEY.getCode());
    uak.setKeyValue("asdasd");
    uak.setUsername("kadir");

    uakDao.create(uak);

    Assert.assertNotNull(uak.getId());
  }
Example #2
0
  @Test
  public void findTest() {
    Assert.assertEquals(0, uakDao.findByUserName("osman").size());

    Assert.assertEquals(1, uakDao.findByUserName("kadir").size());
  }