Package com.taobao.profile.config

Examples of com.taobao.profile.config.ConfigureProperties


    prop.put("file.name", "tprofiler.log");
    prop.put("log.file.path", "${user.home}/${file.name}");
    Properties context = System.getProperties();
    context.putAll(prop);
   
    Properties properties  = new ConfigureProperties(prop, context);
    Assert.assertEquals(properties.getProperty("log.file.path"), System.getProperty("user.home") + "/tprofiler.log" );
  }
View Full Code Here


    Properties context = new Properties(System.getProperties());
    context.putAll(System.getProperties());
    context.putAll(properties);
    try{
      ConfigureProperties configureProperties = new ConfigureProperties(properties, context);
      String logFilePath = configureProperties.getProperty("logFilePath");
      Assert.assertEquals(logFilePath, System.getProperty("user.home") + "/logs/tprofiler.log");
    }finally{
      in.close();
    }
  }
View Full Code Here

TOP

Related Classes of com.taobao.profile.config.ConfigureProperties

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.