java.lang.Exception: Method XZY should have no parameters

Did you ever stumbled across the following error during developing test-cases with JUnit and JMockit?

java.lang.Exception: Method XZY should have no parameters

Here is the quick and easy fix for it: Fix the ordering of the dependencies in your pom.xml. The dependency for JMockit has to come first!

Written: