Package speculoos

Examples of speculoos.Personne


  /**
   * Error catching with root name.
   *
   */
  public void test08RootNameError() {
    Personne input = new Personne();
    input.setLogin("ut061111");
    input.setSurname("Rod");
    input.setName("Johnson");
    Map lenv = new HashMap();
    lenv.put("scope", "2");
    npmock.reset();
    npmock.expects(once()).method("parse").with(
        eq("cn=ut061111,ou=Personnes,o=canam")).will(
View Full Code Here


   *
   * @throws MapperException
   */
  public void test01Compare() throws MapperException {
    /* populate input */
    Personne input = new Personne();
    input.setName("NAQUIN");
    input.setSurname("thiery");
ctxmock.expects(once()).method("search").with(
        eq(cn),
        or(eq("(&(lastName=NAQUIN)(surname=thiery))"),
            eq("(&(surname=thiery)(lastName=NAQUIN))")), ANYTHING);
    sm.compare(input, null);
View Full Code Here

   * Check catching of backend errors
   *
   */
  public void test02CompareFailure() {
    /* populate input */
    Personne input = new Personne();
    input.setName("NAQUIN");
    input.setSurname("thiery");ctxmock.expects(once()).method("search").with(
        eq(cn),
        or(eq("(&(lastName=NAQUIN)(surname=thiery))"),
            eq("(&(surname=thiery)(lastName=NAQUIN))")), ANYTHING)
        .will(throwException(new NamingException()));
    try {
View Full Code Here

   *
   * @throws MapperException
   */
  public void test03CompareMap() throws MapperException {
    /* populate input */
    Personne input = new Personne();
    input.setName("NAQUIN");
    input.setSurname("thiery");
    ctxmock.expects(once()).method("search").with(
        eq(cn),
        or(eq("(&(lastName=NAQUIN)(surname=thiery))"),
            eq("(&(surname=thiery)(lastName=NAQUIN))")), ANYTHING);
    sm.map(input, null);
View Full Code Here

TOP

Related Classes of speculoos.Personne

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.