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

ffang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/cxf.git


The following commit(s) were added to refs/heads/master by this push:
     new 61982bf  [CXF-7953]add those tests can't pass with jacorb in 
notWorkingJDK11 list
61982bf is described below

commit 61982bf950ffcf3dbdecabe59ac92f4e46b0577e
Author: Freeman Fang <[email protected]>
AuthorDate: Fri Mar 15 10:05:13 2019 +0800

    [CXF-7953]add those tests can't pass with jacorb in notWorkingJDK11 list
---
 systests/uncategorized/pom.xml                     | 35 ----------------------
 .../type_test/corba/CORBADocLitClientTypeTest.java | 12 ++++++++
 2 files changed, 12 insertions(+), 35 deletions(-)

diff --git a/systests/uncategorized/pom.xml b/systests/uncategorized/pom.xml
index ccc3de0..9e83cd6 100644
--- a/systests/uncategorized/pom.xml
+++ b/systests/uncategorized/pom.xml
@@ -96,8 +96,6 @@
                         <id>generate-test-sources</id>
                         <phase>generate-test-sources</phase>
                         <configuration>
-                            <fork>${cxf.codegen.forkmode}</fork>
-                            
<additionalJvmArgs>${cxf.codegen.jvmArgs}</additionalJvmArgs>                   
      
                             
<outputDir>${basedir}/target/generated/src/test/resources/wsdl_systest/type_test_corba/</outputDir>
                             <wsdltoidlOptions>
                                 <wsdltoidlOption>
@@ -138,13 +136,11 @@
                 <groupId>org.jacorb</groupId>
                 <artifactId>jacorb</artifactId>
                 <version>3.7</version>
-                <scope>test</scope>
             </dependency>
             <dependency>
                 <groupId>org.jacorb</groupId>
                 <artifactId>jacorb-omgapi</artifactId>
                 <version>3.7</version>
-                <scope>test</scope>
             </dependency>
         </dependencies>
     </dependencyManagement>
@@ -423,36 +419,5 @@
                 </dependency>
             </dependencies>
         </profile>
-        <profile>
-            <id>java9plus</id>
-            <activation>
-                <jdk>[9,)</jdk>
-            </activation>
-            <build>
-                <plugins>
-                    <plugin>
-                        <groupId>org.apache.maven.plugins</groupId>
-                        <artifactId>maven-surefire-plugin</artifactId>
-                        <configuration>
-                            <systemPropertyVariables>
-                                <!-- Test with the Jacorb implementation as 
the Sun orb has been removed since jdk 11 -->
-                                
<org.omg.CORBA.ORBClass>org.jacorb.orb.ORB</org.omg.CORBA.ORBClass>
-                            </systemPropertyVariables>
-                            <argLine>
-                                ${cxf.surefire.fork.vmargs}
-                            </argLine>
-                            <includes>
-                                <include>**/*Test.java</include>
-                                <include>**/*TestCase.java</include>
-                                <include>**/*TestCases.java</include>
-                            </includes>
-                            <excludes>
-                                
<exclude>**/*CORBADocLitClientTypeTest.java</exclude>
-                            </excludes>
-                        </configuration>
-                    </plugin>
-                </plugins>
-            </build>
-        </profile>
     </profiles>
 </project>
diff --git 
a/systests/uncategorized/src/test/java/org/apache/cxf/systest/type_test/corba/CORBADocLitClientTypeTest.java
 
b/systests/uncategorized/src/test/java/org/apache/cxf/systest/type_test/corba/CORBADocLitClientTypeTest.java
index 15d8764..eb1a166 100644
--- 
a/systests/uncategorized/src/test/java/org/apache/cxf/systest/type_test/corba/CORBADocLitClientTypeTest.java
+++ 
b/systests/uncategorized/src/test/java/org/apache/cxf/systest/type_test/corba/CORBADocLitClientTypeTest.java
@@ -26,6 +26,7 @@ import java.util.Set;
 
 import javax.xml.namespace.QName;
 
+import org.apache.cxf.helpers.JavaUtils;
 import org.apache.cxf.systest.type_test.AbstractTypeTestClient5;
 
 import org.junit.AfterClass;
@@ -202,9 +203,20 @@ public class CORBADocLitClientTypeTest extends 
AbstractTypeTestClient5 {
             "MultipleOccursSequenceInSequence",
             "DerivedEmptyBaseEmptyChoice"
         };
+        String[] notWorkingJDK11 = new String[] {
+            "SimpleRestriction",
+            "SimpleRestriction4",
+            "AnyURIEnum",
+            "DecimalEnum",
+            "NumberEnum",
+            "StringEnum"
+        };
         if (System.getProperty("java.vendor").contains("IBM")) {
             NOT_WORKING_TESTS.addAll(Arrays.asList(notWorkingIBM));
         }
+        if (JavaUtils.isJava11Compatible()) {
+            NOT_WORKING_TESTS.addAll(Arrays.asList(notWorkingJDK11));
+        }
     }
 
 

Reply via email to