Unable to run tests using test-data-supplier and JDK 17 #210
-
I am trying to make use of test-data-supplier in my framework, but getting error when try to run the tests. Using JDK 17 (java version "17.0.10" 2024-01-16 LTS) `java.lang.reflect.InvocationTargetException java.util.ServiceConfigurationError: org.testng.ITestNGListener: io.github.sskorol.core.DataProviderTransformer Unable to get public no-arg constructor I created a simple maven project with following pom.xml file: `
` Can anybody help to resolve this issue? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
In maven-surefire-plugin part of pom.xml file I added:
It looks like this: I am getting new error: |
Beta Was this translation helpful? Give feedback.
Ok, I finally got time to take a look at it. And I appreciate the code you've shared.
There are 2 issues with it:
org.example
and it'll workSo in summary, you must always put your classes in packages.
P.S. Thanks for the finding with
--add-opens java.base/java.lang=ALL-UNNAMED
. I'll update the docs.