Package com.firefly.template

Examples of com.firefly.template.Config


public class TestConfig {
 
  @Test
  public void test() {
    Config config = new Config();
    config.setViewPath("/page");
    Assert.assertThat(config.getCompiledPath(), is("/page/_compiled_view"));
   
    config.setViewPath("/page2/");
    Assert.assertThat(config.getCompiledPath(), is("/page2/_compiled_view"));
  }
View Full Code Here


public class TestConfig {

  @Test
  public void test() {
    Config config = new Config();
    config.setViewPath("/page");
    Assert.assertThat(config.getCompiledPath(), is("/page/_compiled_view"));
   
    config.setViewPath("/page2/");
    Assert.assertThat(config.getCompiledPath(), is("/page2/_compiled_view"));
  }
View Full Code Here

  }
 
  public static void main(String[] args) {
    String path = "F:/develop/workspace2/firefly-template/src/test/page";
//    String path = "/Users/qiupengtao/Documents/workspace/firefly-project/firefly-template/src/test/page";
    Config config = new Config();
    config.setViewPath(path);
    ViewFileReader reader = new ViewFileReader();
    reader.setConfig(config);
    reader.readAndBuild();
  }
View Full Code Here

public class TestConfig {
 
  @Test
  public void test() {
    Config config = new Config();
    config.setViewPath("/page");
    Assert.assertThat(config.getCompiledPath(), is("/page/_compiled_view"));
   
    config.setViewPath("/page2/");
    Assert.assertThat(config.getCompiledPath(), is("/page2/_compiled_view"));
  }
View Full Code Here

TOP

Related Classes of com.firefly.template.Config

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.