]> juplo.de Git - website/blob
492ca7e064ca16be0352a0c4c28200bbf252a6c3
[website] /
1 ---
2 _edit_last: "3"
3 author: kai
4 categories:
5   - java
6   - jmockit
7   - junit
8   - maven
9 date: "2016-10-09T10:29:40+00:00"
10 guid: http://juplo.de/?p=535
11 parent_post_id: null
12 post_id: "535"
13 title: 'java.lang.Exception: Method XZY should have no parameters'
14 url: /java-lang-exception-method-xzy-should-have-no-parameters/
15
16 ---
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")?
18
19 ```bash
20 java.lang.Exception: Method XZY should have no parameters
21
22 ```
23
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!
27
28 ## Funded by the Europian Union
29
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.
33
34 [![Europäische Union: Investitionen in unsere Zukunft - Europäischer Fonds für regionale Entwicklung](/img/EFRE_Foerderhinweis_deutsch_farbig.svg)![EFRE.NRW 2014-2020: Invesitionen in Wachstum und Beschäftigung](/img/Ziel2NRW_4c_1809_eps.svg)](http://yourshouter.com/projekte/crowdgest%C3%BCtzte-veranstaltungs-suchmaschine.html "Show details about the funded resarch-project")