Search in sources :

Example 1 with ExportFromFilesystem

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

the class RESTSteps method whenStoriesAreExported.

@When("stories in $sourcePath are exported to $rootURI")
public void whenStoriesAreExported(String sourcePath, String rootURI) {
    ResourceExporter exporter = new ExportFromFilesystem(resourceIndexer(), resourceupLoader(), sourcePath, ".story", "", "**/*.story");
    exporter.exportResources(rootURI);
}
Also used : ResourceExporter(org.jbehave.core.io.rest.ResourceExporter) ExportFromFilesystem(org.jbehave.core.io.rest.filesystem.ExportFromFilesystem) When(org.jbehave.core.annotations.When)

Example 2 with ExportFromFilesystem

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

the class ExportFromFilesystemMojo method createExporter.

private ResourceExporter createExporter() {
    ResourceIndexer indexer = newResourceIndexer();
    ResourceUploader uploader = newResourceUploader();
    getLog().info("Creating exporter from filesystem using REST provider " + restProvider + " with resourcesPath " + resourcesPath + ", resourcesExt " + resourcesExt + ", resourcesSyntax " + resourcesSyntax + " and resourcesIncludes " + resourcesIncludes);
    return new ExportFromFilesystem(indexer, uploader, resourcesPath, resourcesExt, resourcesSyntax, resourcesIncludes);
}
Also used : ResourceUploader(org.jbehave.core.io.rest.ResourceUploader) ExportFromFilesystem(org.jbehave.core.io.rest.filesystem.ExportFromFilesystem) ResourceIndexer(org.jbehave.core.io.rest.ResourceIndexer)

Aggregations

ExportFromFilesystem (org.jbehave.core.io.rest.filesystem.ExportFromFilesystem)2 When (org.jbehave.core.annotations.When)1 ResourceExporter (org.jbehave.core.io.rest.ResourceExporter)1 ResourceIndexer (org.jbehave.core.io.rest.ResourceIndexer)1 ResourceUploader (org.jbehave.core.io.rest.ResourceUploader)1