Describe the bug
(Describe the problem clearly and concisely.)
When using an custom JUnit extension the classloader for the extension is different then the classloader for the actual test.
This is only inside @QuarkusTest annotated tests.
Expected behavior
(Describe the expected behavior clearly and concisely.)
Same classloader as test.
Actual behavior
(Describe the actual behavior clearly and concisely.)
Different classloader (AppClassLoader vs. Base Runtime Classloader)
org.acme.ExampleResourceTest fails because of the class loading issue
org.acme.StaticProviderTest shows the expected and in my opinion correct behaviour.
Configuration
# Add your application.properties here, if applicable.
Screenshots
(If applicable, add screenshots to help explain your problem.)
Environment (please complete the following information):
Output of uname -a or ver: MINGW64_NT-10.0-18363 XXX 3.1.4-340.x86_64 2020-05-19 12:55 UTC x86_64 Msys
Output of java -version: openjdk 11.0.7 2020-04-14 LTS
GraalVM version (if different from Java):
Quarkus version or git rev: 1.6.0.Final
Build tool (ie. output of mvnw --version or gradlew --version): Apache Maven 3.6.3 (cecedd343002696d0abb50b32b541b8a6ba2883f)
Additional context
(Add any other context about the problem here.)
Describe the bug (Describe the problem clearly and concisely.) When using an custom JUnit extension the classloader for the extension is different then the classloader for the actual test. This is only inside
@QuarkusTest
annotated tests.Expected behavior (Describe the expected behavior clearly and concisely.) Same classloader as test.
Actual behavior (Describe the actual behavior clearly and concisely.) Different classloader (AppClassLoader vs. Base Runtime Classloader)
To Reproduce Steps to reproduce the behavior:
https://github.com/tkalmar/bug-with-quarkus
org.acme.ExampleResourceTest
fails because of the class loading issueorg.acme.StaticProviderTest
shows the expected and in my opinion correct behaviour.Configuration
Screenshots (If applicable, add screenshots to help explain your problem.)
Environment (please complete the following information):
uname -a
orver
:MINGW64_NT-10.0-18363 XXX 3.1.4-340.x86_64 2020-05-19 12:55 UTC x86_64 Msys
java -version
:openjdk 11.0.7 2020-04-14 LTS
1.6.0.Final
mvnw --version
orgradlew --version
):Apache Maven 3.6.3 (cecedd343002696d0abb50b32b541b8a6ba2883f)
Additional context (Add any other context about the problem here.)
https://github.com/quarkusio/quarkus/issues/10623
$upstream:10623$