freepascal / mockito

Automatically exported from code.google.com/p/mockito
0 stars 0 forks source link

add bdd aliases #96

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
It would be nice if the syntax was more fluent with given-when-then syntax
of BDD tests.

Therefore you can do:

//given
BDDMockito.given(mock.foo()).willReturn("bar");
BDDMockito.willThrow(exc).given(mock).bar());

//when

//then

BDDMockito class has been added to the main distro. If you use BDDMockito
instead of Mockito you will be able to use bdd aliases.

Original issue reported on code.google.com by szcze...@gmail.com on 18 Jun 2009 at 11:13

GoogleCodeExporter commented 9 years ago

Original comment by szcze...@gmail.com on 18 Jun 2009 at 11:13