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");
}
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());
}
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()));
}
Aggregations