/** * Count by both base id and related id * * @param userMappingRow user mapping row * @return count */ public int countByIds(UserMappingRow userMappingRow) { return countByIds(userMappingRow.getBaseId(), userMappingRow.getRelatedId()); }
/** * Count by both base id and related id * * @param userMappingRow * user mapping row * @return count */ public int countByIds(UserMappingRow userMappingRow) { return countByIds(userMappingRow.getBaseId(), userMappingRow.getRelatedId()); }
int countOfIds = dao.countByIds(userMappingRow); TestCase.assertEquals(countOfIds, dao.deleteByIds(userMappingRow)); TestCase.assertEquals(10 - countOfIds, dao.count());
int countOfIds = dao.countByIds(userMappingRow); TestCase.assertEquals(countOfIds, dao.deleteByIds(userMappingRow)); TestCase.assertEquals(10 - countOfIds, dao.count());