You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Alan Mehio (Jira)" <ji...@apache.org> on 2021/02/24 18:54:00 UTC
[jira] [Updated] (CXF-8430) Unit test class method behave
differently maven and from eclipse
[ https://issues.apache.org/jira/browse/CXF-8430?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Alan Mehio updated CXF-8430:
----------------------------
Summary: Unit test class method behave differently maven and from eclipse (was: Unit test )
> Unit test class method behave differently maven and from eclipse
> -------------------------------------------------------------------
>
> Key: CXF-8430
> URL: https://issues.apache.org/jira/browse/CXF-8430
> Project: CXF
> Issue Type: Test
> Components: Core
> Affects Versions: 3.4.2
> Reporter: Alan Mehio
> Priority: Minor
>
> When you run the unit test class SSLUtilsTest this method testExclusionFilterII() passes 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.2.x-JDK8/50/consoleFull]
> [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.
>
>
>
>
--
This message was sent by Atlassian Jira
(v8.3.4#803005)