diff --git a/server/src/test/java/io/jans/as/server/JansUnitTestsListener.java b/server/src/test/java/io/jans/as/server/JansUnitTestsListener.java index 146d38bc27f..d98353922b0 100644 --- a/server/src/test/java/io/jans/as/server/JansUnitTestsListener.java +++ b/server/src/test/java/io/jans/as/server/JansUnitTestsListener.java @@ -73,14 +73,7 @@ private void testFailed(ITestResult result) { } private String getTestInfo(ITestResult result) { - String testInfo = null; - if(result.getClass() != null && result.getMethod() != null) { - testInfo = result.getClass().getName() + "." + result.getMethod().getMethodName(); - } - else { - testInfo = result.getName(); - } - return testInfo; + return result.getInstanceName() + "." + result.getName(); } }