--
You received this message because you are subscribed to the Google Groups "bndtools-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bndtools-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/bndtools-users/54024b6e-8260-4ce8-aef9-bb5134521f8fn%40googlegroups.com.
net.bytebuddy:byte-buddy:1.10.13
net.bytebuddy:byte-buddy-agent:1.10.13
org.objenesis:objenesis:3.1
org.mockito:mockito-core:3.5.13
-testpath.mockito: ../cnf/libs/mockito-junit-jupiter-3.5.11.jar;version=file,\org.mockito.mockito-core;version=3.5.11,\net.bytebuddy:byte-buddy:1.10.13,\net.bytebuddy:byte-buddy-agent:1.10.13,\
org.objenesis:objenesis:3.1
You received this message because you are subscribed to a topic in the Google Groups "bndtools-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/bndtools-users/F9LyRkv9aqY/unsubscribe.
To unsubscribe from this group and all its topics, send an email to bndtools-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/bndtools-users/CAO6F8YzcXZNCjJhsVxPR3cAwR8YxF%3D_Z87S_dVeU3UZMLuD07A%40mail.gmail.com.
Dear Fr Jeremy,Thank you so much for the detailed explanation. It does really help, but I have not still figured out how to make this work.
About the -runvm parameter: if I add this header, will that not apply to any run of the application? That is, there is no way to specify a -runvm that only applies for test runs, does it?
Specifically talking about Mockito, I do use a .mvn repository. Using your tip with the right-click, I have pulled the mockito dependencies into the build.mvn repo:net.bytebuddy:byte-buddy:1.10.13
net.bytebuddy:byte-buddy-agent:1.10.13
org.objenesis:objenesis:3.1
org.mockito:mockito-core:3.5.13
Then I added (at least, I tried to add) these dependencies to the testpath. I used the following on cnf/build.bnd, since I want for mockito to be available to any tests in the application:-testpath.mockito: ../cnf/libs/mockito-junit-jupiter-3.5.11.jar;version=file,\org.mockito.mockito-core;version=3.5.11,\net.bytebuddy:byte-buddy:1.10.13,\net.bytebuddy:byte-buddy-agent:1.10.13,\
org.objenesis:objenesis:3.1
-testpath.mockito: org.mockito:mockito-junit-jupiter,\org.mockito.mockito-core,\net.bytebuddy.byte-buddy,\net.bytebuddy.byte-buddy-agent,\
org.objenesis
However, I get exactly the same errors as before. I inspected the dependency net.bytebuddy:byte-buddy:1.10.13 with the super-useful JAR File Viewer and it does contain the net/bytebuddy/dynamic/loading/ClassInjector$UsingReflection which causes the NoClassDefFounError, so I don't understand what's missing or what I am doing wrong.
Finally, I am curious about the build models you mentioned at the end of your email. I've seen in the Bndtools tutorials that Gradle is merely used for being able to repeat the build in a CI environment, but because I am trying to go step by step, I haven't added any Gradle files yet. However, when (or if!) I find myself comfortable enough to go on making more complex projects, I want to add it. Maybe having some gradle configuration will help Eclipse sort out the dependencies? Or will it just be more confusing?
Thanks in advance for you patience and your time.
To view this discussion on the web visit https://groups.google.com/d/msgid/bndtools-users/CAFWAsK2NzLDPbA4acjO%3D5gVA8YWBe2Bng%3DCY--WvL9qw76rZMQ%40mail.gmail.com.
org.junit.jupiter:junit-jupiter-api:5.7.0
org.junit.jupiter:junit-jupiter-engine:5.7.0
org.junit.jupiter:junit-jupiter-migrationsupport:5.7.0
org.junit.jupiter:junit-jupiter-params:5.7.0
org.junit.platform:junit-platform-commons:1.7.0
org.junit.platform:junit-platform-engine:1.7.0
org.junit.platform:junit-platform-launcher:1.7.0
org.junit.platform:junit-platform-runner:1.7.0
org.junit.platform:junit-platform-suite-api:1.7.0
org.apiguardian:apiguardian-api:1.1.0
org.opentest4j:opentest4j:1.2.0
-testpath.jupiter: junit-jupiter-api,\junit-platform-commons,\junit-jupiter-api,\junit-jupiter-engine,\
junit-jupiter-migrationsupport,\
junit-jupiter-params,\
junit-platform-commons,\
junit-platform-engine,\
junit-platform-launcher,\
junit-platform-runner,\
junit-platform-suite-api,\
org.apiguardian:apiguardian-api,\
org.opentest4j
To view this discussion on the web visit https://groups.google.com/d/msgid/bndtools-users/CAO6F8Yx6%3DtLFyeb_NnZcsr94PVwg2hrYWpeZFLsYk53hNTu88w%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/bndtools-users/CAFWAsK0CEEJg%2BWVAJLavFREYvE51y2CQDzsruVHr%3DabPC5Adpw%40mail.gmail.com.