org.testng.internal.reflect.MethodMatcherException: Data provider mismatch Method: testStore([Parameter{index=0, type=by.common.model.DummyDomain, declaredAnnotations=[@mockit.Mocked(stubOutClassInitialization=false)]}]) Arguments: [(java.lang.String)]

GitHub | AlexStasko | 8 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Data provider mismatch with @Mocked annotation

    GitHub | 8 months ago | AlexStasko
    org.testng.internal.reflect.MethodMatcherException: Data provider mismatch Method: testStore([Parameter{index=0, type=by.common.model.DummyDomain, declaredAnnotations=[@mockit.Mocked(stubOutClassInitialization=false)]}]) Arguments: [(java.lang.String)]
  2. 0

    Better error message when "org.testng.internal.reflect.MethodMatcherException: Data provider mismatch "

    GitHub | 1 year ago | hemanthsridhar
    org.testng.internal.reflect.MethodMatcherException: Data provider mismatch Method: TC_PA_008_TC_PA_009_TC_PA_010__TC_PA_011_TC_PA_012_TC_PA_013_TC_PA_014_TC_PA_015_TC_PA_016_TC_A_017_TC_PA_018_TC_PA_019_TC_PA_020_TC_PA_021_TC_PA_022_errorScenarios([Parameter{index=0, type=java.lang.String, declaredAnnotations=[]}, Parameter{index=1, type=java.lang.String, declaredAnnotations=[]}, Parameter{index=2, type=java.lang.String, declaredAnnotations=[]}, Parameter{index=3, type=java.lang.String, declaredAnnotations=[]}, Parameter{index=4, type=java.lang.String, declaredAnnotations=[]}, Parameter{index=5, type=java.lang.String, declaredAnnotations=[]}, Parameter{index=6, type=java.lang.String, declaredAnnotations=[]}, Parameter{index=7, type=java.lang.String, declaredAnnotations=[]}, Parameter{index=8, type=java.lang.String, declaredAnnotations=[]}, Parameter{index=9, type=java.lang.String, declaredAnnotations=[]}, Parameter{index=10, type=java.lang.String, declaredAnnotations=[]}, Parameter{index=11, type=java.lang.String, declaredAnnotations=[]}, Parameter{index=12, type=java.lang.String, declaredAnnotations=[]}, Parameter{index=13, type=java.lang.String, declaredAnnotations=[]}, Parameter{index=14, type=java.lang.String, declaredAnnotations=[]}]) Arguments: [(java.lang.String),(java.lang.String)hemanth,(java.lang.String)sridhar,(java.lang.String)test123,(java.lang.String)test123,(java.lang.String)address1,(java.lang.String)address2,(java.lang.String)Topeka,(java.lang.String)Kansas,(java.lang.String)66601,(java.lang.String)1234567890,(java.lang.String)Super User,(java.lang.String),(java.lang.String)Please enter Email Address.]
  3. 0

    Problem with TestNG Eclipse plugin version 6.9.11.201604020423

    GitHub | 11 months ago | simplylewis
    org.testng.internal.reflect.MethodMatcherException: Data provider mismatch Method: moveFileFails([Parameter{index=0, type=com.cgi.rbsfta.IFileMonitor, declaredAnnotations=[@mockit.Mocked(stubOutClassInitialization=false)]}]) Arguments: [(java.lang.String)]
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    TestNG data providers now fail to work

    YouTrack | 1 year ago
    org.testng.internal.reflect.MethodMatcherException: Data provider mismatch Method: nonNegativeArgument([Parameter{index=0, type=java.lang.String, declaredAnnotations=[]}, Parameter{index=1, type=kotlin.jvm.functions.Function1, declaredAnnotations=[]}, Parameter{index=2, type=long, declaredAnnotations=[]}, Parameter{index=3, type=java.math.BigInteger, declaredAnnotations=[]}]) Arguments: [(java.lang.String)iterative,(uk.org.winder.maths.factorial.Factorial_TestNG$algorithms$1)kotlin.jvm.functions.Function1<java.lang.Long, java.math.BigInteger>,(java.lang.Integer)0,(java.math.BigInteger)1]
  6. 0

    GitHub comment 123#266062311

    GitHub | 6 months ago | krmahadevan
    org.testng.internal.reflect.MethodMatcherException: Data provider mismatch Method: theTest([Parameter{index=0, type=java.lang.String, declaredAnnotations=[]}]) Arguments: [(java.lang.Integer)4]

  1. Dunmer 9 times, last 2 months ago
