Replies: 2 comments 1 reply
-
|
Hi @ledoyen Your diagram is indeed correct!
This is basically a hack to allow for the use test method parameters because otherwise you would get ClassCastExceptions. |
Beta Was this translation helpful? Give feedback.
-
Would it be enough for Quarkus if such an extension would be called once for each test class it's registered on? We could even allow configuring a default via a configuration parameter so it would be called for every test class. Does Quarkus need any kind of lifecycle management for its class loader? For example, does it have to be closed at a certain point like an |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
Following #3028 comment of @geoand, I have questions to narrow down the needs of Quarkus regarding a ClassLoader extension point in JUnit-Jupiter.
So it seems that an API such as:
should be sufficient.
However
AppClassLoaderand they are subject to being injected to thetestInstance(such asTestInfo). I am puzzled about the fact that it works today, as thetestInstanceclass is loaded by theQuarkus Runtime ClassLoaderand that this class should load theTestInfoclass from theQuarkus Base Runtime ClassLoaderbut don't.So I guess, my question is, what guaranties will need the QuarkusTestExtension from such an API ?
cc @geoand, @marcphilipp
Beta Was this translation helpful? Give feedback.
All reactions