Package speculoos.config.xml

Examples of speculoos.config.xml.XMLConfigurator.configure()


    mockconfigure.expects(once()).method("addMapper").with(
        eq("telAndMail"), validationRules(3));
    mockconfigure.expects(once()).method("link").with(eq("telAndMail"),
        eq("ldifsource"));
    // configure
    xc.configure((Configure) mockconfigure.proxy());
  }

  /**
   * Checks that a validation rule defined in a source tag propagates to
   * mappers (but not to enclosing context or other source).
View Full Code Here


    mockconfigure.expects(once()).method("addMapper").with(
        eq("telAndMail2"), validationRules(2));
    mockconfigure.expects(once()).method("link").with(eq("telAndMail2"),
        eq("ldifsource1"));
    // configure
    xc.configure((Configure) mockconfigure.proxy());
  }

  /**
   * Checks definition of validation ruless within a mapper.
   *
 
View Full Code Here

    mockconfigure.expects(once()).method("addMapper").with(
        eq("telAndMail2"), validationRules(4));
    mockconfigure.expects(once()).method("link").with(eq("telAndMail2"),
        eq("ldifsource1"));
    // configure
    xc.configure((Configure) mockconfigure.proxy());
  }

  /**
   * Checks definition of default map validation rules.
   *
 
View Full Code Here

    mockconfigure.expects(once()).method("addMapper").with(eq("telAndMail2"),
        checkDefaults(def));
    mockconfigure.expects(once()).method("link").with(eq("telAndMail2"),
        eq("ldifsource1"));
    // configure
    xc.configure((Configure) mockconfigure.proxy());
  }
}
View Full Code Here

    mockconfigure.expects(once()).method("link").with(eq("telAndMail"),
        eq("ldifsource"));
    mockconfigure.expects(once()).method("link").with(eq("emps"),
        eq("ldifsource"));
    // configure
    xc.configure((Configure) mockconfigure.proxy());

  }

  /**
   * Test resetting configurator.
View Full Code Here

    // reset and reconfigure
    xc.resetConfig();
    xc.parse(Thread.currentThread().getContextClassLoader()
        .getResourceAsStream("jndi-sample.xml"));
    // configure
    xc.configure((Configure) mockconfigure.proxy());
  }

  /**
   * Test parsing of multiple files, one with errors.
   *
 
View Full Code Here

    mockconfigure.expects(once()).method("link").with(eq("delEmpFromBoss"),
        eq("ldifsource"));
    mockconfigure.expects(once()).method("link").with(
        eq("changeBossOfEmp"), eq("ldifsource"));
    // configure
    xc.configure((Configure) mockconfigure.proxy());
  }

  public void test05RenameAndCompareOperations()
      throws MapperConfigurationException, XMLConfiguratorException {
    XMLConfigurator xc = new XMLConfigurator();
View Full Code Here

    mockconfigure.expects(once()).method("link").with(eq("moveEmp"),
        eq("ldifsource"));
    mockconfigure.expects(once()).method("link").with(eq("compareEmp"),
        eq("ldifsource"));
    // configure
    xc.configure((Configure) mockconfigure.proxy());
  }

  public void test06AddAndDeleteOperations()
      throws MapperConfigurationException, XMLConfiguratorException {
    XMLConfigurator xc = new XMLConfigurator();
View Full Code Here

    mockconfigure.expects(once()).method("link").with(eq("addEmp"),
        eq("ldifsource"));
    mockconfigure.expects(once()).method("link").with(eq("delEmp"),
        eq("ldifsource"));
    // configure
    xc.configure((Configure) mockconfigure.proxy());
  }

  /**
   * Test error in map inheritance : inherited map is unknown
   *
 
View Full Code Here

    mockconfigure.expects(once()).method("link").with(eq("addEmp"),
        eq("ldifsource"));
    mockconfigure.expects(once()).method("link").with(eq("delEmp"),
        eq("ldifsource"));
    // configure
    xc.configure((Configure) mockconfigure.proxy());
  }

}
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.