This is an automated email from the ASF dual-hosted git repository.

markt-asf pushed a commit to branch 10.1.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git


The following commit(s) were added to refs/heads/10.1.x by this push:
     new 88348a2868 Another test to skip on Java < 17
88348a2868 is described below

commit 88348a286875754a9cf494e6ddb0b927257f1a23
Author: Mark Thomas <[email protected]>
AuthorDate: Tue Nov 10 12:30:58 2026 +0000

    Another test to skip on Java < 17
---
 test/org/apache/catalina/startup/TestTomcatNoServer.java | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/test/org/apache/catalina/startup/TestTomcatNoServer.java 
b/test/org/apache/catalina/startup/TestTomcatNoServer.java
index 535893c07c..aae625544d 100644
--- a/test/org/apache/catalina/startup/TestTomcatNoServer.java
+++ b/test/org/apache/catalina/startup/TestTomcatNoServer.java
@@ -26,9 +26,11 @@ import java.util.jar.JarFile;
 import java.util.jar.Manifest;
 
 import org.junit.Assert;
+import org.junit.Assume;
 import org.junit.Test;
 
 import org.apache.catalina.core.StandardContext;
+import org.apache.tomcat.util.compat.JreCompat;
 import org.apache.tomcat.util.descriptor.DigesterFactory;
 import org.apache.tomcat.util.descriptor.XmlErrorHandler;
 import org.apache.tomcat.util.descriptor.web.WebRuleSet;
@@ -102,6 +104,8 @@ public class TestTomcatNoServer {
 
     @Test
     public void testJarsDecoration() throws Exception {
+        Assume.assumeTrue("Requires BND in build environment which requires 
Java 17+", JreCompat.isJre17Available());
+
         File libDir = new File(LoggingBaseTest.getBuildDirectory(), "lib");
         try (JarFile catalinaJar = new JarFile(new File(libDir, 
"tomcat-util.jar"))) {
             Manifest manifest = catalinaJar.getManifest();


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to