Package speculoos.utils

Examples of speculoos.utils.TypeHelper


    genv.put("titi", "titi");
    /* add mapper */
    SearchMapperImpl smi = new SearchMapperImpl();
    VariableString root = new VariableString("cn=${nom}");
    smi.setRoot(root);
    smi.setTypeHelper(new TypeHelper());
    src.add("search1", smi);
    src.start(genv);
    /* check environnement is passed to mapper */
    SearchMapperImpl sm = (SearchMapperImpl) src.create("search1", genv);
    assertEquals("Environment badly configured", "tututiti", sm
View Full Code Here


    VariableString root = new VariableString("ou=Personnes");
    smi.setRoot(root);
    VariableString filter = new VariableString(
        "(fullName=${self.name} ${self.surname})");
    smi.getInputChain().addMapper(new StringVariable("filter", filter));
    smi.setTypeHelper(new TypeHelper());
      src.add("search1", smi);
    src.start(genv);
    /* check environnement is passed to mapper */
    SearchMapperImpl sm = (SearchMapperImpl) src.create("search1", genv);
    Map h = new HashMap();
View Full Code Here

    VariableString root = new VariableString("ou=Personnes");
    smi.setRoot(root);
    VariableString filter = new VariableString(
        "(fullName=${self.name} ${self.surname})");
    smi.getInputChain().addMapper(new StringVariable("filter", filter));
    smi.setTypeHelper(new TypeHelper());
      src.add("search1", smi);
    src.start(genv);
    /* check environnement is passed to mapper */
    SearchMapperImpl sm = (SearchMapperImpl) src.create("search1", genv);
    /* populate input */
 
View Full Code Here

    /* expectations */
    cn = new CompoundName(root.instance(env), Constants.SYNTAX);
    npmock.expects(once()).method("parse").with(
        eq("cn=ut061111,ou=Personnes,o=canam")).will(returnValue(cn));
    ami.setRoot(root);
    ami.setTypeHelper(new TypeHelper());
    /* add mapper to src */
    ctxmock.expects(once()).method("getNameInNamespace");
    ctxmock.expects(once()).method("getNameParser").will(
        returnValue(npmock.proxy()));
    this.ami = (DeleteMapperImpl) ami.clone();
View Full Code Here

    super.setUp();
    /* defaults */
    Map def = new HashMap();
    def.put("toto", "toto");
    this.valid = new MapMandatoryValidator(def);
    this.valid.setTypeHelper(new TypeHelper());
  }
View Full Code Here

    super.setUp();
    this.rv = new RegexValidator();
    String re = ".*toto.*";
    rv.setProperty("titi");
    rv.setPattern(re);
    rv.setTypeHelper(new TypeHelper());
  }
View Full Code Here

    /* expectations */
    cn = new CompoundName(root.instance(env), Constants.SYNTAX);
    npmock.expects(once()).method("parse").with(
        eq("cn=ut061111,ou=Personnes,o=canam")).will(returnValue(cn));
    ami.setRoot(root);
    ami.setTypeHelper(new TypeHelper());
    /* add mapper to src */
    this.output = new HashMap();
    output.put("telephoneNumber", "telephone");
    output.put("uid", "login");
    output.put("sites", "sites");
View Full Code Here

  final Object witness = new Object();

  protected void setUp() throws Exception {
    super.setUp();
    this.o2l = new Object2LDAP();
    this.o2l.setTypeHelper(new TypeHelper());
  }
View Full Code Here

    super.setUp();
    /* defaults */
    Map def = new HashMap();
    def.put("toto", "tutu");
    this.valid = new MapperDefaults(def);
    this.valid.setTypeHelper(new TypeHelper());
  }
View Full Code Here

TOP

Related Classes of speculoos.utils.TypeHelper

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.