Package org.jbake.launcher

Examples of org.jbake.launcher.Init.run()


 
  @Test
  public void initOK() throws Exception {
    Init init = new Init(config);
    File initPath = folder.newFolder("init");
    init.run(initPath, rootPath, "freemarker");
    File testFile = new File(initPath, "testfile.txt");
    assertThat(testFile).exists();
  }
 
  @Test
View Full Code Here


    Init init = new Init(config);
    File initPath = folder.newFolder("init");
    File contentFolder = new File(initPath.getPath() + File.separatorChar + config.getString(Keys.CONTENT_FOLDER));
    contentFolder.mkdir();
    try {
      init.run(initPath, rootPath, "freemarker");
      fail("Shouldn't be able to initialise folder with content folder within it!");
    } catch (Exception e) {
      e.printStackTrace();
    }
    File testFile = new File(initPath, "testfile.txt");
View Full Code Here

  @Test
  public void initFailInvalidTemplateType() throws IOException{
    Init init = new Init(config);
    File initPath = folder.newFolder("init");
    try {
      init.run(initPath, rootPath, "invalid");
      fail("Shouldn't be able to initialise folder with invalid template type");
    } catch (Exception e) {
      e.printStackTrace();
    }
    File testFile = new File(initPath, "testfile.txt");
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.