cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cohei...@apache.org
Subject [cxf] branch 3.1.x-fixes updated: Disabling failing test with JDK 1.7
Date Wed, 28 Feb 2018 17:58:10 GMT
This is an automated email from the ASF dual-hosted git repository.

coheigea pushed a commit to branch 3.1.x-fixes
in repository https://gitbox.apache.org/repos/asf/cxf.git


The following commit(s) were added to refs/heads/3.1.x-fixes by this push:
     new 649cf4c  Disabling failing test with JDK 1.7
649cf4c is described below

commit 649cf4c67c6535d13564729822fa46ce41edd18b
Author: Colm O hEigeartaigh <coheigea@apache.org>
AuthorDate: Wed Feb 28 17:57:54 2018 +0000

    Disabling failing test with JDK 1.7
---
 .../apache/cxf/staxutils/validation/Stax2ValidationUtilsTest.java | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/core/src/test/java/org/apache/cxf/staxutils/validation/Stax2ValidationUtilsTest.java
b/core/src/test/java/org/apache/cxf/staxutils/validation/Stax2ValidationUtilsTest.java
index d6cc958..d8ea7b7 100644
--- a/core/src/test/java/org/apache/cxf/staxutils/validation/Stax2ValidationUtilsTest.java
+++ b/core/src/test/java/org/apache/cxf/staxutils/validation/Stax2ValidationUtilsTest.java
@@ -37,6 +37,7 @@ import org.apache.cxf.service.model.SchemaInfo;
 import org.apache.cxf.service.model.ServiceInfo;
 import org.apache.ws.commons.schema.XmlSchemaCollection;
 
+import org.junit.Assume;
 import org.junit.Before;
 import org.junit.Rule;
 import org.junit.Test;
@@ -58,6 +59,9 @@ import static org.junit.Assert.assertThat;
 @RunWith(Parameterized.class)
 public class Stax2ValidationUtilsTest {
 
+    private static final String JAVA_VERSION = System.getProperty("java.version");
+    private static final boolean IS_JAVA_7 = JAVA_VERSION != null && JAVA_VERSION.startsWith("1.7");
+
     private static final String VALID_MESSAGE_ECHO = "<echo xmlns=\"http://www.echo.org\">"
             + "<echo>Testing echo</echo>" + "</echo>";
 
@@ -131,6 +135,8 @@ public class Stax2ValidationUtilsTest {
 
     @Test
     public void testValidMessage() throws Exception {
+        Assume.assumeFalse(IS_JAVA_7);
+
         Throwable exception = null;
         xmlReader = createReader(validMessage);
         utils.setupValidation(xmlReader, endpoint, serviceInfo);
@@ -147,6 +153,8 @@ public class Stax2ValidationUtilsTest {
 
     @Test
     public void testInvalidMessage() throws Exception {
+        Assume.assumeFalse(IS_JAVA_7);
+
         Throwable exception = null;
         xmlReader = createReader(invalidMessage);
         utils.setupValidation(xmlReader, endpoint, serviceInfo);

-- 
To stop receiving notification emails like this one, please contact
coheigea@apache.org.

Mime
View raw message