org.jbehave.core.io
Class StoryLocation
java.lang.Object
org.jbehave.core.io.StoryLocation
public class StoryLocation
- extends Object
Abstraction of a story location, handling cases in which story path is defined
as a resource in classpath or as a URL.
Given a code location URL and a story path, it provides the methods:
getURL()
: the story location URL, prefixing the code location external form if story path is not a URL
getPath()
: the story location path, removing the code location external form if story path is a URL
StoryLocation
public StoryLocation(URL codeLocation,
String storyPath)
getCodeLocation
public URL getCodeLocation()
getStoryPath
public String getStoryPath()
getURL
public String getURL()
getPath
public String getPath()
toString
public String toString()
- Overrides:
toString
in class Object
Copyright © 2003-2012. All Rights Reserved.