Search in sources :

Example 6 with ResourceIndexer

use of org.jbehave.core.io.rest.ResourceIndexer in project jbehave-core by jbehave.

the class ImportToFilesystemMojo method createImporter.

private ResourceImporter createImporter() {
    ResourceIndexer indexer = newResourceIndexer();
    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);
}
Also used : ResourceLoader(org.jbehave.core.io.ResourceLoader) ImportToFilesystem(org.jbehave.core.io.rest.filesystem.ImportToFilesystem) ResourceIndexer(org.jbehave.core.io.rest.ResourceIndexer)

Aggregations

ResourceIndexer (org.jbehave.core.io.rest.ResourceIndexer)6 File (java.io.File)3 HashMap (java.util.HashMap)3 ResourceLoader (org.jbehave.core.io.ResourceLoader)3 Resource (org.jbehave.core.io.rest.Resource)3 Test (org.junit.Test)3 FileUtils.readFileToString (org.apache.commons.io.FileUtils.readFileToString)2 ResourceUploader (org.jbehave.core.io.rest.ResourceUploader)2 ImportToFilesystem (org.jbehave.core.io.rest.filesystem.ImportToFilesystem)2 When (org.jbehave.core.annotations.When)1 ResourceExporter (org.jbehave.core.io.rest.ResourceExporter)1 ResourceImporter (org.jbehave.core.io.rest.ResourceImporter)1 ExportFromFilesystem (org.jbehave.core.io.rest.filesystem.ExportFromFilesystem)1