I am trying to do this grails thing right, and I figure I should be using tests. My only experience with tests is during the 3 or so hours my buddy taught me cucumber on rails...
In cucumber you separate the "descriptions" and "definitions" and use regular expressions. Easyb looks really close but the descriptions and the definitions are right on top of each other.
So in cucumber I can do something which looks like
given "I have done myFancyThing"
then "I should see the fancyThingResponse"
given "I have done myNormalThing"
then "I should see normalThingResponse"
and then there is only one function for "given I have done X" and one function for "then I should see X"
It seems with easyb for example I would have to rewrite the code for each description like
given "I have done myFancyThing"{
//code code code
}
given "I have done myNormalThing"{
//cucumber is dryer than easyb?
}
Am I wrong about easyb? Is there a designed-for-java/groovy testing framework which has this, or some kind of groovy way to add this in that I'm not thinking of?