Have you tried to run the provided examples? that is a excellent way to figure out this kind of configuration problems.
regards 2013/4/15 Kendall Shaw <[email protected]> > How can I associate a steps class with a story? It would be great if I > could somehow indicate: use this class with this story. > > So far, all of my attempts have resulted in no stories being found. > > From main: > > Embedder emb = new Embedder(); > List<String> stories = Arrays.asList("stories/test_** > steps.story"); > emb.candidateSteps().add(new TestSteps()); > emb.runStoriesAsPaths(stories)**; > > stories/test_steps.story: > > Story: A story > > Scenario: A something and something else > > Given a something > Then something else > > > public class TestSteps extends Steps { > > @Given("a something") > public void givenASomething() { > System.out.println("**givenASomething()"); > } > > @Then("something else") > public void somethingElse() { > System.out.println("**somethingElse()"); > } > } > > the result is: > > Exception in thread "main" org.jbehave.core.io.**StoryResourceNotFound: > Story path 'stories/test_steps.story' not found by class loader > sun.misc.Launcher$**AppClassLoader@4c5a9c6e > > "stories" is on the classpath. I've also copied code from the > AnnotatedEmbedder class from the documentation. The part: > > new StoryFinder().findPaths(**CodeLocations.** > codeLocationFromPath(getClass(**)), "**/*.story", ""); > > finds the story (I copied it into the source directory). > > The result is that the test completes with 0 steps and 0 stories. > > Is there some part that I am missing? > > Kendall > > -- > ThisIsHardToRead, asIsThis. This_is_easier, unless_it_is_underlined. > This.is.easy. This-is-easy-too. Almost as easy to read as this. > > > ------------------------------**------------------------------**--------- > To unsubscribe from this list, please visit: > > > http://xircles.codehaus.org/**manage_email<http://xircles.codehaus.org/manage_email> > > > -- "Tudo vale a pena se a alma não é pequena..."
