use of org.jasig.services.persondir.support.ComplexStubPersonAttributeDao in project uPortal by Jasig.
the class PersonDirNameFinderTest method setUp.
protected void setUp() throws Exception {
super.setUp();
Map<String, List<Object>> userWithDisplayNameAttributes = new HashMap<String, List<Object>>();
userWithDisplayNameAttributes.put("phone", Arrays.asList((Object) "777-7777"));
userWithDisplayNameAttributes.put("displayName", Arrays.asList((Object) "Display Name"));
Map<String, List<Object>> userWithEmptyDisplayNameAttributes = new HashMap<String, List<Object>>();
userWithEmptyDisplayNameAttributes.put("phone", Arrays.asList((Object) "888-8888"));
userWithEmptyDisplayNameAttributes.put("displayName", Arrays.asList((Object) ""));
Map<String, List<Object>> userWithoutDisplayNameAttributes = new HashMap<String, List<Object>>();
userWithoutDisplayNameAttributes.put("phone", Arrays.asList((Object) "666-6666"));
userWithoutDisplayNameAttributes.put("givenName", Arrays.asList((Object) "Howard"));
Map<String, Map<String, List<Object>>> daoBackingMap = new HashMap<String, Map<String, List<Object>>>();
daoBackingMap.put("userWithDisplayName", userWithDisplayNameAttributes);
daoBackingMap.put("userWithEmptyDisplayName", userWithEmptyDisplayNameAttributes);
daoBackingMap.put("userWithoutDisplayName", userWithoutDisplayNameAttributes);
IPersonAttributeDao paDao = new ComplexStubPersonAttributeDao(daoBackingMap);
this.finder = new PersonDirNameFinder(paDao);
}
Aggregations