{"action":"opened","issue":{"url":"https://api.github.com/repos/christophd/citrus/issues/142","repository_url":"https://api.github.com/repos/christophd/citrus","labels_url":"https://api.github.com/repos/christophd/citrus/issues/142/labels{/name}","comments_url":"https://api.github.com/repos/christophd/citrus/issues/142/comments","events_url":"https://api.github.com/repos/christophd/citrus/issues/142/events","html_url":"https://github.com/christophd/citrus/issues/142","id":187024738,"number":142,"title":"TestNGCitrusTestRunner with DataProvider fails with NullPointerException when the dataProvider Name is not Equal to the method name","user":{"login":"engzizo79","id":22474445,"avatar_url":"https://avatars.githubusercontent.com/u/22474445?v=3","gravatar_id":"","url":"https://api.github.com/users/engzizo79","html_url":"https://github.com/engzizo79","followers_url":"https://api.github.com/users/engzizo79/followers","following_url":"https://api.github.com/users/engzizo79/following{/other_user}","gists_url":"https://api.github.com/users/engzizo79/gists{/gist_id}","starred_url":"https://api.github.com/users/engzizo79/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/engzizo79/subscriptions","organizations_url":"https://api.github.com/users/engzizo79/orgs","repos_url":"https://api.github.com/users/engzizo79/repos","events_url":"https://api.github.com/users/engzizo79/events{/privacy}","received_events_url":"https://api.github.com/users/engzizo79/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-11-03T10:39:22Z","updated_at":"2016-11-03T10:39:22Z","closed_at":null,"body":"When Trying to Run a Citrus Test with a TestNG dataProvider, although it is possible to use a dataProvider Name that does not correspond to the method Name and also to set a dataProviderClass, the Citrus Framework tries to find a method in the same class with the name of the dataProvider. This limitation does not exist in the TestNG framework, is not documented and results in the test run to be terminated without any useful message. Only in the TestNG Report I was able to find following stack trace:\r\n\r\njava.lang.NullPointerException\r\n\tat com.consol.citrus.testng.AbstractTestNGCitrusTest.resolveParameter(AbstractTestNGCitrusTest.java:120)\r\n\tat com.consol.citrus.testng.AbstractTestNGCitrusTest.resolveParameter(AbstractTestNGCitrusTest.java:124)\r\n\tat com.consol.citrus.dsl.testng.TestNGCitrusTest.invokeTestMethod(TestNGCitrusTest.java:128)\r\n\tat com.consol.citrus.dsl.testng.TestNGCitrusTest.run(TestNGCitrusTest.java:100)\r\n\tat com.consol.citrus.dsl.testng.TestNGCitrusTest.run(TestNGCitrusTest.java:58)\r\n\tat org.testng.internal.MethodInvocationHelper.invokeHookable(MethodInvocationHelper.java:201)\r\n\tat org.testng.internal.Invoker.invokeMethod(Invoker.java:642)\r\n\tat org.testng.internal.Invoker.invokeTestMethod(Invoker.java:811)\r\n\tat org.testng.internal.Invoker.invokeTestMethods(Invoker.java:1137)\r\n\tat org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:129)\r\n\tat org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:112)\r\n\tat org.testng.TestRunner.privateRun(TestRunner.java:753)\r\n\tat org.testng.TestRunner.run(TestRunner.java:607)\r\n\tat org.testng.SuiteRunner.runTest(SuiteRunner.java:368)\r\n\tat org.testng.SuiteRunner.runSequentially(SuiteRunner.java:363) [..]\r\n\r\nThrough debugging it was clear that org.springframework.util.findMethod was called with the providerName as method name, which is not correct in that case\r\n\r\n"}}
{"actor":{"display_login":"engzizo79"}}