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.
-
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
AppClassLoader
and they are subject to being injected to thetestInstance
(such asTestInfo
). I am puzzled about the fact that it works today, as thetestInstance
class is loaded by theQuarkus Runtime ClassLoader
and that this class should load theTestInfo
class from theQuarkus Base Runtime ClassLoader
but 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