Search in sources :

Example 1 with GroupListHelperImpl

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

the class GroupListHelperImplTest method testGetEntityByGroupMemberNull.

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

Example 2 with GroupListHelperImpl

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

the class GroupListHelperImplTest method testGetEntityTypesForGroupTypePortlet.

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

Example 3 with GroupListHelperImpl

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

the class GroupListHelperImplTest method testGetEntityForPrincipalNull.

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

Example 4 with GroupListHelperImpl

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

the class GroupListHelperImplTest method testGetEntityBeansNull.

@Test
public void testGetEntityBeansNull() {
    GroupListHelperImpl helper = new GroupListHelperImpl();
    assertEquals(Collections.EMPTY_LIST, helper.getEntityBeans(null));
}
Also used : GroupListHelperImpl(org.apereo.portal.layout.dlm.remoting.GroupListHelperImpl) Test(org.junit.Test)

Example 5 with GroupListHelperImpl

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

the class GroupListHelperImplTest method testPopulateChildrenBeanNull.

@Test(expected = IllegalArgumentException.class)
public void testPopulateChildrenBeanNull() {
    GroupListHelperImpl helper = new GroupListHelperImpl();
    helper.lookupEntityName(null);
}
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