Different @InjectWith IInjectorProvider types result in failures when ran in the same test session #3043
Replies: 2 comments 3 replies
-
Can you give an example what you mean by mix and what kind of error do you see junit 4 or 5 or 4 in 5 Osgi/ui or standalone |
Beta Was this translation helpful? Give feedback.
-
I mean, one test case uses one The first test case in this case, has a runtime module that causes errors in DSL generation.
E.g.:
JUnit 5. The same test suite with JUnit 4 has no errors.
Standalone. I've not checked with UI/Eclipse execution. |
Beta Was this translation helpful? Give feedback.
-
As the title goes, if I mix the
IInjectorProvider
types used in tests of the test suites, I get obscure errors. I assume, due to the injection not being done right / registries not being setup right.Is this an expected issue, that needs to be worked around by not mixing injector providers in the same test session? Or its a flaw in the
IInjectorProvider
implementation? Unfortunately I don't have a reproduction snippet outside of our product.Beta Was this translation helpful? Give feedback.
All reactions