Cannot create Launcher without at least one TestEngine, but I think all the jars are in place #4407
-
I'm trying to replicate a mockito bug where we are launching test via API for our integration tests. Anyway it has been hours that I'm struggling whit this exception The deployment looks like this: In the debugger is used this line of code But I get
I don't know if this is useful. Any help is appreciated |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
I suspect some snafu to be causing this. Unfortunately, I know nothing about Wildfly but maybe setting the thread context class loader for JUnit helps before calling Thread.currentThread().setContextClassLoader(getClass().getClassLoader());
Launcher launcher = LauncherFactory.create();
... |
Beta Was this translation helpful? Give feedback.
Finaly I got it, the implementation of the test engine is in
junit-jupiter-engine
and the war was not depending on it. So it's not able to see the module class loader but the war lives in it's own classloader.Anyway this is strange all the classes are visible at runtime, only the class loading is failing
What is solving the proble are these dependency in the war