@Test public void willUseACacheMiss() { groupCache.put(GROUP_NAME, CacheableOptional.of(null)); try { groupManager.getGroup(GROUP_NAME, false); } catch (final GroupNotFoundException ignored) { verifyNoMoreInteractions(groupProvider); return; } fail(); }
public Group getGroup(JID jid) throws GroupNotFoundException { JID groupJID = GroupJID.fromJID(jid); return (groupJID instanceof GroupJID) ? getGroup(((GroupJID)groupJID).getGroupName()) : null; }
GroupManager { public Group getGroup(JID jid) throws GroupNotFoundException { JID groupJID = GroupJID.fromJID(jid); return (groupJID instanceof GroupJID) ? getGroup(((GroupJID)groupJID).getGroupName()) : null; } }
GroupManager { public Group getGroup(JID jid) throws GroupNotFoundException { JID groupJID = GroupJID.fromJID(jid); return (groupJID instanceof GroupJID) ? getGroup(((GroupJID)groupJID).getGroupName()) : null; } private  GroupManager(); }
GroupManager { public Group getGroup(JID jid) throws GroupNotFoundException { JID groupJID = GroupJID.fromJID(jid); return (groupJID instanceof GroupJID) ? getGroup(((GroupJID)groupJID).getGroupName()) : null; } private  GroupManager(); static GroupManager getInstance(); Group createGroup(String name); Group getGroup(JID jid); Group getGroup(String name); Group getGroup(String name, boolean forceLookup); void deleteGroup(Group group); void deleteUser(User user); int getGroupCount(); Collection<Group> getGroups(); Collection<Group> getSharedGroups(); Collection<Group> getSharedGroups(String userName); Collection<Group> getVisibleGroups(Group groupToCheck); Collection<Group> getPublicSharedGroups(); Collection<Group> search(String propName, String propValue); Collection<Group> getGroups(int startIndex, int numResults); Collection<Group> getGroups(User user); Collection<Group> getGroups(JID user); boolean isReadOnly(); boolean isSearchSupported(); Collection<Group> search(String query); Collection<Group> search(String query, int startIndex, int numResults); GroupProvider getProvider(); }
GroupManager { public Group getGroup(JID jid) throws GroupNotFoundException { JID groupJID = GroupJID.fromJID(jid); return (groupJID instanceof GroupJID) ? getGroup(((GroupJID)groupJID).getGroupName()) : null; } private  GroupManager(); static GroupManager getInstance(); Group createGroup(String name); Group getGroup(JID jid); Group getGroup(String name); Group getGroup(String name, boolean forceLookup); void deleteGroup(Group group); void deleteUser(User user); int getGroupCount(); Collection<Group> getGroups(); Collection<Group> getSharedGroups(); Collection<Group> getSharedGroups(String userName); Collection<Group> getVisibleGroups(Group groupToCheck); Collection<Group> getPublicSharedGroups(); Collection<Group> search(String propName, String propValue); Collection<Group> getGroups(int startIndex, int numResults); Collection<Group> getGroups(User user); Collection<Group> getGroups(JID user); boolean isReadOnly(); boolean isSearchSupported(); Collection<Group> search(String query); Collection<Group> search(String query, int startIndex, int numResults); GroupProvider getProvider(); static final SystemProperty<Class> GROUP_PROVIDER; }