@Test public void testFindByRoleId() { object = repository.save(object); assertNotNull(object.getId()); long result = repository.findByRoleId(1L); assertNotNull(result >= 1); }
@Test public void testDeleteByUserId() { object = repository.save(object); assertNotNull(object.getId()); int result = repository.deleteByUserId(1L); assertNotNull(result >= 1); }
@Test public void testFindByUserId() { object = repository.save(object); assertNotNull(object.getId()); list = repository.findByUserId(1L); assertNotNull(list); assertNotNull(list.size() >= 1); }
@Before public void before() { object = new BaseUserRole(); object.setRoleId(1L); object.setUserId(1L); }