Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Wrong arg count -parameterless test and conf method declaring Object #202
In the scenario where a configuration method declares Objec type parameter and
Switching the configuration method parameters order didn't do the trick (similar issue - #128)
The following test clarifies the problem (run from Eclipse plugin: 18.104.22.16820308_1617 ):
This comment has been minimized.
This comment has been minimized.Show comment Hide comment
This issue happened because you have a test method which does not get any parameters. I also faced the same issue and the issue was because of the JMockIt in the dependencies. JMockIt mocks the Parameters.getInjectedParameter and returns "" instead of null if test method does not get any parameters (https://code.google.com/p/jmockit/source/diff?spec=svn2378&r=2378&format=side&path=/trunk/main/src/mockit/integration/testng/internal/TestNGRunnerDecorator.java), because of the former reason TestNG returns 3 parameters instead of 2.