Package ch.inftec.ju.util

Examples of ch.inftec.ju.util.PropertyChain$PropertyInfo


   * @return JuEmfUtil instance
   */
  public JuEmfUtil createEmfUtil(String persistenceUnitName, String profile) {
    logger.debug("Creating JuEmfUtil for PU {} and profile {}", persistenceUnitName, profile);
   
    PropertyChain pc = JuUtils.getJuPropertyChain();
   
    String profileName = profile != null ? profile : pc.get("ju-dbutil-test.profile", true);
    String prefix = "ju-dbutil-test." + profileName;
   
    String connectionUrl = pc.get(prefix + ".connectionUrl", false);
    String user = pc.get(prefix + ".user", false);
    String password = pc.get(prefix + ".password", false);
   
    JuEmfUtil emfUtil = JuEmfUtil.create()
        .persistenceUnitName(persistenceUnitName)
        .connectionUrl(connectionUrl)
        .user(user)
View Full Code Here


   *
   * @param subPageUrl
   *            Page URL without host an port
   */
  public static String getPageUrl(String subPageUrl) {
    PropertyChain pc = JuUtils.getJuPropertyChain();

    String host = pc.get("ju-testing-ee.web.host");
    Integer port = pc.get("ju-testing-ee.web.port", Integer.class) + pc.get("ju-util-ee.portOffset", Integer.class);

    String url = String.format("http://%s:%d/%s", host, port, subPageUrl);
    return url;
  }
View Full Code Here

    List<AnnotationInfo<JuTestEnv>> testEnvAnnos = ReflectUtils.getAnnotationsWithInfo(method, JuTestEnv.class, false, true, true);
    Collections.reverse(testEnvAnnos);
    final SystemPropertyTempSetter tempSetter = DbTestAnnotationHandler.setTestEnvProperties(testEnvAnnos);
   
    try {
      PropertyChain pc = JuUtils.getJuPropertyChain();
     
      if (DriverRule.driverHandlers.isEmpty()) {
        // Get from the properties which drivers we should use to run the tests
        String drivers[] = JuStringUtils.split(pc.get(PROP_DRIVER, true), ",", true);
        Assert.assertTrue(String.format("No drivers specified in property %s", DriverRule.PROP_DRIVER), drivers.length > 0);
       
        logger.debug("Initialize WebDrivers: " + Arrays.toString(drivers));
        for (String driverType : drivers) {
          logger.debug("Creating driver: " + driverType);
View Full Code Here

          String keyFileName = chainBuilder.peekChain().get(this.chain.decryptor.keyFilePathPropertyName);
          chainBuilder.setDecryptorByResource(keyFileName, this.chain.decryptor.strongEncryption);
        }
      }
     
      PropertyChain chain = chainBuilder.getPropertyChain();
      Set<String> keys = chain.listKeys();
     
      for (String key : keys) {
        if (this.isIncluded(key, this.chain.filter, true)) {
          PropertyInfo pi = chain.getInfo(key);
         
          this.project.getProperties().put(key, pi.getValue());
         
          boolean exportToSystemProperties = this.isIncluded(key, this.chain.exportToSystemProperty, false)
              || exportedProperty.contains(key);
View Full Code Here

TOP

Related Classes of ch.inftec.ju.util.PropertyChain$PropertyInfo

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.