It would be nice not to have to depend on jmock when writing a BDD-style test involving no mocks
GoogleCodeExporter opened this issue · comments
What steps will reproduce the problem?
1. Write a BDD-flavoured test involving no mocks, e.g. the storer example from:
http://docs.codehaus.org/display/GROOVY/Using+Instinct+with+Groovy
2. Run the spec
What is the expected output? What do you see instead?
Would like this:
- should_reverse_lists (FAILED)
java.lang.AssertionError: Expression: (reversed == expectedReverse).
Values: reversed = [5, 3, 1], expectedReverse = [5, 3, 2]
Intead, see this:
Caught: java.lang.NoClassDefFoundError: org/jmock/api/ExpectationError
What version of the product are you using? On what operating system?
0.1.5
Original issue reported on code.google.com by Paul.Kin...@gmail.com
on 20 Oct 2007 at 9:19
Hmmm, is the problem including another dependency (jMock, etc.) when you don't
need to or using jMock?
Original comment by tomjad...@gmail.com
on 21 Oct 2007 at 10:30
Yes, jmock's ExpectationError has been borrowed for non-mocking scenarios. So
even
when I don't have a single (direct) use of jmock it is now a runtime dependency
that
didn't exist in 0.1.4.
Original comment by Paul.Kin...@gmail.com
on 4 Dec 2007 at 4:56
Fixed by not depending on jMock explicitly.
Original comment by tomjad...@gmail.com
on 16 Jul 2008 at 5:57
- Changed state: Fixed