@Override public int getUserCountHavingProperty(String propname) throws IOException { return service.getUserCountHavingProperty(propname); }
assertTrue(userGroupService.getGroupsForUser(groupAdminUser).contains(group2)); assertEquals(0, userGroupService.getUserCountHavingProperty("unknown")); assertEquals( userGroupService.getUserCount(), assertEquals(0, userGroupService.getUserCountHavingPropertyValue("tel", "123")); assertEquals(1, userGroupService.getUserCountHavingProperty("tel")); assertEquals( userGroupService.getUserCount() - 1,
/** READ_LOCK */ @Override public int getUserCountHavingProperty(String propname) throws IOException { readLock(); try { return getService().getUserCountHavingProperty(propname); } finally { readUnLock(); } }
@Test public void testCountUsersHavingProperty() throws Exception { assertEquals(1, service.getUserCountHavingProperty("mail")); }