Hi Guys
I've just started looking at jbehave. It looks really cool:)
But I am having some troubles, my scenarios just passes even if they
should fail, I can see that they are not picking up my steps:
my steps class:
@Given("when a user visits %page")
public void visits(WebPage page) {
wicketTester.startPage(page.getClass());
}
@Then("%page are rendered")
public void seesPage(WebPage page) {
wicketTester.assertRenderedPage(page.getClass());
}
my scenario (user_visits_pages.scenario) :
when a user visits homePage
errorPage are rendered
my scenario class (UserVisitsPages.java)
public class UserVisitsPages extends JUnitScenario {
public UserVisitsPages() {
this(Thread.currentThread().getContextClassLoader());
}
public UserVisitsPages(final ClassLoader classLoader) {
super(new PropertyBasedConfiguration() {
public ScenarioDefiner forDefiningScenarios() {
return new ClasspathScenarioDefiner(new
UnderscoredCamelCaseResolver(".scenario"), new
PatternScenarioParser(this), classLoader);
}
}, new MyProjectSteps(classLoader));
}
}
When I get these things rolling, I'll probably do a Apache Wicket
integration. Wicket could really need something like this, I know theres
already an integration towards jDave. But I really like the loosely
defined scenarios. It seems as one could really really fast create tests :)
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email