diff --git a/core/deployment/src/main/java/io/quarkus/deployment/dev/testing/JunitTestRunner.java b/core/deployment/src/main/java/io/quarkus/deployment/dev/testing/JunitTestRunner.java index ee468ee0a929e..51fddadc5f53a 100644 --- a/core/deployment/src/main/java/io/quarkus/deployment/dev/testing/JunitTestRunner.java +++ b/core/deployment/src/main/java/io/quarkus/deployment/dev/testing/JunitTestRunner.java @@ -235,10 +235,6 @@ public void executionStarted(TestIdentifier testIdentifier) { startTimes.put(testIdentifier, System.currentTimeMillis()); String testClassName = ""; Class testClass = getTestClassFromSource(testIdentifier.getSource()); - if (testClass != null) { - testClassName = testClass.getName(); - Thread.currentThread().setContextClassLoader(testClass.getClassLoader()); - } for (TestRunListener listener : listeners) { listener.testStarted(testIdentifier, testClassName); }