Java Mailing List Archive

http://www.gg3721.com/

Home » user.jmock »

Re: [jmock-user] Checkstyle check for @RunWith(JMock)

Nat Pryce

2009-12-03

Replies: Find Java Web Hosting

Author LoginPost 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


©2008 gg3721.com - Jax Systems, LLC, U.S.A.