use of edu.internet2.middleware.grouperClient.ws.beans.WsGetGroupsResult in project cas by apereo.
the class GrouperFacadeTests method verifyEmptyGroups.
@Test
public void verifyEmptyGroups() {
val facade = new DefaultGrouperFacade() {
@Override
public WsGetGroupsResult[] fetchGroupsFor(final String subjectId) {
return null;
}
};
assertTrue(facade.getGroupsForSubjectId("casuser").isEmpty());
}
use of edu.internet2.middleware.grouperClient.ws.beans.WsGetGroupsResult in project cas by apereo.
the class GrouperFacadeTests method verifyFailedGroups.
@Test
public void verifyFailedGroups() {
val facade = new DefaultGrouperFacade() {
@Override
public WsGetGroupsResult[] fetchGroupsFor(final String subjectId) {
throw new RuntimeException("BadGroups");
}
};
assertTrue(facade.getGroupsForSubjectId("casuser").isEmpty());
}
Aggregations