That is exactly what I am trying to. There is no reason why BDD can not be
applied on the unit level of development. Proper TDD is actually really
about behaviour anyway. :)

>
> Chris / Christiano,
>
> Yes - this feels like doing TDD/unit testing via Given/When/Then
> and that might not be the most appropriate use of BDD.
>
> You could do the expects as additional @Givens
>
> @Given a service object and DAO object
> @Given the DAO object expects methodX and returns Y
> @When the service method is called
>
> The @When could do all the replays and then invoke the method.
>
> Brian
>

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to