Package speculoos.utils

Examples of speculoos.utils.VariableString


    JNDIPooledSource src = new JNDIPooledSource();
    /* configure source */
    src.addParameters(env);
    /* add mapper */
    SearchMapperImpl smi = new SearchMapperImpl();
    VariableString root = new VariableString("cn=${nom}");
    smi.setRoot(root);
    VariableString filter = new VariableString("email=${email}");
    smi.getInputChain().addMapper(new StringVariable("filter", filter));
    smi.setTypeHelper(new TypeHelper());
    src.add("search1", smi);
    /* create mapper */
    src.start(env);
 
View Full Code Here


    // src.addConfig(env);
    env.put("orga", "Personnes");
    env.put("nom", "toto");
    /* configure mapper */
    SearchMapperImpl smi = new SearchMapperImpl();
    this.root = new VariableString(rootstr);
    /* expectations */
    this.cn = new CompoundName(root.instance(env), Constants.SYNTAX);
    npmock.expects(once()).method("parse").with(eq("ou=Personnes,o=canam"))
        .will(returnValue(cn));
    smi.setRoot(root);
    VariableString filter = new VariableString(
        "fullName=${self.name} ${self.surname}");
    smi.getInputChain().addMapper(new StringVariable("filter", filter));
    smi.setTypeHelper(new TypeHelper());
    this.output = new HashMap();
    output.put("telephoneNumber", "telephone");
View Full Code Here

    input.setName("NAQUIN");
    input.setSurname("thiery");
    Map lenv = new HashMap();
    lenv.put("maxEnreg", "10");
    StringVariable flt = new StringVariable("countLimit",
        new VariableString("${maxEnreg}"));
    sm.getInputChain().addMapper(flt);
    NamingEnumeration enu = _answer01();
    ctxmock.expects(once()).method("search").with(eq(cn),
        eq("fullName=NAQUIN thiery"),
        hasProperty("countLimit", eq((long) 10)))
View Full Code Here

    input.setName("NAQUIN");
    input.setSurname("thiery");
    Map lenv = new HashMap();
    lenv.put("maxTime", "12");
    StringVariable flt = new StringVariable("timeLimit",
        new VariableString("${maxTime}"));
    sm.getInputChain().addMapper(flt);
    NamingEnumeration enu = _answer01();
    ctxmock.expects(once()).method("search").with(eq(cn),
        eq("fullName=NAQUIN thiery"), hasProperty("timeLimit", eq(12)))
        .will(returnValue(enu));
View Full Code Here

    input.setName("NAQUIN");
    input.setSurname("thiery");
    Map lenv = new HashMap();
    lenv.put("scope", "2");
    StringVariable flt = new StringVariable("searchScope",
        new VariableString("${scope}"));
    sm.getInputChain().addMapper(flt);
    NamingEnumeration enu = _answer01();
    ctxmock.expects(once()).method("search")
        .with(eq(cn), eq("fullName=NAQUIN thiery"),
            hasProperty("searchScope", eq(2))).will(
View Full Code Here

    JNDISource src = new JNDISource();
    /* configure source */
    src.addParameters(env);
    /* add mapper */
    SearchMapperImpl smi = new SearchMapperImpl("search1");
    VariableString root = new VariableString("cn=${nom}");
    smi.setRoot(root);
    smi.setTypeHelper(new TypeHelper());
    src.add("search1", smi);
    /* start source */
    src.start(env);
 
View Full Code Here

    JNDISource src = new JNDISource();
    /* configure source */
    src.addParameters(env);
    /* add mapper */
    SearchMapperImpl smi = new SearchMapperImpl();
    VariableString root = new VariableString("cn=${nom}");
    smi.setRoot(root);
    smi.setTypeHelper(new TypeHelper());
    src.add("search1", smi);
    /* create mapper */
    try {
View Full Code Here

    JNDISource src = new JNDISource();
    /* configure source */
    src.addParameters(env);
    /* 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(env);
    /* create mapper */
 
View Full Code Here

    JNDISource src = new JNDISource();
    /* configure source */
    src.addParameters(env);
    /* 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(env);
    /* create mapper */
 
View Full Code Here

    Map genv = new HashMap();
    genv.put("toto", "toto");
    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 */
 
View Full Code Here

TOP

Related Classes of speculoos.utils.VariableString

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.