Skip to content

Unable to run tests using test-data-supplier and JDK 17 #210

Answered by sskorol
dejanilicqa asked this question in Q&A
Discussion options

You must be logged in to vote

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:

  • missing aspectj dependency
        <dependency>
            <groupId>org.aspectj</groupId>
            <artifactId>aspectjweaver</artifactId>
            <version>${aspectj.version}</version>
        </dependency>
  • your test is out of the package -> put the class into e.g. org.example and it'll work

So 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.

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@sskorol
Comment options

@dejanilicqa
Comment options

@sskorol
Comment options

Answer selected by sskorol
@dejanilicqa
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants