Search in sources :

Example 16 with PersonImpl

use of org.apereo.portal.security.provider.PersonImpl in project uPortal by Jasig.

the class MultivaluedPAGSTest method setUp.

@Before
public void setUp() {
    person = new PersonImpl();
    person.setUserName("testuser");
    List<Object> emailAddresses = new ArrayList<Object>();
    emailAddresses.add("testuser1@somewhere.com");
    emailAddresses.add("testuser1@elsewhere.com");
    strNbValues = emailAddresses.size();
    person.setAttribute(strAttributeName, emailAddresses);
    List<Object> nums = new ArrayList<Object>();
    nums.add("123");
    nums.add("246");
    person.setAttribute(intAttributeName, nums);
}
Also used : PersonImpl(org.apereo.portal.security.provider.PersonImpl) ArrayList(java.util.ArrayList) Before(org.junit.Before)

Aggregations

PersonImpl (org.apereo.portal.security.provider.PersonImpl)16 IPerson (org.apereo.portal.security.IPerson)12 IUserProfile (org.apereo.portal.IUserProfile)4 BrokenSecurityContext (org.apereo.portal.security.provider.BrokenSecurityContext)4 ArrayList (java.util.ArrayList)2 AuthorizationException (org.apereo.portal.AuthorizationException)2 Tuple (org.apereo.portal.utils.Tuple)2 Before (org.junit.Before)2 Connection (java.sql.Connection)1 PreparedStatement (java.sql.PreparedStatement)1 ResultSet (java.sql.ResultSet)1 SQLException (java.sql.SQLException)1 Iterator (java.util.Iterator)1 LinkedHashSet (java.util.LinkedHashSet)1 UserProfile (org.apereo.portal.UserProfile)1 LocaleManager (org.apereo.portal.i18n.LocaleManager)1 IJoinQueryString (org.apereo.portal.jdbc.IJoinQueryString)1 PortletPreferenceImpl (org.apereo.portal.portlet.dao.jpa.PortletPreferenceImpl)1 IPortletDefinition (org.apereo.portal.portlet.om.IPortletDefinition)1 IPortletEntity (org.apereo.portal.portlet.om.IPortletEntity)1