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
Original issue reported on code.google.com by
szcze...@gmail.com
on 18 Jun 2009 at 11:13