Details
-
Test
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
3.4.2
-
None
-
None
-
Moderate
Description
When you run the unit test class SSLUtilsTest from eclipse this method testExclusionFilterII() is green
while if you are om the command line from cxf/core and you type
mvn clean package
you will get a method failure as below
[INFO] Running org.apache.cxf.configuration.jsse.SSLUtilsTest
[ERROR] Tests run: 3, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.111 s <<< FAILURE! - in org.apache.cxf.configuration.jsse.SSLUtilsTest
[ERROR] testExclusionFilter(org.apache.cxf.configuration.jsse.SSLUtilsTest) Time elapsed: 0.092 s <<< FAILURE!
java.lang.AssertionError
at org.apache.cxf.configuration.jsse.SSLUtilsTest.testExclusionFilter(SSLUtilsTest.java:66)
mvn --version gives
Apache Maven 3.6.3 (cecedd343002696d0abb50b32b541b8a6ba2883f)
Maven home: ...\apache-maven-3.6.3
Java version: 1.8.0_41, vendor: Oracle Corporation, runtime: ...\openJDK\java-se-8u41-ri\jre
Default locale: en_US, platform encoding: Cp1252
OS name: "windows 8.1", version: "6.3", arch: "x86", family: "windows"
Now the method which makes returns false from the command line is 397
(matchesOneOf(supportedCipherSuite, includes)
the above returns true from eclipse runs while it returns false from maven run
also I have recorded the class loader for both eclipse and maven
maven command line has sun.misc.Launcher$AppClassLoader
while eclipse has jdk.internal.loader.ClassLoaders$AppClassLoader
This issue may seems very picky; however, I have noticed the jenkins build from
I have seen the places which I have checked the maven build has always skip test flag
-Dmaven.test.skip.exec=true
see https://ci-builds.apache.org/job/CXF/job/CXF-JDK8-on-JDK15
https://ci-builds.apache.org/job/CXF/job/CXF-3.2.x-JDK8
https://ci-builds.apache.org/job/CXF/job/CXF-3.4.x-JDK8
The above selected randomly but seems there is a pattern to ignore the test lifecycle during the maven build.