Examples of ImportToFilesystem


Examples of org.jbehave.core.io.rest.filesystem.ImportToFilesystem

    ResourceLoader loader = newResourceLoader();
    getLog().info(
        "Creating importer to filesystem using REST provider "
            + restProvider + " with resourcesPath " + resourcesPath
            + " and resourcesExt " + resourcesExt);
    return new ImportToFilesystem(indexer, loader, resourcesPath, resourcesExt);
  }
View Full Code Here

Examples of org.jbehave.core.io.rest.filesystem.ImportToFilesystem

        when(loader.loadResourceAsText(index.get("two").getURI())).thenReturn(text2);

        // When
        String targetPath = "target/stories";
        String targetExt = ".story";
        ResourceImporter importer = new ImportToFilesystem(indexer, loader, targetPath, targetExt);
        importer.importResources(rootURI);

        // Then
        File file1 = new File(targetPath + "/one" + targetExt);
        assertThat(file1.exists(), equalTo(true));
        assertThat(readFileToString(file1), equalTo(text1));
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.