You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Colm O hEigeartaigh (Jira)" <ji...@apache.org> on 2019/08/22 12:18:00 UTC
[jira] [Resolved] (CXF-8087) unstable test environment caused by
accessing system property without cleanup
[ https://issues.apache.org/jira/browse/CXF-8087?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Colm O hEigeartaigh resolved CXF-8087.
--------------------------------------
Resolution: Fixed
> unstable test environment caused by accessing system property without cleanup
> -----------------------------------------------------------------------------
>
> Key: CXF-8087
> URL: https://issues.apache.org/jira/browse/CXF-8087
> Project: CXF
> Issue Type: Test
> Components: JAX-RS
> Affects Versions: 3.3.2
> Reporter: zi peng
> Assignee: Colm O hEigeartaigh
> Priority: Minor
> Labels: test
> Fix For: 3.3.4
>
>
> _JAXRSclientServerWebSocketTest_ is inherited by several tests. In one of its child tests( i.e. _JAXRSClientServerWebSocketNoAtmosphereTest_), system property is set to true in the test fixture. However, none test cases or fixture reset the modified system property after the completion of a test run.
> Result: test results may become flaky and unstable in multiple test runs
>
> {code:java}
> public class JAXRSClientServerWebSocketNoAtmosphereTest extends JAXRSClientServerWebSocketTest {
> @BeforeClass
> public static void startServers() throws Exception {
> System.setProperty("org.apache.cxf.transport.websocket.atmosphere.disabled", "true");
> AbstractResourceInfo.clearAllMaps();
> assertTrue("server did not launch correctly", launchServer(new BookServerWebSocket(PORT)));
> createStaticBus();
> }
>
> @AfterClass
> public static void cleanup() {
> //System.clearProperty("org.apache.cxf.transport.websocket.atmosphere.disabled");
> }
> {code}
--
This message was sent by Atlassian Jira
(v8.3.2#803003)