From 1bef4de4dc6744c23c22d2dac0faf0c9a6ab68d9 Mon Sep 17 00:00:00 2001 From: gtully Date: Mon, 30 Nov 2015 12:47:13 +0000 Subject: [PATCH] Revert "https://issues.apache.org/jira/browse/AMQ-6065" CPL dependency is not fully compatable with ASF and is not really necessary This reverts commit 39a20bd788c664105c18886abf77c372cf9229aa. --- activemq-broker/pom.xml | 5 ---- .../util/DefaultIOExceptionHandlerTest.java | 26 ++++--------------- pom.xml | 7 ----- 3 files changed, 5 insertions(+), 33 deletions(-) diff --git a/activemq-broker/pom.xml b/activemq-broker/pom.xml index b905db3dc5..5f8545bcdf 100755 --- a/activemq-broker/pom.xml +++ b/activemq-broker/pom.xml @@ -78,11 +78,6 @@ junit test - - com.github.stefanbirkner - system-rules - test - org.slf4j slf4j-log4j12 diff --git a/activemq-broker/src/test/java/org/apache/activemq/util/DefaultIOExceptionHandlerTest.java b/activemq-broker/src/test/java/org/apache/activemq/util/DefaultIOExceptionHandlerTest.java index 0d63e1e4f5..a9e207032d 100644 --- a/activemq-broker/src/test/java/org/apache/activemq/util/DefaultIOExceptionHandlerTest.java +++ b/activemq-broker/src/test/java/org/apache/activemq/util/DefaultIOExceptionHandlerTest.java @@ -17,43 +17,27 @@ package org.apache.activemq.util; -import static org.junit.Assert.assertEquals; -import static org.junit.Assert.assertTrue; -import static org.junit.Assert.fail; - import java.io.IOException; import java.util.concurrent.CountDownLatch; import java.util.concurrent.TimeUnit; import java.util.concurrent.atomic.AtomicBoolean; - import org.apache.activemq.broker.BrokerService; import org.apache.activemq.broker.SuppressReplyException; -import org.junit.Rule; import org.junit.Test; -import org.junit.contrib.java.lang.system.ExpectedSystemExit; -import org.junit.contrib.java.lang.system.internal.NoExitSecurityManager; + + +import static org.junit.Assert.*; public class DefaultIOExceptionHandlerTest { - @Rule - public final ExpectedSystemExit exit = ExpectedSystemExit.none(); - DefaultIOExceptionHandler underTest = new DefaultIOExceptionHandler(); - @Test(timeout=20000) + @Test public void testHandleWithShutdownOnExit() throws Exception { - exit.expectSystemExit(); doTest(true); - assertTrue(Wait.waitFor(new Wait.Condition() { - @Override - public boolean isSatisified() throws Exception { - return ((NoExitSecurityManager)System.getSecurityManager()).isCheckExitCalled(); - } - }, 10000)); - } - @Test(timeout=20000) + @Test public void testHandleWithOutShutdownOnExit() throws Exception { doTest(false); } diff --git a/pom.xml b/pom.xml index d26d3329ab..f988a3fb61 100755 --- a/pom.xml +++ b/pom.xml @@ -117,7 +117,6 @@ 4.1.8.RELEASE 1.2.1 3.0.2 - 1.13.0 1.7 4.2.0 2.7.2 @@ -996,12 +995,6 @@ ${junit-version} test - - com.github.stefanbirkner - system-rules - ${system-rules-version} - test - org.mockito mockito-core