@Override public int getUserCountNotHavingProperty(String propname) throws IOException { return service.getUserCountNotHavingProperty(propname); }
/** READ_LOCK */ @Override public int getUserCountNotHavingProperty(String propname) throws IOException { readLock(); try { return getService().getUserCountNotHavingProperty(propname); } finally { readUnLock(); } }
assertEquals( userGroupService.getUserCount(), userGroupService.getUserCountNotHavingProperty("unknown")); assertEquals(0, userGroupService.getUserCountHavingPropertyValue("tel", "123")); assertEquals( userGroupService.getUserCount() - 1, userGroupService.getUserCountNotHavingProperty("tel")); assertEquals(1, userGroupService.getUserCountHavingPropertyValue("tel", "12-34-38"));
@Test public void testCountUsersNotHavingProperty() throws Exception { assertEquals(1, service.getUserCountNotHavingProperty("telephoneNumber")); }