Troubleshooting JUnit 4 If you run JMock 2 with JUnit4 using maven, you must use JUnit version 4.8.1 or later. You’ll get run-time errors like java.lang.NoSuchMethodError: org.junit.internal.runners.MethodValidator.<init>(Lorg/junit/internal/runners/TestClass;)V at org.junit.internal.runners.JUnit4ClassRunner.validate(JUnit4ClassRunner.java:35) at …

I’m just starting to learn to use jMock effectively. I’m frequently referring to my one page jMock Quick Reference. At first I was confused about when to use stubs and …

About jMock The jMock website Martin Fowler’s article about Mocks vs. Stubs Tips & Tricks Mocking EJB local entities Matching beans property-for-property jMock and JSF FacesContext (mocking classes) jMock2

Testing web assets of any sort requires some mock implementations of the standard javax.servlet interfaces. Intelliware created a set of mock implementations several years ago, and we have reused them …