Package org.jbehave.core.io.rest

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


    }
  }

  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 "
View Full Code Here


    @Test
    public void canExportFromFilesystem() throws IOException {

        // Given
        ResourceIndexer indexer = mock(ResourceIndexer.class);
        ResourceUploader uploader = mock(ResourceUploader.class);
        String rootURI = "http://wiki";
        String text1 = "story1";
        String text2 = "story2";
        String sourcePath = "target/stories";
        String sourceExt = ".story";
View Full Code Here

    exporter.exportResources(rootURI);
  }

  @When("story $name is uploaded appending '$text'")
  public void storyIsUploaded(String name, String text) {
    ResourceUploader uploader = resourceupLoader();
    Resource resource = index.get(name);
    resource.setContent(resource.getContent()+" "+text);
    uploader.uploadResource(resource);
  }
View Full Code Here

TOP

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

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.