andrewalbert.ca - Andrew Albert's weBlog

java (6165) powershell (166) bdd (65) sublime text (15) jbehave (2)

Example domain paragraphs

I’m dipping my toes in BDD and learning the jbehave framework. I found it surprisingly difficult to find a simple, self-contained example to use as a starting point. I wanted a maven project that depended only on junit and jbehave.

Here’s my minimal jbehave maven project; I hope it helps someone else get up and running quickly. Thanks to David Daedalus and Andreas Ebbert-Karroum , whose code I borrowed, trimmed, and mashed together.

You need 4 files: pom.xml , AnnotatedSteps.java , RunJBehaveStoriesAsAJUnitTest.java , and Math.story in the following directories:

Links to andrewalbert.ca (1)