Author Login
Post Reply
2009/11/23 Stephen Smith <steve@(protected)>:
> I'm thinking of writing a Checkstyle custom check that checks a class
> containing a Mockery field is annotated with @RunWith(JMock).
>
> Can anyone think of a scenario where you might want a Mockery field and not
> use the JMock TestRunner implementation?
If you want to use a different test runner (e.g. parameterised test
runner) you have to call context.assertIsSatisfied() explicitly.
The new Rules mechanism in JUnit avoids this limitation.
--Nat
--
http://www.natpryce.com
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email