1 unregistered visitors

Root Cause Analysis

  1. org.testng.internal.reflect.MethodMatcherException

    Data provider mismatch Method: testStore([Parameter{index=0, type=by.common.model.DummyDomain, declaredAnnotations=[@mockit.Mocked(stubOutClassInitialization=false)]}]) Arguments: [(java.lang.String)]

    at org.testng.internal.reflect.DataProviderMethodMatcher.getConformingArguments()
  2. org.testng.internal
    DataProviderMethodMatcher.getConformingArguments
    1. org.testng.internal.reflect.DataProviderMethodMatcher.getConformingArguments(DataProviderMethodMatcher.java:52)
    1 frame
  3. TestNG
    TestNG.run
    1. org.testng.internal.Invoker.injectParameters(Invoker.java:1238)
    2. org.testng.internal.Invoker.invokeTestMethods(Invoker.java:1131)
    3. org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:129)
    4. org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:112)
    5. org.testng.TestRunner.privateRun(TestRunner.java:749)
    6. org.testng.TestRunner.run(TestRunner.java:603)
    7. org.testng.SuiteRunner.runTest(SuiteRunner.java:368)
    8. org.testng.SuiteRunner.runSequentially(SuiteRunner.java:363)
    9. org.testng.SuiteRunner.privateRun(SuiteRunner.java:321)
    10. org.testng.SuiteRunner.run(SuiteRunner.java:270)
    11. org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)
    12. org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86)
    13. org.testng.TestNG.runSuitesSequentially(TestNG.java:1284)
    14. org.testng.TestNG.runSuitesLocally(TestNG.java:1209)
    15. org.testng.TestNG.runSuites(TestNG.java:1124)
    16. org.testng.TestNG.run(TestNG.java:1096)
    16 frames
  4. org.gradle.api
    SuiteTestClassProcessor.stop
    1. org.gradle.api.internal.tasks.testing.testng.TestNGTestClassProcessor.runTests(TestNGTestClassProcessor.java:130)
    2. org.gradle.api.internal.tasks.testing.testng.TestNGTestClassProcessor.stop(TestNGTestClassProcessor.java:80)
    3. org.gradle.api.internal.tasks.testing.SuiteTestClassProcessor.stop(SuiteTestClassProcessor.java:58)
    3 frames
  5. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    4. java.lang.reflect.Method.invoke(Method.java:498)
    4 frames
  6. Gradle Core
    ProxyDispatchAdapter$DispatchingInvocationHandler.invoke
    1. org.gradle.messaging.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:35)
    2. org.gradle.messaging.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:24)
    3. org.gradle.messaging.dispatch.ContextClassLoaderDispatch.dispatch(ContextClassLoaderDispatch.java:32)
    4. org.gradle.messaging.dispatch.ProxyDispatchAdapter$DispatchingInvocationHandler.invoke(ProxyDispatchAdapter.java:93)
    4 frames
  7. com.sun.proxy
    $Proxy2.stop
    1. com.sun.proxy.$Proxy2.stop(Unknown Source)
    1 frame
  8. org.gradle.api
    TestWorker.stop
    1. org.gradle.api.internal.tasks.testing.worker.TestWorker.stop(TestWorker.java:116)
    1 frame
  9. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    4. java.lang.reflect.Method.invoke(Method.java:498)
    4 frames
  10. Gradle Core
    ReflectionDispatch.dispatch
    1. org.gradle.messaging.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:35)
    2. org.gradle.messaging.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:24)
    2 frames
  11. org.gradle.messaging
    MessageHub$Handler.run
    1. org.gradle.messaging.remote.internal.hub.MessageHub$Handler.run(MessageHub.java:360)
    1 frame
  12. Gradle Core
    StoppableExecutorImpl$1.run
    1. org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:54)
    2. org.gradle.internal.concurrent.StoppableExecutorImpl$1.run(StoppableExecutorImpl.java:40)
    2 frames
  13. Java RT
    Thread.run
    1. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
    2. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
    3. java.lang.Thread.run(Thread.java:745)
    3 frames