org.jbehave.core.parser
Class LoadFromRelativeFile
java.lang.Object
org.jbehave.core.parser.LoadFromRelativeFile
- All Implemented Interfaces:
- StoryLoader
public class LoadFromRelativeFile
- extends java.lang.Object
- implements StoryLoader
Loads the content from a place that is relative and
predictable to the compiled scenario class.
See MAVEN_TEST_DIR, which implies a traversal out of 'target/test-classes'
Method Summary |
java.lang.String |
loadStoryAsText(java.lang.String storyPath)
|
protected java.net.URL |
locationFor(java.lang.Class<?> storyClass)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LoadFromRelativeFile
public LoadFromRelativeFile(java.lang.Class<?> storyClass,
java.lang.String traversal)
LoadFromRelativeFile
public LoadFromRelativeFile(java.lang.Class<?> storyClass)
locationFor
protected java.net.URL locationFor(java.lang.Class<?> storyClass)
loadStoryAsText
public java.lang.String loadStoryAsText(java.lang.String storyPath)
- Specified by:
loadStoryAsText
in interface StoryLoader
Copyright © 2003-2010. All Rights Reserved.