Search in sources :

Example 16 with GroupListHelperImpl

use of org.apereo.portal.layout.dlm.remoting.GroupListHelperImpl in project uPortal by Jasig.

the class GroupListHelperImplTest method testSearchEntityNull.

@Test(expected = IllegalArgumentException.class)
public void testSearchEntityNull() {
    GroupListHelperImpl helper = new GroupListHelperImpl();
    helper.search(null, "asdf");
}
Also used : GroupListHelperImpl(org.apereo.portal.layout.dlm.remoting.GroupListHelperImpl) Test(org.junit.Test)

Example 17 with GroupListHelperImpl

use of org.apereo.portal.layout.dlm.remoting.GroupListHelperImpl in project uPortal by Jasig.

the class GroupListHelperImplTest method testGetEntityTypesForGroupTypePerson.

@Test(expected = IllegalArgumentException.class)
public void testGetEntityTypesForGroupTypePerson() {
    GroupListHelperImpl helper = new GroupListHelperImpl();
    Set<String> res = helper.getEntityTypesForGroupType(EntityEnum.PERSON.name());
}
Also used : GroupListHelperImpl(org.apereo.portal.layout.dlm.remoting.GroupListHelperImpl) Test(org.junit.Test)

Example 18 with GroupListHelperImpl

use of org.apereo.portal.layout.dlm.remoting.GroupListHelperImpl in project uPortal by Jasig.

the class GroupListHelperImplTest method testGetEntityTypesForGroupTypeCategory.

@Test
public void testGetEntityTypesForGroupTypeCategory() {
    GroupListHelperImpl helper = new GroupListHelperImpl();
    Set<String> res = helper.getEntityTypesForGroupType(EntityEnum.CATEGORY.name());
    assertEquals(2, res.size());
    assertTrue(res.contains(EntityEnum.CATEGORY.name()));
    assertTrue(res.contains(EntityEnum.PORTLET.toString()));
}
Also used : GroupListHelperImpl(org.apereo.portal.layout.dlm.remoting.GroupListHelperImpl) Test(org.junit.Test)

Aggregations

GroupListHelperImpl (org.apereo.portal.layout.dlm.remoting.GroupListHelperImpl)18 Test (org.junit.Test)18 EntityEnum (org.apereo.portal.portlets.groupselector.EntityEnum)4 JsonEntityBean (org.apereo.portal.layout.dlm.remoting.JsonEntityBean)2 ArrayList (java.util.ArrayList)1 IGroupMember (org.apereo.portal.groups.IGroupMember)1