@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()); }
@Test public void findTest() { Assert.assertEquals(0, uakDao.findByUserName("osman").size()); Assert.assertEquals(1, uakDao.findByUserName("kadir").size()); }