From 447d7840aa9f8fe81eec36e88cd1360b5b573401 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ville=20Skytt=C3=A4?= Date: Tue, 27 Sep 2016 14:36:54 +0300 Subject: [PATCH] Add missing @Overrides --- .../apache/activemq/artemis/junit/ActiveMQConsumerResource.java | 2 ++ .../activemq/transport/amqp/client/util/UnmodifiableLink.java | 1 + .../artemis/tests/integration/amqp/AmqpClientTestSupport.java | 2 ++ .../artemis/tests/integration/cli/DestinationCommandTest.java | 1 + .../cluster/distribution/ExpireWhileLoadBalanceTest.java | 1 + .../artemis/tests/integration/paging/GlobalPagingTest.java | 1 + .../tests/integration/proton/ProtonMaxFrameSizeTest.java | 1 + .../artemis/tests/integration/proton/ProtonPubSubTest.java | 1 + .../artemis/tests/integration/rest/RestDeserializationTest.java | 2 ++ .../activemq/artemis/tests/integration/rest/RestTestBase.java | 2 ++ 10 files changed, 14 insertions(+) diff --git a/artemis-junit/src/main/java/org/apache/activemq/artemis/junit/ActiveMQConsumerResource.java b/artemis-junit/src/main/java/org/apache/activemq/artemis/junit/ActiveMQConsumerResource.java index 200ce92db2..175b771d10 100644 --- a/artemis-junit/src/main/java/org/apache/activemq/artemis/junit/ActiveMQConsumerResource.java +++ b/artemis-junit/src/main/java/org/apache/activemq/artemis/junit/ActiveMQConsumerResource.java @@ -109,6 +109,7 @@ public class ActiveMQConsumerResource extends AbstractActiveMQClientResource { } } + @Override public boolean isAutoCreateQueue() { return autoCreateQueue; } @@ -118,6 +119,7 @@ public class ActiveMQConsumerResource extends AbstractActiveMQClientResource { * * @param autoCreateQueue */ + @Override public void setAutoCreateQueue(boolean autoCreateQueue) { this.autoCreateQueue = autoCreateQueue; } diff --git a/tests/artemis-test-support/src/main/java/org/apache/activemq/transport/amqp/client/util/UnmodifiableLink.java b/tests/artemis-test-support/src/main/java/org/apache/activemq/transport/amqp/client/util/UnmodifiableLink.java index a58bfe76d3..18f091d8a5 100644 --- a/tests/artemis-test-support/src/main/java/org/apache/activemq/transport/amqp/client/util/UnmodifiableLink.java +++ b/tests/artemis-test-support/src/main/java/org/apache/activemq/transport/amqp/client/util/UnmodifiableLink.java @@ -255,6 +255,7 @@ public class UnmodifiableLink implements Link { return link.detached(); } + @Override public Record attachments() { return link.attachments(); } diff --git a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/amqp/AmqpClientTestSupport.java b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/amqp/AmqpClientTestSupport.java index 8fa140a13d..d4281b5dc9 100644 --- a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/amqp/AmqpClientTestSupport.java +++ b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/amqp/AmqpClientTestSupport.java @@ -48,6 +48,7 @@ public class AmqpClientTestSupport extends ActiveMQTestBase { @Before + @Override public void setUp() throws Exception { super.setUp(); server = createServer(true, true); @@ -55,6 +56,7 @@ public class AmqpClientTestSupport extends ActiveMQTestBase { } @After + @Override public void tearDown() throws Exception { super.tearDown(); diff --git a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/cli/DestinationCommandTest.java b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/cli/DestinationCommandTest.java index e499f38d54..4109db95b7 100644 --- a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/cli/DestinationCommandTest.java +++ b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/cli/DestinationCommandTest.java @@ -38,6 +38,7 @@ public class DestinationCommandTest extends JMSTestBase { private ByteArrayOutputStream error; @Before + @Override public void setUp() throws Exception { super.setUp(); this.output = new ByteArrayOutputStream(1024); diff --git a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/cluster/distribution/ExpireWhileLoadBalanceTest.java b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/cluster/distribution/ExpireWhileLoadBalanceTest.java index 3ce31d473d..2205091b32 100644 --- a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/cluster/distribution/ExpireWhileLoadBalanceTest.java +++ b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/cluster/distribution/ExpireWhileLoadBalanceTest.java @@ -35,6 +35,7 @@ import org.junit.Test; public class ExpireWhileLoadBalanceTest extends ClusterTestBase { @Before + @Override public void setUp() throws Exception { super.setUp(); diff --git a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/paging/GlobalPagingTest.java b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/paging/GlobalPagingTest.java index ee975ca6c7..d734a1e7d9 100644 --- a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/paging/GlobalPagingTest.java +++ b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/paging/GlobalPagingTest.java @@ -117,6 +117,7 @@ public class GlobalPagingTest extends PagingTest { serverImpl.getMonitor().tick(); Thread t = new Thread() { + @Override public void run() { try { sendFewMessages(numberOfMessages, session, producer, body); diff --git a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/proton/ProtonMaxFrameSizeTest.java b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/proton/ProtonMaxFrameSizeTest.java index 658ea8102a..908285eefe 100644 --- a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/proton/ProtonMaxFrameSizeTest.java +++ b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/proton/ProtonMaxFrameSizeTest.java @@ -34,6 +34,7 @@ public class ProtonMaxFrameSizeTest extends ProtonTestBase { private static final int FRAME_SIZE = 512; + @Override protected void configureAmqp(Map params) { params.put("maxFrameSize", FRAME_SIZE); } diff --git a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/proton/ProtonPubSubTest.java b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/proton/ProtonPubSubTest.java index a0fe626b5d..35700acc5f 100644 --- a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/proton/ProtonPubSubTest.java +++ b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/proton/ProtonPubSubTest.java @@ -54,6 +54,7 @@ public class ProtonPubSubTest extends ProtonTestBase { private Connection connection; private JmsConnectionFactory factory; + @Override protected void configureAmqp(Map params) { params.put("pubSubPrefix", prefix); } diff --git a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/rest/RestDeserializationTest.java b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/rest/RestDeserializationTest.java index 1f7f8f533d..814fe6b636 100644 --- a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/rest/RestDeserializationTest.java +++ b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/rest/RestDeserializationTest.java @@ -44,12 +44,14 @@ public class RestDeserializationTest extends RestTestBase { private RestAMQConnection restConnection; @Before + @Override public void setUp() throws Exception { super.setUp(); createJettyServer("localhost", 12345); } @After + @Override public void tearDown() throws Exception { if (restConnection != null) { restConnection.close(); diff --git a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/rest/RestTestBase.java b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/rest/RestTestBase.java index 177dfe9d53..f57f0adec4 100644 --- a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/rest/RestTestBase.java +++ b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/rest/RestTestBase.java @@ -42,12 +42,14 @@ public class RestTestBase extends JMSTestBase { protected HandlerList handlers; @Before + @Override public void setUp() throws Exception { super.setUp(); webAppDir = testFolder.newFolder("test-apps"); } @After + @Override public void tearDown() throws Exception { if (server != null) { try {