Package org.jbehave.core.io.rest

Examples of org.jbehave.core.io.rest.ResourceExporter


  public void execute() throws MojoExecutionException, MojoFailureException {
    try {
      getLog().info(
          "Exporting from filesystem resources to REST root URI "
              + restRootURI);
      ResourceExporter exporter = createExporter();
      exporter.exportResources(restRootURI);
    } catch (Exception e) {
      String message = "Failed to export from filesystem resources to REST root URI "
          + restRootURI;
      getLog().warn(message);
      throw new MojoExecutionException(message, e);
View Full Code Here


    index.put("Another_story", anotherResource);
        String includes = "**";
    when(indexer.indexResources(rootURI, sourcePath, sourceSyntax, includes)).thenReturn(index);

        // When
        ResourceExporter exporter = new ExportFromFilesystem(indexer, uploader, sourcePath, sourceExt, sourceSyntax, includes);
        exporter.exportResources(rootURI);

        // Then
        verify(uploader).uploadResource(aResource);
        verify(uploader).uploadResource(anotherResource);
    }
View Full Code Here

    assertThat(asText, containsString(text));
  }

  @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);
  }
 
View Full Code Here

TOP

Related Classes of org.jbehave.core.io.rest.ResourceExporter

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.