From 2828c0a0a8b3225ba0ef61d4da3c735a84b0d2d3 Mon Sep 17 00:00:00 2001 From: Stuart Douglas Date: Thu, 1 Jun 2023 15:35:06 +1000 Subject: [PATCH] Fix test class name display Fixes #33744 --- .../io/quarkus/deployment/dev/testing/JunitTestRunner.java | 3 +++ 1 file changed, 3 insertions(+) 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 51fddadc5f53a..88453151ec334 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,6 +235,9 @@ public void executionStarted(TestIdentifier testIdentifier) { startTimes.put(testIdentifier, System.currentTimeMillis()); String testClassName = ""; Class testClass = getTestClassFromSource(testIdentifier.getSource()); + if (testClass != null) { + testClassName = testClass.getName(); + } for (TestRunListener listener : listeners) { listener.testStarted(testIdentifier, testClassName); }