Package org.jbehave.core.io

Examples of org.jbehave.core.io.InvalidStoryResource


    public String loadResourceAsText(String resourcePath) {
    try {
      Type type = client.getType();
            return text(get(uri(resourcePath, type)), type);
    } catch (Exception cause) {
      throw new InvalidStoryResource(resourcePath, cause);
    }
  }
View Full Code Here


    public void uploadResource(Resource resource) {
        try {
            Type type = client.getType();
            put(uri(resource.getURI(), type), entity(resource, type));
        } catch (Exception cause) {
            throw new InvalidStoryResource(resource.toString(), cause);
        }
    }
View Full Code Here

    @Override
    public String loadResourceAsText(String storyPath) {
        try {
            return parseOdt(loadOdt(resourceAsStream(storyPath)));
        } catch (Exception cause) {
            throw new InvalidStoryResource(storyPath, cause);
        }
    }
View Full Code Here

    public String loadResourceAsText(String resourcePath) {
        try {
            return parseOdt(loadOdt(resourceAsStream(resourcePath)));
        } catch (Exception cause) {
            throw new InvalidStoryResource(resourcePath, cause);
        }
    }
View Full Code Here

TOP

Related Classes of org.jbehave.core.io.InvalidStoryResource

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.