Package org.kuali.rice.kim.api.identity.name

Examples of org.kuali.rice.kim.api.identity.name.EntityNameContract


    final String middleName2 = "Mugo";
    final String lastName = "Njogu";
    final String namesFromUser = " " + firstName +"   " + middleName1 + "    " + middleName2 + " " + lastName + "   ";
    maintainable.createPrincipal(maintainable.createPrincipalName(namesFromUser),
        MartinlawConstants.AffiliationCodes.WITNESS, namesFromUser);
    final EntityNameContract entityName = testCreatePrincipal("eric_felix_mugo_njogu", MartinlawConstants.AffiliationCodes.WITNESS);
   
    assertEquals("first name differs", firstName, entityName.getFirstName());
    assertEquals("middle name differs", middleName1 + " " + middleName2, entityName.getMiddleName());
    assertEquals("last name differs", lastName, entityName.getLastName());
  }
View Full Code Here


    final String middleName = "Njogu";
    final String lastName = "Mungai";
    final String namesFromUser = " " + firstName +"   " + middleName + "    " + lastName + " ";
    maintainable.createPrincipal(maintainable.createPrincipalName(namesFromUser),
        MartinlawConstants.AffiliationCodes.CLIENT, namesFromUser);
    final EntityNameContract entityName = testCreatePrincipal("david_njogu_mungai", MartinlawConstants.AffiliationCodes.CLIENT);
   
    assertEquals("first name differs", firstName, entityName.getFirstName());
    assertEquals("last name differs", middleName, entityName.getMiddleName());
    assertEquals("last name differs", lastName, entityName.getLastName());
  }
View Full Code Here

    final String firstName = "Naomi";
    final String lastName = "Mathenge";
    final String namesFromUser = " " + firstName +"      " + lastName + " ";
    maintainable.createPrincipal(maintainable.createPrincipalName(namesFromUser),
        MartinlawConstants.AffiliationCodes.CLIENT, namesFromUser);
    final EntityNameContract entityName = testCreatePrincipal("naomi_mathenge", MartinlawConstants.AffiliationCodes.CLIENT);
   
    assertEquals("first name differs", firstName, entityName.getFirstName());
    assertEquals("last name differs", lastName, entityName.getLastName());
  }
View Full Code Here

  public void testCreatePrincipal_one_name() {
    final String firstName = "ADRIAN";
    final String namesFromUser = " " + firstName +"       ";
    maintainable.createPrincipal(maintainable.createPrincipalName(namesFromUser), MartinlawConstants.AffiliationCodes.WITNESS,
        namesFromUser);
    final EntityNameContract entityName = testCreatePrincipal("adrian", MartinlawConstants.AffiliationCodes.WITNESS);
   
    assertEquals("first name differs", firstName, entityName.getFirstName());
  }
View Full Code Here

TOP

Related Classes of org.kuali.rice.kim.api.identity.name.EntityNameContract

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.