You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openwebbeans.apache.org by st...@apache.org on 2026/07/29 17:33:13 UTC
(openwebbeans) branch main updated: adding more info logs for a test which fails in the CI environment
This is an automated email from the ASF dual-hosted git repository.
asf-gitbox-commits pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/openwebbeans.git
The following commit(s) were added to refs/heads/main by this push:
new fef3c0c51 adding more info logs for a test which fails in the CI environment
fef3c0c51 is described below
commit fef3c0c5191c3cc1a94b89bdd33733a78e657d2d
Author: Mark Struberg <st...@apache.org>
AuthorDate: Wed Jul 29 19:32:42 2026 +0200
adding more info logs for a test which fails in the CI environment
---
.../test/component/classscanning/NoClassDefFoundHandlingTest.java | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/webbeans-impl/src/test/java/org/apache/webbeans/test/component/classscanning/NoClassDefFoundHandlingTest.java b/webbeans-impl/src/test/java/org/apache/webbeans/test/component/classscanning/NoClassDefFoundHandlingTest.java
index 4a4359a6c..8882c4d10 100644
--- a/webbeans-impl/src/test/java/org/apache/webbeans/test/component/classscanning/NoClassDefFoundHandlingTest.java
+++ b/webbeans-impl/src/test/java/org/apache/webbeans/test/component/classscanning/NoClassDefFoundHandlingTest.java
@@ -25,6 +25,7 @@ import org.junit.Test;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertNull;
+import static org.junit.Assert.assertTrue;
/**
* Test scanning of a class which cannot
@@ -47,9 +48,10 @@ public class NoClassDefFoundHandlingTest extends AbstractUnitTest
{
String classResourceName = "/" + className.replace('.', '/') + ".class";
final URL classRessource = this.getClass().getResource(classResourceName);
+ logger.info("Class do delete : " + className + " at location " + classRessource != null ? classRessource.getFile() : "null");
if (classRessource != null)
{
- new File(classRessource.getFile()).delete();
+ assertTrue("File " + classRessource.getFile() + "could not be deleted", new File(classRessource.getFile()).delete());
}
else
{