use of org.apereo.portal.layout.dlm.remoting.GroupListHelperImpl in project uPortal by Jasig.
the class GroupListHelperImplTest method testGetPrincipalForEntityNull.
@Test(expected = IllegalArgumentException.class)
public void testGetPrincipalForEntityNull() {
GroupListHelperImpl helper = new GroupListHelperImpl();
helper.getPrincipalForEntity(null);
}
use of org.apereo.portal.layout.dlm.remoting.GroupListHelperImpl in project uPortal by Jasig.
the class GroupListHelperImplTest method testGetEntityTypeNull.
@Test(expected = IllegalArgumentException.class)
public void testGetEntityTypeNull() {
GroupListHelperImpl helper = new GroupListHelperImpl();
helper.getEntityType(null);
}
use of org.apereo.portal.layout.dlm.remoting.GroupListHelperImpl in project uPortal by Jasig.
the class GroupListHelperImplTest method testGetEntityBeansEmpty.
@Test
public void testGetEntityBeansEmpty() {
GroupListHelperImpl helper = new GroupListHelperImpl();
assertEquals(Collections.EMPTY_LIST, helper.getEntityBeans(new ArrayList<String>()));
}
use of org.apereo.portal.layout.dlm.remoting.GroupListHelperImpl in project uPortal by Jasig.
the class GroupListHelperImplTest method testGetEntityTypePortlet.
@Test
public void testGetEntityTypePortlet() {
GroupListHelperImpl helper = new GroupListHelperImpl();
IGroupMember mocked = manuallyMockGroupMember(IPortletDefinition.class);
EntityEnum ee = helper.getEntityType(mocked);
assertEquals("portlet", ee.toString());
}
use of org.apereo.portal.layout.dlm.remoting.GroupListHelperImpl in project uPortal by Jasig.
the class GroupListHelperImplTest method testGetEntityTypeCategory.
@Test
public void testGetEntityTypeCategory() {
GroupListHelperImpl helper = new GroupListHelperImpl();
MockedGroupMemberEntityGroup mocked = new MockedGroupMemberEntityGroup(IPortletDefinition.class);
EntityEnum ee = helper.getEntityType(mocked);
assertEquals("category", ee.toString());
}
Aggregations