9 date: "2016-10-09T10:29:40+00:00"
10 guid: http://juplo.de/?p=535
13 title: 'java.lang.Exception: Method XZY should have no parameters'
14 url: /java-lang-exception-method-xzy-should-have-no-parameters/
17 Did you ever stumbled across the following error during developing test-cases with [JUnit](http://junit.org/ "Visit the homepage of the JUnit-Project") and [JMockit](http://jmockit.org/ "Visit the homepage of the JMockit-Project")?
20 java.lang.Exception: Method XZY should have no parameters
24 Here is the quick and easy fix for it:
25 **Fix the ordering of the dependencies in your pom.xml.**
26 The dependency for JMockit has to come first!
28 ## Funded by the Europian Union
30 This article was published in the course of a
31 [resarch-project](http://yourshouter.com/projekte/crowdgest%C3%BCtzte-veranstaltungs-suchmaschine.html "Show details about the funded resarch-project"),
32 that is funded by the European Union and the federal state Northrhine-Wetphalia.
34 [](http://yourshouter.com/projekte/crowdgest%C3%BCtzte-veranstaltungs-suchmaschine.html "Show details about the funded resarch-project")