diff --git a/activemq-unit-tests/pom.xml b/activemq-unit-tests/pom.xml index df8c143c30e..7e8cdadc00d 100644 --- a/activemq-unit-tests/pom.xml +++ b/activemq-unit-tests/pom.xml @@ -29,6 +29,10 @@ ActiveMQ :: Unit Tests The ActiveMQ Message Broker and Client Unit Tests + + 3.5.3 + + @@ -391,12 +395,38 @@ + org.apache.maven.plugins maven-surefire-plugin + ${surefire.version} 1 false 3600 alphabetical + plain + false + org.apache.activemq.test.annotations.ParallelTest + + ${project.build.directory}/ + true + true + false + + + true + + + true + true + true + true + true + true + + + **/*Test.* + **/AMQ4092Test.java @@ -422,14 +452,45 @@ **/StartAndConcurrentStopBrokerTest.java **/BlobTransferPolicyUriTest.java - - true - target/ - true - false - + + + parallel + test + + test + + + + + org.apache.activemq.test.annotations.ParallelTest + 2C + false + 600 + false + + ${project.build.directory}/parallel-tests-${surefire.forkNumber}/ + + 30000 + + + + + + + + org.apache.maven.surefire + surefire-junit47 + ${surefire.version} + + + me.fabriciorby + maven-surefire-junit5-tree-reporter + 1.5.1 + + + org.apache.maven.plugins maven-clean-plugin diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/ActiveMQMessageAuditTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/ActiveMQMessageAuditTest.java index af18084683a..7527a685652 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/ActiveMQMessageAuditTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/ActiveMQMessageAuditTest.java @@ -30,12 +30,15 @@ import org.apache.activemq.util.IdGenerator; import org.slf4j.Logger; import org.slf4j.LoggerFactory; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * ActiveMQMessageAuditTest * * */ +@Category(ParallelTest.class) public class ActiveMQMessageAuditTest extends TestCase { static final Logger LOG = LoggerFactory.getLogger(ActiveMQMessageAuditTest.class); diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/ActiveMQXAConnectionTxInterruptTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/ActiveMQXAConnectionTxInterruptTest.java index bc858169080..f06fe1de65f 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/ActiveMQXAConnectionTxInterruptTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/ActiveMQXAConnectionTxInterruptTest.java @@ -50,7 +50,10 @@ import static org.junit.Assert.*; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; +@Category(ParallelTest.class) public class ActiveMQXAConnectionTxInterruptTest { private static final Logger LOG = LoggerFactory.getLogger(ActiveMQXAConnectionTxInterruptTest.class); long txGenerator = System.currentTimeMillis(); diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/ActiveMQXASslConnectionFactoryTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/ActiveMQXASslConnectionFactoryTest.java index 4a7af896d09..06df4b1e287 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/ActiveMQXASslConnectionFactoryTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/ActiveMQXASslConnectionFactoryTest.java @@ -16,6 +16,10 @@ */ package org.apache.activemq; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; + +@Category(ParallelTest.class) public class ActiveMQXASslConnectionFactoryTest extends ActiveMQSslConnectionFactoryTest { @Override diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/ActiveMQXASslConnectionFactoryVmTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/ActiveMQXASslConnectionFactoryVmTest.java index b6746bc8f32..bad20c93f97 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/ActiveMQXASslConnectionFactoryVmTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/ActiveMQXASslConnectionFactoryVmTest.java @@ -17,10 +17,13 @@ package org.apache.activemq; import java.net.URI; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * Test the against the VM transport */ +@Category(ParallelTest.class) public class ActiveMQXASslConnectionFactoryVmTest extends ActiveMQXAConnectionFactoryTest { @Override diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/BrokerDurableRejectedTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/BrokerDurableRejectedTest.java index 1befc945c4f..6f33f6ee427 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/BrokerDurableRejectedTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/BrokerDurableRejectedTest.java @@ -24,7 +24,10 @@ import org.apache.activemq.broker.BrokerRegistry; import org.apache.activemq.transport.stomp.Stomp; import org.apache.activemq.transport.stomp.StompConnection; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; +@Category(ParallelTest.class) public class BrokerDurableRejectedTest extends TestSupport { protected Connection connection; diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/ClientTestSupport.java b/activemq-unit-tests/src/test/java/org/apache/activemq/ClientTestSupport.java index b2aab4fa720..3c691c503c6 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/ClientTestSupport.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/ClientTestSupport.java @@ -42,7 +42,10 @@ import org.apache.activemq.command.RemoveInfo; import org.apache.activemq.command.SessionInfo; import org.apache.activemq.transport.TransportFactory; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; +@Category(ParallelTest.class) public class ClientTestSupport extends TestCase { protected BrokerService broker; diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/ConnectionCleanupTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/ConnectionCleanupTest.java index 94ca659debc..c13f42a0c21 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/ConnectionCleanupTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/ConnectionCleanupTest.java @@ -20,10 +20,13 @@ import jakarta.jms.Session; import junit.framework.TestCase; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * */ +@Category(ParallelTest.class) public class ConnectionCleanupTest extends TestCase { private ActiveMQConnection connection; diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/ConnectionCloseMultipleTimesConcurrentTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/ConnectionCloseMultipleTimesConcurrentTest.java index 5315ea588e2..5a9e19e06e5 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/ConnectionCloseMultipleTimesConcurrentTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/ConnectionCloseMultipleTimesConcurrentTest.java @@ -24,10 +24,13 @@ import jakarta.jms.Session; import junit.framework.TestCase; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * */ +@Category(ParallelTest.class) public class ConnectionCloseMultipleTimesConcurrentTest extends TestCase { private ActiveMQConnection connection; diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/ConnectionCloseMultipleTimesTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/ConnectionCloseMultipleTimesTest.java index b12c5fa7a22..ff2f1cec84b 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/ConnectionCloseMultipleTimesTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/ConnectionCloseMultipleTimesTest.java @@ -20,10 +20,13 @@ import jakarta.jms.Session; import junit.framework.TestCase; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * */ +@Category(ParallelTest.class) public class ConnectionCloseMultipleTimesTest extends TestCase { private ActiveMQConnection connection; diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/ConsumerReceiveWithTimeoutTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/ConsumerReceiveWithTimeoutTest.java index c6211007e80..e77167d3e7b 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/ConsumerReceiveWithTimeoutTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/ConsumerReceiveWithTimeoutTest.java @@ -31,7 +31,10 @@ import org.junit.After; import org.junit.Before; import org.junit.Test; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; +@Category(ParallelTest.class) public class ConsumerReceiveWithTimeoutTest { private ActiveMQConnection connection; diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/CreateConsumerButDontStartConnectionWarningTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/CreateConsumerButDontStartConnectionWarningTest.java index 0bfa7785a60..593e4fcde13 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/CreateConsumerButDontStartConnectionWarningTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/CreateConsumerButDontStartConnectionWarningTest.java @@ -20,10 +20,13 @@ import org.slf4j.Logger; import org.slf4j.LoggerFactory; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * */ +@Category(ParallelTest.class) public class CreateConsumerButDontStartConnectionWarningTest extends JmsQueueSendReceiveTest { private static final transient Logger LOG = LoggerFactory.getLogger(CreateConsumerButDontStartConnectionWarningTest.class); diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/EmbeddedBrokerAndConnectionTestSupport.java b/activemq-unit-tests/src/test/java/org/apache/activemq/EmbeddedBrokerAndConnectionTestSupport.java index bb4afd65384..12d04877289 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/EmbeddedBrokerAndConnectionTestSupport.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/EmbeddedBrokerAndConnectionTestSupport.java @@ -17,12 +17,15 @@ package org.apache.activemq; import jakarta.jms.Connection; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * A base class for a test case which creates an embedded broker and uses a connection and session * * */ +@Category(ParallelTest.class) public abstract class EmbeddedBrokerAndConnectionTestSupport extends EmbeddedBrokerTestSupport { protected Connection connection; diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/ExclusiveConsumerStartupDestinationTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/ExclusiveConsumerStartupDestinationTest.java index 2652535a1b6..f591e0e5400 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/ExclusiveConsumerStartupDestinationTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/ExclusiveConsumerStartupDestinationTest.java @@ -28,7 +28,10 @@ import org.apache.activemq.broker.region.policy.PolicyEntry; import org.apache.activemq.broker.region.policy.PolicyMap; import org.apache.activemq.command.ActiveMQQueue; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; +@Category(ParallelTest.class) public class ExclusiveConsumerStartupDestinationTest extends EmbeddedBrokerTestSupport{ private static final String VM_BROKER_URL = "vm://localhost"; diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/ExclusiveConsumerTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/ExclusiveConsumerTest.java index 5fcf856f6da..1fd9c462b09 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/ExclusiveConsumerTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/ExclusiveConsumerTest.java @@ -32,7 +32,10 @@ import org.junit.After; import org.junit.Before; import org.junit.Test; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; +@Category(ParallelTest.class) public class ExclusiveConsumerTest { private static final String VM_BROKER_URL = "vm://localhost"; diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/ExpiredAckAsyncConsumerTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/ExpiredAckAsyncConsumerTest.java index 2830a830b04..aabb8046f47 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/ExpiredAckAsyncConsumerTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/ExpiredAckAsyncConsumerTest.java @@ -47,6 +47,8 @@ import org.junit.Test; import org.slf4j.Logger; import org.slf4j.LoggerFactory; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** @@ -60,6 +62,7 @@ * Now only messages tied to the MessageAck are expired which fixes this problem. * */ +@Category(ParallelTest.class) public class ExpiredAckAsyncConsumerTest { private static final Logger LOG = LoggerFactory.getLogger(ExpiredAckAsyncConsumerTest.class); diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/ExpiryHogTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/ExpiryHogTest.java index 383a8a259d3..21b38e9754b 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/ExpiryHogTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/ExpiryHogTest.java @@ -28,11 +28,14 @@ import org.junit.Test; import org.junit.runner.RunWith; import org.junit.runners.BlockJUnit4ClassRunner; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * User: gtully */ @RunWith(BlockJUnit4ClassRunner.class) +@Category(ParallelTest.class) public class ExpiryHogTest extends JmsMultipleClientsTestSupport { boolean sleep = false; diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/JMSConsumerTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/JMSConsumerTest.java index 3f76f6b3315..605fb9f6933 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/JMSConsumerTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/JMSConsumerTest.java @@ -53,10 +53,13 @@ import org.slf4j.LoggerFactory; import static org.apache.activemq.TestSupport.getDestinationConsumers; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * Test cases used to test the JMS message consumer. */ +@Category(ParallelTest.class) public class JMSConsumerTest extends JmsTestSupport { private static final Logger LOG = LoggerFactory.getLogger(JMSConsumerTest.class); diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/JMSDurableTopicRedeliverTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/JMSDurableTopicRedeliverTest.java index 15218bd0066..857674fedea 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/JMSDurableTopicRedeliverTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/JMSDurableTopicRedeliverTest.java @@ -22,10 +22,13 @@ import org.slf4j.Logger; import org.slf4j.LoggerFactory; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * */ +@Category(ParallelTest.class) public class JMSDurableTopicRedeliverTest extends JmsTopicRedeliverTest { private static final Logger LOG = LoggerFactory.getLogger(JMSDurableTopicRedeliverTest.class); diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/JMSExclusiveConsumerTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/JMSExclusiveConsumerTest.java index 5e2aabcf810..b170c45b3f1 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/JMSExclusiveConsumerTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/JMSExclusiveConsumerTest.java @@ -24,12 +24,15 @@ import junit.framework.Test; import org.apache.activemq.command.ActiveMQQueue; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * Test cases used to test the JMS message exclusive consumers. * * */ +@Category(ParallelTest.class) public class JMSExclusiveConsumerTest extends JmsTestSupport { public int deliveryMode; diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/JMSIndividualAckTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/JMSIndividualAckTest.java index d02fcc020ab..50e318136e7 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/JMSIndividualAckTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/JMSIndividualAckTest.java @@ -24,10 +24,13 @@ import jakarta.jms.Queue; import jakarta.jms.Session; import jakarta.jms.TextMessage; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * */ +@Category(ParallelTest.class) public class JMSIndividualAckTest extends TestSupport { private Connection connection; diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/JMSMessageTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/JMSMessageTest.java index 9431f41dba9..e0f07e0bfab 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/JMSMessageTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/JMSMessageTest.java @@ -38,12 +38,15 @@ import junit.framework.Test; import org.apache.activemq.command.ActiveMQDestination; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * Test cases used to test the JMS message consumer. * * */ +@Category(ParallelTest.class) public class JMSMessageTest extends JmsTestSupport { public ActiveMQDestination destination; diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/JMSQueueRedeliverTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/JMSQueueRedeliverTest.java index be8a6f26df5..385915d3eb7 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/JMSQueueRedeliverTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/JMSQueueRedeliverTest.java @@ -16,9 +16,13 @@ */ package org.apache.activemq; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; + /** * */ +@Category(ParallelTest.class) public class JMSQueueRedeliverTest extends JmsTopicRedeliverTest { protected void setUp() throws Exception { topic = false; diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/JMSUsecaseTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/JMSUsecaseTest.java index 5767aa5f568..7f78a0e67c7 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/JMSUsecaseTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/JMSUsecaseTest.java @@ -31,7 +31,10 @@ import org.apache.activemq.command.ActiveMQDestination; import org.apache.activemq.command.ActiveMQMessage; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; +@Category(ParallelTest.class) public class JMSUsecaseTest extends JmsTestSupport { public ActiveMQDestination destination; diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/JMSXAConsumerTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/JMSXAConsumerTest.java index 59593f0b141..9d66d936ac7 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/JMSXAConsumerTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/JMSXAConsumerTest.java @@ -20,11 +20,14 @@ import jakarta.jms.Session; import junit.framework.Test; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /* * allow an XA session to be used as an auto ack session when no XA transaction * https://issues.apache.org/activemq/browse/AMQ-2659 */ +@Category(ParallelTest.class) public class JMSXAConsumerTest extends JMSConsumerTest { public static Test suite() { diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/JmsAutoAckListenerTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/JmsAutoAckListenerTest.java index 3088710bec5..ef5f0867a04 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/JmsAutoAckListenerTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/JmsAutoAckListenerTest.java @@ -23,10 +23,13 @@ import jakarta.jms.MessageProducer; import jakarta.jms.Queue; import jakarta.jms.Session; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * */ +@Category(ParallelTest.class) public class JmsAutoAckListenerTest extends TestSupport implements MessageListener { private Connection connection; diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/JmsAutoAckTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/JmsAutoAckTest.java index af2425c589e..5dc5e66c3ce 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/JmsAutoAckTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/JmsAutoAckTest.java @@ -23,10 +23,13 @@ import jakarta.jms.MessageProducer; import jakarta.jms.Queue; import jakarta.jms.Session; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * */ +@Category(ParallelTest.class) public class JmsAutoAckTest extends TestSupport { private Connection connection; diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/JmsClientAckListenerTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/JmsClientAckListenerTest.java index 751b9aa8c1b..219b4f14d71 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/JmsClientAckListenerTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/JmsClientAckListenerTest.java @@ -23,10 +23,13 @@ import jakarta.jms.MessageProducer; import jakarta.jms.Queue; import jakarta.jms.Session; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * */ +@Category(ParallelTest.class) public class JmsClientAckListenerTest extends TestSupport implements MessageListener { private Connection connection; diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/JmsClientAckTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/JmsClientAckTest.java index e4a764f12b5..405c4abcaaa 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/JmsClientAckTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/JmsClientAckTest.java @@ -32,10 +32,13 @@ import org.junit.Rule; import org.junit.Test; import org.junit.rules.TestName; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * Test for client ACK support */ +@Category(ParallelTest.class) public class JmsClientAckTest { @Rule diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/JmsConnectionStartStopTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/JmsConnectionStartStopTest.java index cc0f862921c..a598773ee38 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/JmsConnectionStartStopTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/JmsConnectionStartStopTest.java @@ -30,10 +30,13 @@ import jakarta.jms.Session; import jakarta.jms.TextMessage; import jakarta.jms.Topic; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * */ +@Category(ParallelTest.class) public class JmsConnectionStartStopTest extends TestSupport { private static final org.apache.commons.logging.Log LOG = org.apache.commons.logging.LogFactory diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/JmsConsumerResetActiveListenerTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/JmsConsumerResetActiveListenerTest.java index acf38676a70..d7e4109209b 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/JmsConsumerResetActiveListenerTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/JmsConsumerResetActiveListenerTest.java @@ -40,7 +40,10 @@ import org.junit.Rule; import org.junit.Test; import org.junit.rules.TestName; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; +@Category(ParallelTest.class) public class JmsConsumerResetActiveListenerTest { private Connection connection; diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/JmsCreateConsumerInOnMessageTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/JmsCreateConsumerInOnMessageTest.java index 46874d92071..724a921edcc 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/JmsCreateConsumerInOnMessageTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/JmsCreateConsumerInOnMessageTest.java @@ -34,7 +34,10 @@ import org.junit.Rule; import org.junit.Test; import org.junit.rules.TestName; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; +@Category(ParallelTest.class) public class JmsCreateConsumerInOnMessageTest { private Connection connection; diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/JmsDurableQueueWildcardSendReceiveTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/JmsDurableQueueWildcardSendReceiveTest.java index af0f8eac008..18889498052 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/JmsDurableQueueWildcardSendReceiveTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/JmsDurableQueueWildcardSendReceiveTest.java @@ -19,10 +19,13 @@ import jakarta.jms.DeliveryMode; import org.apache.activemq.test.JmsTopicSendReceiveTest; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * */ +@Category(ParallelTest.class) public class JmsDurableQueueWildcardSendReceiveTest extends JmsTopicSendReceiveTest { /** diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/JmsDurableTopicSelectorTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/JmsDurableTopicSelectorTest.java index cc212ab9037..dedb8dca351 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/JmsDurableTopicSelectorTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/JmsDurableTopicSelectorTest.java @@ -16,9 +16,13 @@ */ package org.apache.activemq; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; + /** * */ +@Category(ParallelTest.class) public class JmsDurableTopicSelectorTest extends JmsTopicSelectorTest { public void setUp() throws Exception { durable = true; diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/JmsDurableTopicTransactionTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/JmsDurableTopicTransactionTest.java index be56b5662db..976a6cb630a 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/JmsDurableTopicTransactionTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/JmsDurableTopicTransactionTest.java @@ -19,10 +19,13 @@ import jakarta.jms.DeliveryMode; import org.apache.activemq.test.JmsResourceProvider; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * */ +@Category(ParallelTest.class) public class JmsDurableTopicTransactionTest extends JmsTopicTransactionTest { /** diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/JmsDurableTopicWildcardSendReceiveTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/JmsDurableTopicWildcardSendReceiveTest.java index 30711ae997b..b1f86929493 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/JmsDurableTopicWildcardSendReceiveTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/JmsDurableTopicWildcardSendReceiveTest.java @@ -19,10 +19,13 @@ import jakarta.jms.DeliveryMode; import org.apache.activemq.test.JmsTopicSendReceiveTest; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * */ +@Category(ParallelTest.class) public class JmsDurableTopicWildcardSendReceiveTest extends JmsTopicSendReceiveTest { /** diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/JmsMessageConsumerClosedTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/JmsMessageConsumerClosedTest.java index f5dbe42d98e..450d361b36b 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/JmsMessageConsumerClosedTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/JmsMessageConsumerClosedTest.java @@ -30,10 +30,13 @@ import org.junit.After; import org.junit.Before; import org.junit.Test; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * Test behavior of JMS MessageConsumer API implementation when closed. */ +@Category(ParallelTest.class) public class JmsMessageConsumerClosedTest { private Connection connection; diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/JmsMessageConsumerTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/JmsMessageConsumerTest.java index 5f5ca47cb76..383e67e680f 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/JmsMessageConsumerTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/JmsMessageConsumerTest.java @@ -38,7 +38,10 @@ import org.junit.Rule; import org.junit.Test; import org.junit.rules.TestName; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; +@Category(ParallelTest.class) public class JmsMessageConsumerTest { private BrokerService brokerService; diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/JmsMessageProcuderClosedTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/JmsMessageProcuderClosedTest.java index 3353392c5de..1e59b2cdda1 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/JmsMessageProcuderClosedTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/JmsMessageProcuderClosedTest.java @@ -27,10 +27,13 @@ import org.junit.After; import org.junit.Before; import org.junit.Test; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * Test behavior of JMS MessageProducer API implementation when closed. */ +@Category(ParallelTest.class) public class JmsMessageProcuderClosedTest { private Connection connection; diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/JmsMultipleClientsTestSupport.java b/activemq-unit-tests/src/test/java/org/apache/activemq/JmsMultipleClientsTestSupport.java index 5dabf01ad60..94da5d1b0e4 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/JmsMultipleClientsTestSupport.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/JmsMultipleClientsTestSupport.java @@ -51,6 +51,8 @@ import org.slf4j.LoggerFactory; import static org.junit.Assert.*; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * Test case support used to test multiple message comsumers and message @@ -58,6 +60,7 @@ * * */ +@Category(ParallelTest.class) public class JmsMultipleClientsTestSupport { @Rule diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/JmsQueueBrowserExpirationTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/JmsQueueBrowserExpirationTest.java index 9573289ec41..901fbca7e64 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/JmsQueueBrowserExpirationTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/JmsQueueBrowserExpirationTest.java @@ -39,6 +39,8 @@ import org.junit.Test; import org.slf4j.Logger; import org.slf4j.LoggerFactory; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * This test shows that when all messages are expired the QueueBrowser will @@ -53,6 +55,7 @@ *

* This test is based on a test case submitted by Henno Vermeulen for AMQ-5340 */ +@Category(ParallelTest.class) public class JmsQueueBrowserExpirationTest { private static final int MESSAGES_TO_SEND = 50; diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/JmsQueueBrowserTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/JmsQueueBrowserTest.java index 7d3fbe57a00..48c0ba098c7 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/JmsQueueBrowserTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/JmsQueueBrowserTest.java @@ -40,7 +40,10 @@ import org.apache.activemq.command.ActiveMQQueue; import org.slf4j.Logger; import org.slf4j.LoggerFactory; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; +@Category(ParallelTest.class) public class JmsQueueBrowserTest extends JmsTestSupport { private static final Logger LOG = LoggerFactory.getLogger(ActiveMQXAConnectionFactoryTest.class); diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/JmsQueueCompositeSendReceiveTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/JmsQueueCompositeSendReceiveTest.java index b8d957143dd..916667c1046 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/JmsQueueCompositeSendReceiveTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/JmsQueueCompositeSendReceiveTest.java @@ -30,11 +30,14 @@ import org.apache.activemq.command.ActiveMQQueue; import org.apache.activemq.test.JmsTopicSendReceiveTest; import org.apache.activemq.util.Wait; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * */ +@Category(ParallelTest.class) public class JmsQueueCompositeSendReceiveTest extends JmsTopicSendReceiveTest { private static final org.apache.commons.logging.Log LOG = org.apache.commons.logging.LogFactory .getLog(JmsQueueCompositeSendReceiveTest.class); diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/JmsQueueRequestReplyTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/JmsQueueRequestReplyTest.java index 9282c0ce01c..555f033bd48 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/JmsQueueRequestReplyTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/JmsQueueRequestReplyTest.java @@ -16,9 +16,13 @@ */ package org.apache.activemq; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; + /** * */ +@Category(ParallelTest.class) public class JmsQueueRequestReplyTest extends JmsTopicRequestReplyTest { /** diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/JmsQueueSelectorTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/JmsQueueSelectorTest.java index 3c428763c7c..16a02381f14 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/JmsQueueSelectorTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/JmsQueueSelectorTest.java @@ -18,10 +18,13 @@ package org.apache.activemq; import jakarta.jms.*; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * */ +@Category(ParallelTest.class) public class JmsQueueSelectorTest extends JmsTopicSelectorTest { public void setUp() throws Exception { topic = false; diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/JmsQueueSendReceiveTwoConnectionsTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/JmsQueueSendReceiveTwoConnectionsTest.java index f29cc09e6c1..f40e11179c0 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/JmsQueueSendReceiveTwoConnectionsTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/JmsQueueSendReceiveTwoConnectionsTest.java @@ -17,10 +17,13 @@ package org.apache.activemq; import org.apache.activemq.test.JmsTopicSendReceiveWithTwoConnectionsTest; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * */ +@Category(ParallelTest.class) public class JmsQueueSendReceiveTwoConnectionsTest extends JmsTopicSendReceiveWithTwoConnectionsTest { /** diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/JmsQueueSendReceiveUsingTwoSessionsTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/JmsQueueSendReceiveUsingTwoSessionsTest.java index cb793d0c3aa..72fd692fc2d 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/JmsQueueSendReceiveUsingTwoSessionsTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/JmsQueueSendReceiveUsingTwoSessionsTest.java @@ -16,9 +16,13 @@ */ package org.apache.activemq; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; + /** * */ +@Category(ParallelTest.class) public class JmsQueueSendReceiveUsingTwoSessionsTest extends JmsQueueSendReceiveTest { /** diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/JmsQueueTopicCompositeSendReceiveTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/JmsQueueTopicCompositeSendReceiveTest.java index 33ec1840b8e..63eb3238389 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/JmsQueueTopicCompositeSendReceiveTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/JmsQueueTopicCompositeSendReceiveTest.java @@ -22,11 +22,14 @@ import jakarta.jms.Topic; import org.apache.activemq.test.JmsTopicSendReceiveTest; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * */ +@Category(ParallelTest.class) public class JmsQueueTopicCompositeSendReceiveTest extends JmsTopicSendReceiveTest { private static final org.apache.commons.logging.Log LOG = org.apache.commons.logging.LogFactory .getLog(JmsQueueTopicCompositeSendReceiveTest.class); diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/JmsQueueWildcardSendReceiveTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/JmsQueueWildcardSendReceiveTest.java index fd04f3b2215..c2eba642539 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/JmsQueueWildcardSendReceiveTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/JmsQueueWildcardSendReceiveTest.java @@ -27,10 +27,13 @@ import org.apache.activemq.command.ActiveMQDestination; import org.apache.activemq.test.JmsTopicSendReceiveTest; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * */ +@Category(ParallelTest.class) public class JmsQueueWildcardSendReceiveTest extends JmsTopicSendReceiveTest { private String destination1String = "TEST.ONE.ONE"; diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/JmsRedeliveredTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/JmsRedeliveredTest.java index f27dbed6e46..481a71c3242 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/JmsRedeliveredTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/JmsRedeliveredTest.java @@ -35,10 +35,13 @@ import org.apache.activemq.command.ConsumerControl; import org.apache.activemq.transport.vm.VMTransport; import org.apache.activemq.util.Wait; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * */ +@Category(ParallelTest.class) public class JmsRedeliveredTest extends TestCase { private Connection connection; diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/JmsRollbackRedeliveryTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/JmsRollbackRedeliveryTest.java index 64cdcf9ae4f..a47f4024543 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/JmsRollbackRedeliveryTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/JmsRollbackRedeliveryTest.java @@ -40,7 +40,10 @@ import org.slf4j.LoggerFactory; import static org.junit.Assert.*; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; +@Category(ParallelTest.class) public class JmsRollbackRedeliveryTest { @Rule public TestName testName = new TestName(); diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/JmsSendWithAsyncCallbackTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/JmsSendWithAsyncCallbackTest.java index bac1542cc55..5a56d8b2243 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/JmsSendWithAsyncCallbackTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/JmsSendWithAsyncCallbackTest.java @@ -29,10 +29,13 @@ import org.slf4j.Logger; import org.slf4j.LoggerFactory; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * */ +@Category(ParallelTest.class) public class JmsSendWithAsyncCallbackTest extends TestSupport { private static final Logger LOG = LoggerFactory.getLogger(JmsSendWithAsyncCallbackTest.class); diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/JmsSessionRecoverTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/JmsSessionRecoverTest.java index f07cffe65ea..5edffa1021b 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/JmsSessionRecoverTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/JmsSessionRecoverTest.java @@ -33,12 +33,15 @@ import junit.framework.TestCase; import org.apache.activemq.command.ActiveMQQueue; import org.apache.activemq.command.ActiveMQTopic; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * Testcases to see if Session.recover() work. * * */ +@Category(ParallelTest.class) public class JmsSessionRecoverTest extends TestCase { private Connection connection; diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/JmsTempDestinationTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/JmsTempDestinationTest.java index 1a32039981b..b0ea3603c36 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/JmsTempDestinationTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/JmsTempDestinationTest.java @@ -16,16 +16,6 @@ */ package org.apache.activemq; -import java.io.IOException; -import java.net.URISyntaxException; -import java.util.ArrayList; -import java.util.Collections; -import java.util.Iterator; -import java.util.List; -import java.util.concurrent.CountDownLatch; -import java.util.concurrent.TimeUnit; -import java.util.concurrent.atomic.AtomicBoolean; - import jakarta.jms.BytesMessage; import jakarta.jms.Connection; import jakarta.jms.DeliveryMode; @@ -38,15 +28,23 @@ import jakarta.jms.Session; import jakarta.jms.TemporaryQueue; import jakarta.jms.TextMessage; - import junit.framework.TestCase; - import org.apache.activemq.transport.TransportListener; import org.apache.activemq.transport.vm.VMTransport; import org.apache.activemq.util.Wait; import org.slf4j.Logger; import org.slf4j.LoggerFactory; +import java.io.IOException; +import java.net.URISyntaxException; +import java.util.ArrayList; +import java.util.Collections; +import java.util.Iterator; +import java.util.List; +import java.util.concurrent.CountDownLatch; +import java.util.concurrent.TimeUnit; +import java.util.concurrent.atomic.AtomicBoolean; + /** * @version */ diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/JmsTestSupport.java b/activemq-unit-tests/src/test/java/org/apache/activemq/JmsTestSupport.java index f31d6603f01..f93b83efa65 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/JmsTestSupport.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/JmsTestSupport.java @@ -16,15 +16,6 @@ */ package org.apache.activemq; -import java.io.File; -import java.io.IOException; -import java.net.URI; -import java.util.ArrayList; -import java.util.Collections; -import java.util.Iterator; -import java.util.List; -import java.util.concurrent.atomic.AtomicLong; - import jakarta.jms.Connection; import jakarta.jms.ConnectionFactory; import jakarta.jms.Destination; @@ -32,11 +23,19 @@ import jakarta.jms.MessageConsumer; import jakarta.jms.MessageProducer; import jakarta.jms.Session; - import org.apache.activemq.broker.BrokerFactory; import org.apache.activemq.broker.BrokerService; import org.apache.activemq.command.ActiveMQDestination; +import java.io.File; +import java.io.IOException; +import java.net.URI; +import java.util.ArrayList; +import java.util.Collections; +import java.util.Iterator; +import java.util.List; +import java.util.concurrent.atomic.AtomicLong; + /** * Test cases used to test the JMS message consumer. * diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/JmsTopicCompositeSendReceiveTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/JmsTopicCompositeSendReceiveTest.java index 9f519e6351b..f28dd9eb6e8 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/JmsTopicCompositeSendReceiveTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/JmsTopicCompositeSendReceiveTest.java @@ -22,11 +22,14 @@ import jakarta.jms.Topic; import org.apache.activemq.test.JmsTopicSendReceiveTest; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * */ +@Category(ParallelTest.class) public class JmsTopicCompositeSendReceiveTest extends JmsTopicSendReceiveTest { private static final org.apache.commons.logging.Log LOG = org.apache.commons.logging.LogFactory .getLog(JmsTopicCompositeSendReceiveTest.class); diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/JmsTopicSendReceiveSubscriberTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/JmsTopicSendReceiveSubscriberTest.java index 05633a0c219..b0a0658f5be 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/JmsTopicSendReceiveSubscriberTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/JmsTopicSendReceiveSubscriberTest.java @@ -20,10 +20,13 @@ import jakarta.jms.MessageConsumer; import jakarta.jms.Topic; import jakarta.jms.TopicSession; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * */ +@Category(ParallelTest.class) public class JmsTopicSendReceiveSubscriberTest extends JmsTopicSendReceiveTest { protected MessageConsumer createConsumer() throws JMSException { if (durable) { diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/JmsTopicSendReceiveWithTwoConnectionsWithJMXTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/JmsTopicSendReceiveWithTwoConnectionsWithJMXTest.java index da2c80cdcdc..df2dbe65b06 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/JmsTopicSendReceiveWithTwoConnectionsWithJMXTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/JmsTopicSendReceiveWithTwoConnectionsWithJMXTest.java @@ -1,4 +1,6 @@ /** +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. @@ -16,10 +18,14 @@ */ package org.apache.activemq; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; + /** * * */ +@Category(ParallelTest.class) public class JmsTopicSendReceiveWithTwoConnectionsWithJMXTest extends JmsTopicSendReceiveWithTwoConnectionsTest { diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/JmsTopicSendSameMessageTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/JmsTopicSendSameMessageTest.java index 458168c7437..46553a30aa5 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/JmsTopicSendSameMessageTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/JmsTopicSendSameMessageTest.java @@ -17,10 +17,13 @@ package org.apache.activemq; import jakarta.jms.TextMessage; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * */ +@Category(ParallelTest.class) public class JmsTopicSendSameMessageTest extends JmsTopicSendReceiveWithTwoConnectionsTest { private static final org.apache.commons.logging.Log LOG = org.apache.commons.logging.LogFactory diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/JmsTopicWildcardSendReceiveTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/JmsTopicWildcardSendReceiveTest.java index a1571ecb75a..c4d28f071ee 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/JmsTopicWildcardSendReceiveTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/JmsTopicWildcardSendReceiveTest.java @@ -26,10 +26,13 @@ import jakarta.jms.TextMessage; import org.apache.activemq.command.ActiveMQDestination; import org.apache.activemq.test.JmsTopicSendReceiveTest; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * */ +@Category(ParallelTest.class) public class JmsTopicWildcardSendReceiveTest extends JmsTopicSendReceiveTest { private String destination1String = "TEST.ONE.ONE"; diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/MessageEvictionTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/MessageEvictionTest.java index afc7c736578..0f3c8e6bd52 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/MessageEvictionTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/MessageEvictionTest.java @@ -56,7 +56,10 @@ import org.junit.Test; import org.slf4j.Logger; import org.slf4j.LoggerFactory; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; +@Category(ParallelTest.class) public class MessageEvictionTest { static final Logger LOG = LoggerFactory.getLogger(MessageEvictionTest.class); private BrokerService broker; diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/MessageListenerRedeliveryTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/MessageListenerRedeliveryTest.java index 288a1894208..26222b67474 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/MessageListenerRedeliveryTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/MessageListenerRedeliveryTest.java @@ -48,7 +48,10 @@ import org.junit.rules.TestName; import org.slf4j.Logger; import org.slf4j.LoggerFactory; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; +@Category(ParallelTest.class) public class MessageListenerRedeliveryTest { private static final Logger LOG = LoggerFactory.getLogger(MessageListenerRedeliveryTest.class); diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/MessageTransformationTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/MessageTransformationTest.java index 3c185322dbd..1d95c3c4a0b 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/MessageTransformationTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/MessageTransformationTest.java @@ -39,7 +39,10 @@ import org.apache.activemq.command.ActiveMQTempTopic; import org.apache.activemq.command.ActiveMQTextMessage; import org.apache.activemq.command.ActiveMQTopic; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; +@Category(ParallelTest.class) public class MessageTransformationTest extends TestCase { /** diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/OnePrefetchAsyncConsumerTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/OnePrefetchAsyncConsumerTest.java index c455297a913..cb144bbf864 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/OnePrefetchAsyncConsumerTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/OnePrefetchAsyncConsumerTest.java @@ -45,9 +45,12 @@ import org.junit.runners.BlockJUnit4ClassRunner; import org.slf4j.Logger; import org.slf4j.LoggerFactory; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; // see: https://issues.apache.org/activemq/browse/AMQ-2651 @RunWith(BlockJUnit4ClassRunner.class) +@Category(ParallelTest.class) public class OnePrefetchAsyncConsumerTest extends EmbeddedBrokerTestSupport { private static final Logger LOG = LoggerFactory.getLogger(OnePrefetchAsyncConsumerTest.class); diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/OptimizedAckTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/OptimizedAckTest.java index 1a4e1451d6f..93bebddde8a 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/OptimizedAckTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/OptimizedAckTest.java @@ -28,7 +28,10 @@ import org.apache.activemq.util.Wait; import org.slf4j.Logger; import org.slf4j.LoggerFactory; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; +@Category(ParallelTest.class) public class OptimizedAckTest extends TestSupport { private static final Logger LOG = LoggerFactory.getLogger(OptimizedAckTest.class); private ActiveMQConnection connection; diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/PerDestinationStoreLimitTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/PerDestinationStoreLimitTest.java index c2efba05e62..72f309758aa 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/PerDestinationStoreLimitTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/PerDestinationStoreLimitTest.java @@ -40,8 +40,11 @@ import org.apache.activemq.transport.tcp.TcpTransport; import org.slf4j.Logger; import org.slf4j.LoggerFactory; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; // see: https://issues.apache.org/activemq/browse/AMQ-2668 +@Category(ParallelTest.class) public class PerDestinationStoreLimitTest extends JmsTestSupport { static final Logger LOG = LoggerFactory.getLogger(PerDestinationStoreLimitTest.class); final String oneKb = new String(new byte[1024]); diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/ProducerFlowControlSendFailTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/ProducerFlowControlSendFailTest.java index 2e1de711455..5857871ec8c 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/ProducerFlowControlSendFailTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/ProducerFlowControlSendFailTest.java @@ -16,9 +16,6 @@ */ package org.apache.activemq; -import java.util.concurrent.atomic.AtomicBoolean; -import java.util.concurrent.atomic.AtomicInteger; - import jakarta.jms.ConnectionFactory; import jakarta.jms.ExceptionListener; import jakarta.jms.JMSException; @@ -27,13 +24,15 @@ import jakarta.jms.ResourceAllocationException; import jakarta.jms.Session; import jakarta.jms.TextMessage; - import org.apache.activemq.broker.BrokerService; import org.apache.activemq.broker.region.policy.PolicyEntry; import org.apache.activemq.broker.region.policy.PolicyMap; import org.apache.activemq.broker.region.policy.VMPendingQueueMessageStoragePolicy; import org.apache.activemq.broker.region.policy.VMPendingSubscriberMessageStoragePolicy; +import java.util.concurrent.atomic.AtomicBoolean; +import java.util.concurrent.atomic.AtomicInteger; + public class ProducerFlowControlSendFailTest extends ProducerFlowControlTest { protected BrokerService createBroker() throws Exception { diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/ProducerFlowControlTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/ProducerFlowControlTest.java index f46cdc56e98..7dbb49cb963 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/ProducerFlowControlTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/ProducerFlowControlTest.java @@ -16,12 +16,6 @@ */ package org.apache.activemq; -import java.io.IOException; -import java.util.concurrent.CountDownLatch; -import java.util.concurrent.TimeUnit; -import java.util.concurrent.atomic.AtomicBoolean; -import java.util.concurrent.atomic.AtomicInteger; - import jakarta.jms.Connection; import jakarta.jms.ConnectionFactory; import jakarta.jms.DeliveryMode; @@ -30,7 +24,6 @@ import jakarta.jms.MessageProducer; import jakarta.jms.Session; import jakarta.jms.TextMessage; - import org.apache.activemq.broker.BrokerService; import org.apache.activemq.broker.TransportConnector; import org.apache.activemq.broker.region.Queue; @@ -48,6 +41,12 @@ import org.slf4j.Logger; import org.slf4j.LoggerFactory; +import java.io.IOException; +import java.util.concurrent.CountDownLatch; +import java.util.concurrent.TimeUnit; +import java.util.concurrent.atomic.AtomicBoolean; +import java.util.concurrent.atomic.AtomicInteger; + public class ProducerFlowControlTest extends JmsTestSupport { static final Logger LOG = LoggerFactory.getLogger(ProducerFlowControlTest.class); ActiveMQQueue queueA = new ActiveMQQueue("QUEUE.A"); diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/QueueConsumerPriorityTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/QueueConsumerPriorityTest.java index eff67e39626..606ba4e7519 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/QueueConsumerPriorityTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/QueueConsumerPriorityTest.java @@ -27,7 +27,10 @@ import junit.framework.TestCase; import org.apache.activemq.command.ActiveMQQueue; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; +@Category(ParallelTest.class) public class QueueConsumerPriorityTest extends TestCase { private static final String VM_BROKER_URL = "vm://localhost?broker.persistent=false&broker.useJmx=true"; diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/ReconnectWithSameClientIDTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/ReconnectWithSameClientIDTest.java index 377dfa67a57..02089c11808 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/ReconnectWithSameClientIDTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/ReconnectWithSameClientIDTest.java @@ -33,7 +33,10 @@ import org.apache.logging.log4j.core.layout.MessageLayout; import org.slf4j.Logger; import org.slf4j.LoggerFactory; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; +@Category(ParallelTest.class) public class ReconnectWithSameClientIDTest extends EmbeddedBrokerTestSupport { private static final Logger LOG = LoggerFactory.getLogger(ReconnectWithSameClientIDTest.class); diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/RedeliveryPolicyTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/RedeliveryPolicyTest.java index 53e341d5422..f78c3bd4fb8 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/RedeliveryPolicyTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/RedeliveryPolicyTest.java @@ -43,7 +43,10 @@ import org.apache.activemq.util.Wait; import org.slf4j.Logger; import org.slf4j.LoggerFactory; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; +@Category(ParallelTest.class) public class RedeliveryPolicyTest extends JmsTestSupport { static final Logger LOG = LoggerFactory.getLogger(RedeliveryPolicyTest.class); diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/RemoveDestinationTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/RemoveDestinationTest.java index d8a9f98f845..10258ed0077 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/RemoveDestinationTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/RemoveDestinationTest.java @@ -42,7 +42,10 @@ import org.junit.After; import org.junit.Before; import org.junit.Test; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; +@Category(ParallelTest.class) public class RemoveDestinationTest { private static final String VM_BROKER_URL = "vm://localhost?create=false"; diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/TcpTransportCloseConnectionTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/TcpTransportCloseConnectionTest.java index f7bd17eba0d..328b420c35c 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/TcpTransportCloseConnectionTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/TcpTransportCloseConnectionTest.java @@ -33,7 +33,10 @@ import org.apache.activemq.broker.BrokerService; import javax.management.JMException; import javax.management.ObjectName; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; +@Category(ParallelTest.class) public class TcpTransportCloseConnectionTest { static boolean transportConnectionFailed = false; diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/TimeStampTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/TimeStampTest.java index 6a14619fdaf..312a57c51d0 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/TimeStampTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/TimeStampTest.java @@ -30,7 +30,10 @@ import org.apache.activemq.broker.TransportConnector; import org.apache.activemq.broker.util.UDPTraceBrokerPlugin; import org.apache.activemq.broker.view.ConnectionDotFilePlugin; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; +@Category(ParallelTest.class) public class TimeStampTest extends TestCase { public void test() throws Exception { BrokerService broker = new BrokerService(); diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/TopicSubscriptionCountBeforeFullTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/TopicSubscriptionCountBeforeFullTest.java index 9539d5d866b..f7edf56f967 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/TopicSubscriptionCountBeforeFullTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/TopicSubscriptionCountBeforeFullTest.java @@ -28,11 +28,14 @@ import org.apache.activemq.broker.region.Subscription; import org.apache.activemq.command.ActiveMQTopic; import org.junit.Test; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * This test shows that the countBeforeFull statistic that is part of a Subscription is correct * for TopicSubscriptions. */ +@Category(ParallelTest.class) public class TopicSubscriptionCountBeforeFullTest extends TestSupport { protected BrokerService brokerService; diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/TransactionContextTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/TransactionContextTest.java index ad657c3efc7..496f62a867f 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/TransactionContextTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/TransactionContextTest.java @@ -27,7 +27,10 @@ import org.junit.After; import org.junit.Before; import org.junit.Test; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; +@Category(ParallelTest.class) public class TransactionContextTest { TransactionContext underTest; diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/XAConsumerTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/XAConsumerTest.java index b71b3d8c3fd..0c94a1184b4 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/XAConsumerTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/XAConsumerTest.java @@ -44,7 +44,10 @@ import java.util.List; import java.util.concurrent.CountDownLatch; import java.util.concurrent.TimeUnit; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; +@Category(ParallelTest.class) public class XAConsumerTest extends TestCase { static final Logger LOG = LoggerFactory.getLogger(XAConsumerTest.class); diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/ZeroPrefetchConsumerTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/ZeroPrefetchConsumerTest.java index 9cd7da901de..b7297e86503 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/ZeroPrefetchConsumerTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/ZeroPrefetchConsumerTest.java @@ -37,10 +37,13 @@ import org.apache.activemq.spring.SpringConsumer; import org.slf4j.Logger; import org.slf4j.LoggerFactory; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * */ +@Category(ParallelTest.class) public class ZeroPrefetchConsumerTest extends EmbeddedBrokerTestSupport { private static final Logger LOG = LoggerFactory.getLogger(ZeroPrefetchConsumerTest.class); diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/advisory/AdvisoryTempDestinationTests.java b/activemq-unit-tests/src/test/java/org/apache/activemq/advisory/AdvisoryTempDestinationTests.java index 9e573dcd391..0210689f180 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/advisory/AdvisoryTempDestinationTests.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/advisory/AdvisoryTempDestinationTests.java @@ -42,10 +42,13 @@ import org.apache.activemq.broker.region.policy.PolicyMap; import org.apache.activemq.command.ActiveMQDestination; import org.apache.activemq.command.ActiveMQMessage; +import org.apache.activemq.test.annotations.ParallelTest; import org.junit.After; import org.junit.Before; import org.junit.Test; +import org.junit.experimental.categories.Category; +@Category(ParallelTest.class) public class AdvisoryTempDestinationTests { protected static final int MESSAGE_COUNT = 2000; diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/advisory/AdvisoryTests.java b/activemq-unit-tests/src/test/java/org/apache/activemq/advisory/AdvisoryTests.java index 8b78f6849fb..008b9367388 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/advisory/AdvisoryTests.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/advisory/AdvisoryTests.java @@ -53,9 +53,11 @@ import org.apache.activemq.command.ActiveMQQueue; import org.apache.activemq.command.ActiveMQTopic; import org.apache.activemq.command.MessageDispatch; +import org.apache.activemq.test.annotations.ParallelTest; import org.junit.After; import org.junit.Before; import org.junit.Test; +import org.junit.experimental.categories.Category; import org.junit.runner.RunWith; import org.junit.runners.Parameterized; import org.junit.runners.Parameterized.Parameters; @@ -63,6 +65,7 @@ /** * Test for advisory messages sent under the right circumstances. */ +@Category(ParallelTest.class) @RunWith(Parameterized.class) public class AdvisoryTests { diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/advisory/ConsumerListenerTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/advisory/ConsumerListenerTest.java index ec758d2eae7..b610ab7707e 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/advisory/ConsumerListenerTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/advisory/ConsumerListenerTest.java @@ -29,6 +29,8 @@ import jakarta.jms.Session; import org.apache.activemq.EmbeddedBrokerTestSupport; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; import org.slf4j.Logger; import org.slf4j.LoggerFactory; @@ -36,6 +38,7 @@ * * */ +@Category(ParallelTest.class) public class ConsumerListenerTest extends EmbeddedBrokerTestSupport implements ConsumerListener { private static final Logger LOG = LoggerFactory.getLogger(ConsumerListenerTest.class); diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/advisory/DestinationListenerTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/advisory/DestinationListenerTest.java index d48ad068ce0..dd0591afb13 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/advisory/DestinationListenerTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/advisory/DestinationListenerTest.java @@ -30,6 +30,8 @@ import org.apache.activemq.command.ActiveMQDestination; import org.apache.activemq.command.ActiveMQQueue; import org.apache.activemq.command.ActiveMQTopic; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import static org.hamcrest.MatcherAssert.assertThat; @@ -38,6 +40,7 @@ /** * */ +@Category(ParallelTest.class) public class DestinationListenerTest extends EmbeddedBrokerTestSupport implements DestinationListener { private static final transient Logger LOG = LoggerFactory.getLogger(DestinationListenerTest.class); protected ActiveMQConnection connection; diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/advisory/ProducerListenerTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/advisory/ProducerListenerTest.java index 72bc4c6d34d..ef3eb8750dd 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/advisory/ProducerListenerTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/advisory/ProducerListenerTest.java @@ -26,6 +26,8 @@ import jakarta.jms.MessageProducer; import jakarta.jms.Session; import org.apache.activemq.EmbeddedBrokerTestSupport; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; import org.slf4j.Logger; import org.slf4j.LoggerFactory; @@ -33,6 +35,7 @@ * * */ +@Category(ParallelTest.class) public class ProducerListenerTest extends EmbeddedBrokerTestSupport implements ProducerListener { private static final Logger LOG = LoggerFactory.getLogger(ProducerListenerTest.class); diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/advisory/TempDestDeleteTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/advisory/TempDestDeleteTest.java index 6a101bb502a..58458929f19 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/advisory/TempDestDeleteTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/advisory/TempDestDeleteTest.java @@ -33,12 +33,15 @@ import org.apache.activemq.broker.region.RegionBroker; import org.apache.activemq.command.ActiveMQTempQueue; import org.apache.activemq.command.ActiveMQTempTopic; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; import org.slf4j.Logger; import org.slf4j.LoggerFactory; /** * */ +@Category(ParallelTest.class) public class TempDestDeleteTest extends EmbeddedBrokerTestSupport implements ConsumerListener { private static final Logger LOG = LoggerFactory.getLogger(TempDestDeleteTest.class); diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/advisory/TempDestLoadTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/advisory/TempDestLoadTest.java index 6253c936179..ef00b1269e3 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/advisory/TempDestLoadTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/advisory/TempDestLoadTest.java @@ -26,12 +26,15 @@ import org.apache.activemq.EmbeddedBrokerTestSupport; import org.apache.activemq.broker.region.Destination; import org.apache.activemq.broker.region.RegionBroker; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; import org.slf4j.Logger; import org.slf4j.LoggerFactory; /** * */ +@Category(ParallelTest.class) public class TempDestLoadTest extends EmbeddedBrokerTestSupport { private static final Logger LOG = LoggerFactory.getLogger(TempDestLoadTest.class); diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/advisory/TempQueueMemoryTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/advisory/TempQueueMemoryTest.java index 6dbd9e14e2c..1a4cdefc4b1 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/advisory/TempQueueMemoryTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/advisory/TempQueueMemoryTest.java @@ -32,7 +32,10 @@ import org.apache.activemq.broker.region.RegionBroker; import org.apache.activemq.command.ActiveMQDestination; import org.apache.activemq.command.ActiveMQQueue; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; +@Category(ParallelTest.class) public class TempQueueMemoryTest extends EmbeddedBrokerTestSupport { protected Connection serverConnection; diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/blob/BlobTransferPolicyUriTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/blob/BlobTransferPolicyUriTest.java index 28d1bb02ed9..8e83a6c6c72 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/blob/BlobTransferPolicyUriTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/blob/BlobTransferPolicyUriTest.java @@ -20,6 +20,8 @@ import org.apache.activemq.ActiveMQConnectionFactory; import org.apache.activemq.command.ActiveMQBlobMessage; import org.apache.activemq.command.MessageId; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; import java.io.IOException; import java.io.InputStream; @@ -27,6 +29,7 @@ /** * */ +@Category(ParallelTest.class) public class BlobTransferPolicyUriTest extends TestCase { public void testBlobTransferPolicyIsConfiguredViaUri() throws Exception { ActiveMQConnectionFactory factory = new ActiveMQConnectionFactory("vm://localhost?jms.blobTransferPolicy.defaultUploadUrl=http://foo.com"); diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/blob/FilesystemBlobTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/blob/FilesystemBlobTest.java index 03bcffb7aa1..fe638e06360 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/blob/FilesystemBlobTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/blob/FilesystemBlobTest.java @@ -31,11 +31,13 @@ import org.apache.activemq.BlobMessage; import org.apache.activemq.EmbeddedBrokerTestSupport; import org.apache.activemq.command.ActiveMQBlobMessage; +import org.apache.activemq.test.annotations.ParallelTest; import org.apache.activemq.util.IOHelper; +import org.junit.experimental.categories.Category; import org.slf4j.Logger; import org.slf4j.LoggerFactory; - +@Category(ParallelTest.class) public class FilesystemBlobTest extends EmbeddedBrokerTestSupport { private static final Logger LOG = LoggerFactory.getLogger(FilesystemBlobTest.class); diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/broker/BrokerRedeliveryTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/broker/BrokerRedeliveryTest.java index 09f75b2fbb2..b4dac900b5a 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/broker/BrokerRedeliveryTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/broker/BrokerRedeliveryTest.java @@ -36,7 +36,10 @@ import org.apache.activemq.util.Wait; import org.slf4j.Logger; import org.slf4j.LoggerFactory; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; +@Category(ParallelTest.class) public class BrokerRedeliveryTest extends org.apache.activemq.TestSupport { static final Logger LOG = LoggerFactory.getLogger(BrokerRedeliveryTest.class); diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/broker/BrokerRestartTestSupport.java b/activemq-unit-tests/src/test/java/org/apache/activemq/broker/BrokerRestartTestSupport.java index 111494a0277..9c9891deb7d 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/broker/BrokerRestartTestSupport.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/broker/BrokerRestartTestSupport.java @@ -22,6 +22,8 @@ import org.apache.activemq.util.IOHelper; + + public class BrokerRestartTestSupport extends BrokerTestSupport { @Override diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/broker/BrokerServiceTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/broker/BrokerServiceTest.java index 06a18ce7930..b68bcf8cd18 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/broker/BrokerServiceTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/broker/BrokerServiceTest.java @@ -30,12 +30,15 @@ import static org.mockito.ArgumentMatchers.any; import static org.mockito.Mockito.times; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * Tests for the BrokerService class * * @author chirino */ +@Category(ParallelTest.class) public class BrokerServiceTest extends TestCase { public void testAddRemoveTransportsWithJMX() throws Exception { BrokerService service = new BrokerService(); diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/broker/BrokerTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/broker/BrokerTest.java index c0d4736980f..4ff34bb36db 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/broker/BrokerTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/broker/BrokerTest.java @@ -36,6 +36,8 @@ import org.apache.activemq.command.RemoveInfo; import org.apache.activemq.command.SessionInfo; + + public class BrokerTest extends BrokerTestSupport { public ActiveMQDestination destination; diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/broker/BrokerTestSupport.java b/activemq-unit-tests/src/test/java/org/apache/activemq/broker/BrokerTestSupport.java index 94a74a932e4..b9a9ec991ef 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/broker/BrokerTestSupport.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/broker/BrokerTestSupport.java @@ -54,6 +54,8 @@ import org.apache.activemq.store.PersistenceAdapter; import org.apache.activemq.usage.SystemUsage; + + public class BrokerTestSupport extends CombinationTestSupport { /** diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/broker/ConcurrentConnectSimulationTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/broker/ConcurrentConnectSimulationTest.java index 0c791fdda0d..35b53e63db5 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/broker/ConcurrentConnectSimulationTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/broker/ConcurrentConnectSimulationTest.java @@ -24,6 +24,8 @@ import org.apache.activemq.command.ConsumerInfo; import org.apache.activemq.command.SessionId; + + public class ConcurrentConnectSimulationTest extends BrokerTestSupport { /* diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/broker/CreateDestinationsOnStartupViaXBeanTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/broker/CreateDestinationsOnStartupViaXBeanTest.java index 70fda7c7f40..97e6d8594b8 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/broker/CreateDestinationsOnStartupViaXBeanTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/broker/CreateDestinationsOnStartupViaXBeanTest.java @@ -24,11 +24,14 @@ import org.apache.activemq.command.ActiveMQQueue; import org.apache.activemq.command.ActiveMQTopic; import org.apache.activemq.xbean.XBeanBrokerFactory; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * * */ +@Category(ParallelTest.class) public class CreateDestinationsOnStartupViaXBeanTest extends EmbeddedBrokerTestSupport { public void testNewDestinationsAreCreatedOnStartup() throws Exception { diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/broker/MessageExpirationTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/broker/MessageExpirationTest.java index 281f10de745..c2533719676 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/broker/MessageExpirationTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/broker/MessageExpirationTest.java @@ -34,6 +34,8 @@ import org.apache.activemq.command.SessionInfo; import org.apache.activemq.util.Wait; + + public class MessageExpirationTest extends BrokerTestSupport { public ActiveMQDestination destination; diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/broker/ReconnectWithJMXEnabledTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/broker/ReconnectWithJMXEnabledTest.java index 45b92eaba8d..ab9958d7193 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/broker/ReconnectWithJMXEnabledTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/broker/ReconnectWithJMXEnabledTest.java @@ -26,11 +26,14 @@ import org.apache.activemq.ActiveMQConnectionFactory; import org.apache.activemq.EmbeddedBrokerTestSupport; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * * */ +@Category(ParallelTest.class) public class ReconnectWithJMXEnabledTest extends EmbeddedBrokerTestSupport { protected Connection connection; diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/broker/advisory/AdvisoryBrokerTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/broker/advisory/AdvisoryBrokerTest.java index 438d6494f03..fdf6cf04f1c 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/broker/advisory/AdvisoryBrokerTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/broker/advisory/AdvisoryBrokerTest.java @@ -29,7 +29,10 @@ import org.apache.activemq.command.ProducerInfo; import org.apache.activemq.command.RemoveInfo; import org.apache.activemq.command.SessionInfo; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; +@Category(ParallelTest.class) public class AdvisoryBrokerTest extends BrokerTestSupport { public void testConnectionAdvisories() throws Exception { diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/broker/advisory/AdvisoryDuringStartTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/broker/advisory/AdvisoryDuringStartTest.java index 069092cf0fa..6f3219a4ced 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/broker/advisory/AdvisoryDuringStartTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/broker/advisory/AdvisoryDuringStartTest.java @@ -22,6 +22,7 @@ import org.apache.activemq.command.ActiveMQTopic; import org.apache.activemq.command.ConsumerInfo; import org.apache.activemq.network.DiscoveryNetworkConnector; +import org.apache.activemq.test.annotations.ParallelTest; import org.apache.activemq.util.ServiceStopper; import org.junit.After; import org.junit.Test; @@ -29,12 +30,15 @@ import jakarta.jms.Connection; import jakarta.jms.MessageConsumer; import jakarta.jms.Session; +import org.junit.experimental.categories.Category; + import java.util.concurrent.CountDownLatch; import java.util.concurrent.Executors; import java.util.concurrent.TimeUnit; import static org.junit.Assert.*; +@Category(ParallelTest.class) public class AdvisoryDuringStartTest { BrokerService brokerService; diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/broker/advisory/AdvisoryJmxTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/broker/advisory/AdvisoryJmxTest.java index 37fa53269fa..dd4bcac1f62 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/broker/advisory/AdvisoryJmxTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/broker/advisory/AdvisoryJmxTest.java @@ -30,7 +30,10 @@ import org.apache.activemq.broker.jmx.ManagementContext; import org.apache.activemq.command.ActiveMQMessage; import org.apache.activemq.command.DestinationInfo; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; +@Category(ParallelTest.class) public class AdvisoryJmxTest extends EmbeddedBrokerTestSupport { @Override diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/broker/advisory/AdvisoryNetworkBridgeTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/broker/advisory/AdvisoryNetworkBridgeTest.java index e7ee4394850..6eaaac5576d 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/broker/advisory/AdvisoryNetworkBridgeTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/broker/advisory/AdvisoryNetworkBridgeTest.java @@ -16,6 +16,9 @@ */ package org.apache.activemq.broker.advisory; +import jakarta.jms.Connection; +import jakarta.jms.MessageConsumer; +import jakarta.jms.Session; import junit.framework.TestCase; import org.apache.activemq.ActiveMQConnectionFactory; import org.apache.activemq.advisory.AdvisorySupport; @@ -24,9 +27,6 @@ import org.apache.activemq.command.ActiveMQMessage; import org.apache.activemq.command.BrokerInfo; -import jakarta.jms.Connection; -import jakarta.jms.MessageConsumer; -import jakarta.jms.Session; import java.net.URI; public class AdvisoryNetworkBridgeTest extends TestCase { diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/broker/ft/DbRestartJDBCQueueTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/broker/ft/DbRestartJDBCQueueTest.java index 97f18c82900..5b8092db13e 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/broker/ft/DbRestartJDBCQueueTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/broker/ft/DbRestartJDBCQueueTest.java @@ -36,7 +36,10 @@ import org.junit.After; import org.slf4j.Logger; import org.slf4j.LoggerFactory; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; +@Category(ParallelTest.class) public class DbRestartJDBCQueueTest extends JmsTopicSendReceiveWithTwoConnectionsTest implements ExceptionListener { private static final transient Logger LOG = LoggerFactory.getLogger(DbRestartJDBCQueueTest.class); diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/broker/jmx/BrokerViewSlowStoreStartupTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/broker/jmx/BrokerViewSlowStoreStartupTest.java index 6910bed2777..ede79d33761 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/broker/jmx/BrokerViewSlowStoreStartupTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/broker/jmx/BrokerViewSlowStoreStartupTest.java @@ -24,10 +24,12 @@ import org.apache.activemq.broker.BrokerService; import org.apache.activemq.store.kahadb.KahaDBStore; +import org.apache.activemq.test.annotations.ParallelTest; import org.apache.activemq.util.Wait; import org.junit.After; import org.junit.Before; import org.junit.Test; +import org.junit.experimental.categories.Category; import org.slf4j.Logger; import org.slf4j.LoggerFactory; @@ -35,6 +37,7 @@ * Used to verify that the BrokerView accessed while the BrokerSerivce is waiting * for a Slow Store startup to complete doesn't throw unexpected NullPointerExceptions. */ +@Category(ParallelTest.class) public class BrokerViewSlowStoreStartupTest { private static final Logger LOG = LoggerFactory.getLogger(BrokerViewSlowStoreStartupTest.class); diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/broker/jmx/BrokerViewTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/broker/jmx/BrokerViewTest.java index c3b0f720252..9444f74e488 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/broker/jmx/BrokerViewTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/broker/jmx/BrokerViewTest.java @@ -20,13 +20,16 @@ import org.apache.activemq.ActiveMQConnectionFactory; import org.apache.activemq.broker.BrokerRegistry; import org.apache.activemq.broker.BrokerService; +import org.apache.activemq.test.annotations.ParallelTest; import org.apache.activemq.util.Wait; import org.junit.Test; +import org.junit.experimental.categories.Category; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertTrue; +@Category(ParallelTest.class) public class BrokerViewTest { @Test(timeout=120000) public void testBrokerViewRetrieveQueuesAndTopicsCount() throws Exception { diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/broker/jmx/ConcurrentMoveTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/broker/jmx/ConcurrentMoveTest.java index 17caea9ae3a..266ead1be4c 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/broker/jmx/ConcurrentMoveTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/broker/jmx/ConcurrentMoveTest.java @@ -16,6 +16,11 @@ */ package org.apache.activemq.broker.jmx; +import jakarta.jms.Connection; +import jakarta.jms.ConnectionFactory; +import jakarta.jms.Message; +import jakarta.jms.MessageProducer; +import jakarta.jms.Session; import org.apache.activemq.ActiveMQConnectionFactory; import org.apache.activemq.EmbeddedBrokerTestSupport; import org.apache.activemq.broker.BrokerService; @@ -26,11 +31,6 @@ import org.slf4j.Logger; import org.slf4j.LoggerFactory; -import jakarta.jms.Connection; -import jakarta.jms.ConnectionFactory; -import jakarta.jms.Message; -import jakarta.jms.MessageProducer; -import jakarta.jms.Session; import javax.management.MBeanServer; import javax.management.MBeanServerInvocationHandler; import javax.management.MalformedObjectNameException; diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/broker/jmx/HealthViewMBeanTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/broker/jmx/HealthViewMBeanTest.java index 9239b3b62c7..ad754e44430 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/broker/jmx/HealthViewMBeanTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/broker/jmx/HealthViewMBeanTest.java @@ -32,9 +32,12 @@ import org.apache.activemq.ActiveMQConnectionFactory; import org.apache.activemq.EmbeddedBrokerTestSupport; import org.apache.activemq.broker.BrokerService; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; import org.slf4j.Logger; import org.slf4j.LoggerFactory; +@Category(ParallelTest.class) public class HealthViewMBeanTest extends EmbeddedBrokerTestSupport { private static final Logger LOG = LoggerFactory.getLogger(MBeanTest.class); protected MBeanServer mbeanServer; diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/broker/jmx/JMXMasterSlaveSharedStoreTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/broker/jmx/JMXMasterSlaveSharedStoreTest.java index e927ecf450c..347df4f4eed 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/broker/jmx/JMXMasterSlaveSharedStoreTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/broker/jmx/JMXMasterSlaveSharedStoreTest.java @@ -26,9 +26,12 @@ import org.apache.activemq.TestSupport; import org.apache.activemq.store.PersistenceAdapter; import org.apache.activemq.store.kahadb.KahaDBPersistenceAdapter; +import org.apache.activemq.test.annotations.ParallelTest; import org.apache.activemq.xbean.XBeanBrokerService; import org.junit.Test; +import org.junit.experimental.categories.Category; +@Category(ParallelTest.class) public class JMXMasterSlaveSharedStoreTest extends TestSupport { protected XBeanBrokerService master; protected XBeanBrokerService slave; diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/broker/jmx/JMXRemoveDurableSubscriberTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/broker/jmx/JMXRemoveDurableSubscriberTest.java index 334f8d6cf14..e9ff5557661 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/broker/jmx/JMXRemoveDurableSubscriberTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/broker/jmx/JMXRemoveDurableSubscriberTest.java @@ -30,9 +30,11 @@ import org.apache.activemq.security.AuthorizationPlugin; import org.apache.activemq.security.DefaultAuthorizationMap; import org.apache.activemq.security.JaasAuthenticationPlugin; +import org.apache.activemq.test.annotations.ParallelTest; import org.junit.After; import org.junit.Before; import org.junit.Test; +import org.junit.experimental.categories.Category; import org.slf4j.Logger; import org.slf4j.LoggerFactory; @@ -41,6 +43,7 @@ * brokerServer.getAdminView() when JAAS authentication and authorization are * setup */ +@Category(ParallelTest.class) public class JMXRemoveDurableSubscriberTest { private static final Logger LOG = LoggerFactory.getLogger(JMXRemoveDurableSubscriberTest.class); diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/broker/jmx/JMXRemoveOfflineDurableSubscriberTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/broker/jmx/JMXRemoveOfflineDurableSubscriberTest.java index 233e46b82a1..74054bc9157 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/broker/jmx/JMXRemoveOfflineDurableSubscriberTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/broker/jmx/JMXRemoveOfflineDurableSubscriberTest.java @@ -17,12 +17,15 @@ package org.apache.activemq.broker.jmx; import org.apache.activemq.broker.BrokerService; +import org.apache.activemq.test.annotations.ParallelTest; import org.junit.After; import org.junit.Before; import org.junit.Test; +import org.junit.experimental.categories.Category; import static org.junit.Assert.assertTrue; +@Category(ParallelTest.class) public class JMXRemoveOfflineDurableSubscriberTest { private BrokerService broker; diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/broker/jmx/JmxConsumerRemovalTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/broker/jmx/JmxConsumerRemovalTest.java index 51b28794342..c7583db38db 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/broker/jmx/JmxConsumerRemovalTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/broker/jmx/JmxConsumerRemovalTest.java @@ -43,11 +43,13 @@ import org.apache.activemq.store.PersistenceAdapter; import org.apache.activemq.store.kahadb.KahaDBPersistenceAdapter; import org.apache.activemq.store.memory.MemoryPersistenceAdapter; +import org.apache.activemq.test.annotations.ParallelTest; import org.apache.activemq.util.Wait; +import org.junit.experimental.categories.Category; import org.slf4j.Logger; import org.slf4j.LoggerFactory; - +@Category(ParallelTest.class) public class JmxConsumerRemovalTest extends EmbeddedBrokerTestSupport { private static final Logger LOG = LoggerFactory.getLogger(JmxConsumerRemovalTest.class); diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/broker/jmx/JmxOpPageInOnMemoryLimitTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/broker/jmx/JmxOpPageInOnMemoryLimitTest.java index 8e5f2c3ae00..8cbbcd3a6b8 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/broker/jmx/JmxOpPageInOnMemoryLimitTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/broker/jmx/JmxOpPageInOnMemoryLimitTest.java @@ -22,11 +22,14 @@ import org.apache.activemq.broker.region.policy.PolicyMap; import org.apache.activemq.command.ActiveMQQueue; import org.apache.activemq.store.kahadb.KahaDBPersistenceAdapter; +import org.apache.activemq.test.annotations.ParallelTest; import org.junit.After; import org.junit.Before; import org.junit.Test; import jakarta.jms.*; +import org.junit.experimental.categories.Category; + import javax.management.MBeanServer; import javax.management.MBeanServerInvocationHandler; import javax.management.MalformedObjectNameException; @@ -35,6 +38,7 @@ import static org.junit.Assert.*; // https://issues.apache.org/jira/browse/AMQ-7302 +@Category(ParallelTest.class) public class JmxOpPageInOnMemoryLimitTest { BrokerService broker; diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/broker/jmx/Log4JConfigTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/broker/jmx/Log4JConfigTest.java index ed03d901885..dd13199d033 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/broker/jmx/Log4JConfigTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/broker/jmx/Log4JConfigTest.java @@ -25,11 +25,14 @@ import org.apache.activemq.ActiveMQConnectionFactory; import org.apache.activemq.EmbeddedBrokerTestSupport; import org.apache.activemq.broker.BrokerService; +import org.apache.activemq.test.annotations.ParallelTest; import org.apache.logging.log4j.Level; import org.apache.logging.log4j.LogManager; import org.junit.Test; +import org.junit.experimental.categories.Category; import org.slf4j.LoggerFactory; +@Category(ParallelTest.class) public class Log4JConfigTest extends EmbeddedBrokerTestSupport { private static final org.slf4j.Logger LOG = LoggerFactory.getLogger(Log4JConfigTest.class); diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/broker/jmx/MBeanOperationTimeoutTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/broker/jmx/MBeanOperationTimeoutTest.java index b358f248865..001a9f6141a 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/broker/jmx/MBeanOperationTimeoutTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/broker/jmx/MBeanOperationTimeoutTest.java @@ -30,14 +30,17 @@ import javax.management.ObjectName; import org.apache.activemq.ActiveMQConnectionFactory; import org.apache.activemq.broker.BrokerService; +import org.apache.activemq.test.annotations.ParallelTest; import org.junit.After; import org.junit.Before; import org.junit.Test; +import org.junit.experimental.categories.Category; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import static org.junit.Assert.assertEquals; import static org.junit.Assert.fail; +@Category(ParallelTest.class) public class MBeanOperationTimeoutTest { private static final Logger LOG = LoggerFactory.getLogger(MBeanOperationTimeoutTest.class); diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/broker/jmx/MBeanTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/broker/jmx/MBeanTest.java index fd464f7c902..a0c2346dd57 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/broker/jmx/MBeanTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/broker/jmx/MBeanTest.java @@ -61,9 +61,11 @@ import org.apache.activemq.command.ActiveMQDestination; import org.apache.activemq.command.ActiveMQQueue; import org.apache.activemq.command.ActiveMQTempQueue; +import org.apache.activemq.test.annotations.ParallelTest; import org.apache.activemq.util.JMXSupport; import org.apache.activemq.util.URISupport; import org.apache.activemq.util.Wait; +import org.junit.experimental.categories.Category; import org.slf4j.Logger; import org.slf4j.LoggerFactory; @@ -75,6 +77,7 @@ * various MBeans after the test has been run then run this test case as a * command line application. */ +@Category(ParallelTest.class) public class MBeanTest extends EmbeddedBrokerTestSupport { private static final Logger LOG = LoggerFactory.getLogger(MBeanTest.class); diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/broker/jmx/PurgeLargeMessageTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/broker/jmx/PurgeLargeMessageTest.java index 83e4ba4fcaf..ffc956224f1 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/broker/jmx/PurgeLargeMessageTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/broker/jmx/PurgeLargeMessageTest.java @@ -21,6 +21,8 @@ import org.apache.activemq.broker.BrokerService; import org.apache.activemq.broker.region.policy.PolicyEntry; import org.apache.activemq.broker.region.policy.PolicyMap; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; import org.slf4j.Logger; import org.slf4j.LoggerFactory; @@ -41,6 +43,7 @@ /** * Purging with large message that hit the memory limit boundaries of a queue. */ +@Category(ParallelTest.class) public class PurgeLargeMessageTest extends EmbeddedBrokerTestSupport { private static final Logger LOG = LoggerFactory.getLogger(PurgeLargeMessageTest.class); diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/broker/jmx/PurgeTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/broker/jmx/PurgeTest.java index 44bfb191b42..780a7f5aa0e 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/broker/jmx/PurgeTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/broker/jmx/PurgeTest.java @@ -34,12 +34,15 @@ import org.apache.activemq.store.PersistenceAdapter; import org.apache.activemq.store.kahadb.KahaDBPersistenceAdapter; import org.apache.activemq.store.memory.MemoryPersistenceAdapter; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; import org.slf4j.Logger; import org.slf4j.LoggerFactory; /** * A specific test of Queue.purge() functionality */ +@Category(ParallelTest.class) public class PurgeTest extends EmbeddedBrokerTestSupport { private static final Logger LOG = LoggerFactory.getLogger(PurgeTest.class); diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/broker/jmx/SelectiveMBeanRegistrationTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/broker/jmx/SelectiveMBeanRegistrationTest.java index 078e3f72a9e..b9b38bea2bb 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/broker/jmx/SelectiveMBeanRegistrationTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/broker/jmx/SelectiveMBeanRegistrationTest.java @@ -26,10 +26,12 @@ import javax.management.ObjectName; import org.apache.activemq.ActiveMQConnectionFactory; import org.apache.activemq.broker.BrokerService; +import org.apache.activemq.test.annotations.ParallelTest; import org.apache.activemq.util.Wait; import org.junit.After; import org.junit.Before; import org.junit.Test; +import org.junit.experimental.categories.Category; import org.slf4j.Logger; import org.slf4j.LoggerFactory; @@ -37,6 +39,7 @@ import static org.junit.Assert.*; +@Category(ParallelTest.class) public class SelectiveMBeanRegistrationTest { private static final Logger LOG = LoggerFactory.getLogger(SelectiveMBeanRegistrationTest.class); diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/broker/jmx/TransportConnectorMBeanTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/broker/jmx/TransportConnectorMBeanTest.java index d795823a804..747933b0b1f 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/broker/jmx/TransportConnectorMBeanTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/broker/jmx/TransportConnectorMBeanTest.java @@ -34,13 +34,16 @@ import org.apache.activemq.ActiveMQConnectionFactory; import org.apache.activemq.broker.BrokerService; import org.apache.activemq.network.NetworkConnector; +import org.apache.activemq.test.annotations.ParallelTest; import org.apache.activemq.util.JMXSupport; import org.apache.activemq.util.Wait; import org.junit.After; import org.junit.Test; +import org.junit.experimental.categories.Category; import org.slf4j.Logger; import org.slf4j.LoggerFactory; +@Category(ParallelTest.class) public class TransportConnectorMBeanTest { private static final Logger LOG = LoggerFactory.getLogger(TransportConnectorMBeanTest.class); diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/broker/message/security/MessageAuthenticationTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/broker/message/security/MessageAuthenticationTest.java index e9f57881742..3f3e7e75475 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/broker/message/security/MessageAuthenticationTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/broker/message/security/MessageAuthenticationTest.java @@ -34,10 +34,13 @@ import org.apache.activemq.security.MessageAuthorizationPolicy; import org.apache.activemq.EmbeddedBrokerTestSupport; import org.apache.activemq.spring.ConsumerBean; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * */ +@Category(ParallelTest.class) public class MessageAuthenticationTest extends EmbeddedBrokerTestSupport { private Connection connection; diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/broker/policy/AbortSlowAckConsumer0Test.java b/activemq-unit-tests/src/test/java/org/apache/activemq/broker/policy/AbortSlowAckConsumer0Test.java index f80dddb6a5f..c59f46c6fff 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/broker/policy/AbortSlowAckConsumer0Test.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/broker/policy/AbortSlowAckConsumer0Test.java @@ -37,8 +37,11 @@ import org.junit.Test; import org.junit.runner.RunWith; import org.junit.runners.Parameterized; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; @RunWith(value = Parameterized.class) +@Category(ParallelTest.class) public class AbortSlowAckConsumer0Test extends AbortSlowConsumer0Test { protected long maxTimeSinceLastAck = 5 * 1000; diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/broker/policy/AbortSlowAckConsumer1Test.java b/activemq-unit-tests/src/test/java/org/apache/activemq/broker/policy/AbortSlowAckConsumer1Test.java index 964c9096bec..3755cade60c 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/broker/policy/AbortSlowAckConsumer1Test.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/broker/policy/AbortSlowAckConsumer1Test.java @@ -28,8 +28,11 @@ import java.util.Arrays; import java.util.Collection; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; @RunWith(value = Parameterized.class) +@Category(ParallelTest.class) public class AbortSlowAckConsumer1Test extends AbortSlowConsumer1Test { protected long maxTimeSinceLastAck = 5 * 1000; diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/broker/policy/AbortSlowAckConsumer2Test.java b/activemq-unit-tests/src/test/java/org/apache/activemq/broker/policy/AbortSlowAckConsumer2Test.java index d810dcee010..5585921fcce 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/broker/policy/AbortSlowAckConsumer2Test.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/broker/policy/AbortSlowAckConsumer2Test.java @@ -28,8 +28,11 @@ import java.util.Arrays; import java.util.Collection; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; @RunWith(value = Parameterized.class) +@Category(ParallelTest.class) public class AbortSlowAckConsumer2Test extends AbortSlowConsumer2Test { protected long maxTimeSinceLastAck = 5 * 1000; diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/broker/policy/ClientIdFilterDispatchPolicyTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/broker/policy/ClientIdFilterDispatchPolicyTest.java index 0e80d0de149..8580c8b358b 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/broker/policy/ClientIdFilterDispatchPolicyTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/broker/policy/ClientIdFilterDispatchPolicyTest.java @@ -1,137 +1,140 @@ -/** - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - *

- * http://www.apache.org/licenses/LICENSE-2.0 - *

- * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package org.apache.activemq.broker.policy; - -import org.apache.activemq.ActiveMQConnectionFactory; -import org.apache.activemq.broker.BrokerFactory; -import org.apache.activemq.broker.BrokerService; -import org.apache.activemq.broker.region.policy.*; -import org.apache.activemq.command.ActiveMQTopic; -import org.junit.Test; -import org.junit.runner.RunWith; -import org.junit.runners.BlockJUnit4ClassRunner; - -import jakarta.jms.*; -import java.net.URI; - -import static org.junit.Assert.assertEquals; - -@RunWith(BlockJUnit4ClassRunner.class) -public class ClientIdFilterDispatchPolicyTest { - - @Test - public void testClientIdFilter() throws Exception { - BrokerService broker = BrokerFactory.createBroker(new URI("broker://()/localhost?persistent=false&useJmx=true"));; - - PolicyEntry policy = new PolicyEntry(); - policy.setDispatchPolicy(new ClientIdFilterDispatchPolicy()); - //policy.setSubscriptionRecoveryPolicy(new FixedCountSubscriptionRecoveryPolicy()); - PolicyMap pMap = new PolicyMap(); - pMap.setDefaultEntry(policy); - broker.setDestinationPolicy(pMap); - broker.start(); - - // test dispacth - String topic = "test"+ClientIdFilterDispatchPolicy.PTP_SUFFIX; - long timeout = 5000L; - final Result r = new Result(); - - ActiveMQConnectionFactory cf = new ActiveMQConnectionFactory("vm://localhost"); - // 1.consumer1 - Connection connection1 = cf.createConnection(); - connection1.setClientID("test1"); - connection1.start(); - Session session1 = connection1.createSession(false, Session.AUTO_ACKNOWLEDGE); - MessageConsumer consumer1 = session1.createConsumer(new ActiveMQTopic(topic)); - consumer1.setMessageListener( - new MessageListener() { - @Override - public void onMessage(Message message) { - try { - System.out.println(message.getStringProperty(ClientIdFilterDispatchPolicy.PTP_CLIENTID)); - String clientId = message.getStringProperty(ClientIdFilterDispatchPolicy.PTP_CLIENTID); - //assertEquals("test1", clientId); - r.test1 = clientId; - r.count++; - } catch (JMSException e) { - e.printStackTrace(); - } - } - } - ); - - // 2.consumer2 - Connection connection2 = cf.createConnection(); - connection2.setClientID("test2"); - connection2.start(); - Session session2 = connection2.createSession(false, Session.AUTO_ACKNOWLEDGE); - MessageConsumer consumer2 = session2.createConsumer(new ActiveMQTopic(topic)); - consumer2.setMessageListener( - new MessageListener() { - @Override - public void onMessage(Message message) { - try { - System.out.println(message.getStringProperty(ClientIdFilterDispatchPolicy.PTP_CLIENTID)); - String clientId = message.getStringProperty(ClientIdFilterDispatchPolicy.PTP_CLIENTID); - //assertEquals("test2", clientId); - r.test2 = clientId; - r.count++; - } catch (JMSException e) { - e.printStackTrace(); - } - } - } - ); - - // 3.producer - Message m1 = session1.createTextMessage("test1"); - m1.setStringProperty(ClientIdFilterDispatchPolicy.PTP_CLIENTID, "test1"); - Message m2 = session1.createTextMessage("test2"); - m2.setStringProperty(ClientIdFilterDispatchPolicy.PTP_CLIENTID, "test2"); - Message m3 = session1.createTextMessage("test3"); - m3.setStringProperty(ClientIdFilterDispatchPolicy.PTP_CLIENTID, "test3"); - - MessageProducer producer = session1.createProducer(new ActiveMQTopic(topic)); - producer.send(m1); - producer.send(m2); - producer.send(m3); - - long time = 0L; - - while( r.count < 2 && time < timeout) { - time += 50L; - Thread.sleep(50L); - } - System.out.println(time); - assertEquals(2,r.count); - assertEquals("test1",r.test1); - assertEquals("test2",r.test2); - - producer.close(); - session1.close(); - connection1.stop(); - session2.close();; - connection2.close(); - broker.stop(); - } - - public static class Result{ - int count; - public String test1; - public String test2; - } -} +/** + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + *

+ * http://www.apache.org/licenses/LICENSE-2.0 + *

+ * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.apache.activemq.broker.policy; + +import org.apache.activemq.ActiveMQConnectionFactory; +import org.apache.activemq.broker.BrokerFactory; +import org.apache.activemq.broker.BrokerService; +import org.apache.activemq.broker.region.policy.*; +import org.apache.activemq.command.ActiveMQTopic; +import org.junit.Test; +import org.junit.runner.RunWith; +import org.junit.runners.BlockJUnit4ClassRunner; + +import jakarta.jms.*; +import java.net.URI; + +import static org.junit.Assert.assertEquals; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; + +@RunWith(BlockJUnit4ClassRunner.class) +@Category(ParallelTest.class) +public class ClientIdFilterDispatchPolicyTest { + + @Test + public void testClientIdFilter() throws Exception { + BrokerService broker = BrokerFactory.createBroker(new URI("broker://()/localhost?persistent=false&useJmx=true"));; + + PolicyEntry policy = new PolicyEntry(); + policy.setDispatchPolicy(new ClientIdFilterDispatchPolicy()); + //policy.setSubscriptionRecoveryPolicy(new FixedCountSubscriptionRecoveryPolicy()); + PolicyMap pMap = new PolicyMap(); + pMap.setDefaultEntry(policy); + broker.setDestinationPolicy(pMap); + broker.start(); + + // test dispacth + String topic = "test"+ClientIdFilterDispatchPolicy.PTP_SUFFIX; + long timeout = 5000L; + final Result r = new Result(); + + ActiveMQConnectionFactory cf = new ActiveMQConnectionFactory("vm://localhost"); + // 1.consumer1 + Connection connection1 = cf.createConnection(); + connection1.setClientID("test1"); + connection1.start(); + Session session1 = connection1.createSession(false, Session.AUTO_ACKNOWLEDGE); + MessageConsumer consumer1 = session1.createConsumer(new ActiveMQTopic(topic)); + consumer1.setMessageListener( + new MessageListener() { + @Override + public void onMessage(Message message) { + try { + System.out.println(message.getStringProperty(ClientIdFilterDispatchPolicy.PTP_CLIENTID)); + String clientId = message.getStringProperty(ClientIdFilterDispatchPolicy.PTP_CLIENTID); + //assertEquals("test1", clientId); + r.test1 = clientId; + r.count++; + } catch (JMSException e) { + e.printStackTrace(); + } + } + } + ); + + // 2.consumer2 + Connection connection2 = cf.createConnection(); + connection2.setClientID("test2"); + connection2.start(); + Session session2 = connection2.createSession(false, Session.AUTO_ACKNOWLEDGE); + MessageConsumer consumer2 = session2.createConsumer(new ActiveMQTopic(topic)); + consumer2.setMessageListener( + new MessageListener() { + @Override + public void onMessage(Message message) { + try { + System.out.println(message.getStringProperty(ClientIdFilterDispatchPolicy.PTP_CLIENTID)); + String clientId = message.getStringProperty(ClientIdFilterDispatchPolicy.PTP_CLIENTID); + //assertEquals("test2", clientId); + r.test2 = clientId; + r.count++; + } catch (JMSException e) { + e.printStackTrace(); + } + } + } + ); + + // 3.producer + Message m1 = session1.createTextMessage("test1"); + m1.setStringProperty(ClientIdFilterDispatchPolicy.PTP_CLIENTID, "test1"); + Message m2 = session1.createTextMessage("test2"); + m2.setStringProperty(ClientIdFilterDispatchPolicy.PTP_CLIENTID, "test2"); + Message m3 = session1.createTextMessage("test3"); + m3.setStringProperty(ClientIdFilterDispatchPolicy.PTP_CLIENTID, "test3"); + + MessageProducer producer = session1.createProducer(new ActiveMQTopic(topic)); + producer.send(m1); + producer.send(m2); + producer.send(m3); + + long time = 0L; + + while( r.count < 2 && time < timeout) { + time += 50L; + Thread.sleep(50L); + } + System.out.println(time); + assertEquals(2,r.count); + assertEquals("test1",r.test1); + assertEquals("test2",r.test2); + + producer.close(); + session1.close(); + connection1.stop(); + session2.close();; + connection2.close(); + broker.stop(); + } + + public static class Result{ + int count; + public String test1; + public String test2; + } +} diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/broker/policy/DeadLetterExpiryTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/broker/policy/DeadLetterExpiryTest.java index 69f9929d8c9..80a3f403f7e 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/broker/policy/DeadLetterExpiryTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/broker/policy/DeadLetterExpiryTest.java @@ -37,7 +37,10 @@ import org.slf4j.LoggerFactory; import java.util.concurrent.TimeUnit; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; +@Category(ParallelTest.class) public class DeadLetterExpiryTest extends DeadLetterTest { private static final Logger LOG = LoggerFactory.getLogger(DeadLetterExpiryTest.class); diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/broker/policy/DestinationCursorConfigTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/broker/policy/DestinationCursorConfigTest.java index a5f7984b382..efb79a498b1 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/broker/policy/DestinationCursorConfigTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/broker/policy/DestinationCursorConfigTest.java @@ -26,10 +26,13 @@ import org.apache.activemq.command.ActiveMQDestination; import org.apache.activemq.xbean.BrokerFactoryBean; import org.springframework.core.io.ClassPathResource; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * */ +@Category(ParallelTest.class) public class DestinationCursorConfigTest extends TestSupport { protected BrokerService broker; diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/broker/policy/DestinationWildcardTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/broker/policy/DestinationWildcardTest.java index 0f984ac669d..600c38d0ab7 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/broker/policy/DestinationWildcardTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/broker/policy/DestinationWildcardTest.java @@ -35,8 +35,11 @@ import org.slf4j.Logger; import org.slf4j.LoggerFactory; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; +@Category(ParallelTest.class) public class DestinationWildcardTest { protected final static String DESTNAME="DomainA.DomainB.TestMeA.TestMeB.Prioritised.Queue"; protected final static int QUEUE_LIMIT = 5000000; diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/broker/policy/DiscardingDeadLetterPolicyTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/broker/policy/DiscardingDeadLetterPolicyTest.java index 26b0103c591..9da2688ec0e 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/broker/policy/DiscardingDeadLetterPolicyTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/broker/policy/DiscardingDeadLetterPolicyTest.java @@ -26,10 +26,13 @@ import org.apache.activemq.broker.region.policy.PolicyMap; import org.slf4j.Logger; import org.slf4j.LoggerFactory; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * */ +@Category(ParallelTest.class) public class DiscardingDeadLetterPolicyTest extends DeadLetterTest { private static final Logger LOG = LoggerFactory.getLogger(DiscardingDeadLetterPolicyTest.class); diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/broker/policy/IndividualDeadLetterTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/broker/policy/IndividualDeadLetterTest.java index e2a9c3ad228..db5048dfd07 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/broker/policy/IndividualDeadLetterTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/broker/policy/IndividualDeadLetterTest.java @@ -43,7 +43,10 @@ import org.apache.activemq.util.Wait; import org.slf4j.Logger; import org.slf4j.LoggerFactory; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; +@Category(ParallelTest.class) public class IndividualDeadLetterTest extends DeadLetterTest { private static final Logger LOG = LoggerFactory.getLogger(IndividualDeadLetterTest.class); diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/broker/policy/IndividualDeadLetterViaXmlTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/broker/policy/IndividualDeadLetterViaXmlTest.java index a92400a146f..6d3fc8ea817 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/broker/policy/IndividualDeadLetterViaXmlTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/broker/policy/IndividualDeadLetterViaXmlTest.java @@ -24,11 +24,14 @@ import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.core.io.ClassPathResource; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * * */ +@Category(ParallelTest.class) public class IndividualDeadLetterViaXmlTest extends DeadLetterTest { private static final Logger LOG = LoggerFactory.getLogger(IndividualDeadLetterViaXmlTest.class); diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/broker/policy/MessageGroupConfigTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/broker/policy/MessageGroupConfigTest.java index 112cc463db0..7313653bee9 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/broker/policy/MessageGroupConfigTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/broker/policy/MessageGroupConfigTest.java @@ -26,10 +26,13 @@ import org.apache.activemq.broker.region.policy.PolicyEntry; import org.apache.activemq.broker.region.policy.PolicyMap; import org.apache.activemq.command.ActiveMQDestination; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * */ +@Category(ParallelTest.class) public class MessageGroupConfigTest extends TestSupport { protected BrokerService broker; diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/broker/policy/MessageListenerDeadLetterTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/broker/policy/MessageListenerDeadLetterTest.java index a528a722fd1..927af71ce04 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/broker/policy/MessageListenerDeadLetterTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/broker/policy/MessageListenerDeadLetterTest.java @@ -30,7 +30,10 @@ import org.apache.activemq.command.ActiveMQQueue; import org.slf4j.Logger; import org.slf4j.LoggerFactory; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; +@Category(ParallelTest.class) public class MessageListenerDeadLetterTest extends DeadLetterTestSupport { private static final Logger LOG = LoggerFactory .getLogger(MessageListenerDeadLetterTest.class); diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/broker/policy/NoConsumerDeadLetterTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/broker/policy/NoConsumerDeadLetterTest.java index e168a8c9f33..c9ed1c03f8d 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/broker/policy/NoConsumerDeadLetterTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/broker/policy/NoConsumerDeadLetterTest.java @@ -32,10 +32,13 @@ import org.apache.activemq.broker.region.policy.PolicyEntry; import org.apache.activemq.broker.region.policy.PolicyMap; import org.apache.activemq.command.ActiveMQDestination; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * */ +@Category(ParallelTest.class) public class NoConsumerDeadLetterTest extends DeadLetterTestSupport { // lets disable the inapplicable tests diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/broker/policy/NoRetryDeadLetterTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/broker/policy/NoRetryDeadLetterTest.java index a14df74b7df..0e0a943b128 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/broker/policy/NoRetryDeadLetterTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/broker/policy/NoRetryDeadLetterTest.java @@ -18,7 +18,10 @@ import org.apache.activemq.ActiveMQConnectionFactory; import org.apache.activemq.RedeliveryPolicy; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; +@Category(ParallelTest.class) public class NoRetryDeadLetterTest extends DeadLetterTest { @Override diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/broker/policy/PerDurableConsumerDeadLetterTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/broker/policy/PerDurableConsumerDeadLetterTest.java index ce1485818fe..5a60e295340 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/broker/policy/PerDurableConsumerDeadLetterTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/broker/policy/PerDurableConsumerDeadLetterTest.java @@ -23,12 +23,15 @@ import org.apache.activemq.broker.region.policy.PolicyEntry; import org.apache.activemq.broker.region.policy.PolicyMap; import org.apache.activemq.command.ActiveMQQueue; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * for durable subs, allow a dlq per subscriber such that poison messages are not duplicates * on the dlq and such that rejecting consumers can be identified * https://issues.apache.org/jira/browse/AMQ-3003 */ +@Category(ParallelTest.class) public class PerDurableConsumerDeadLetterTest extends DeadLetterTest { private static final String CLIENT_ID = "george"; diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/broker/policy/PriorityNetworkDispatchPolicyTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/broker/policy/PriorityNetworkDispatchPolicyTest.java index 448f47c349e..e39ad15a53a 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/broker/policy/PriorityNetworkDispatchPolicyTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/broker/policy/PriorityNetworkDispatchPolicyTest.java @@ -35,7 +35,10 @@ import org.junit.After; import org.junit.Before; import org.junit.Test; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; +@Category(ParallelTest.class) public class PriorityNetworkDispatchPolicyTest { PriorityNetworkDispatchPolicy underTest = new PriorityNetworkDispatchPolicy(); diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/broker/policy/RoundRobinDispatchPolicyTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/broker/policy/RoundRobinDispatchPolicyTest.java index 91b022d95d7..0647163e2e1 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/broker/policy/RoundRobinDispatchPolicyTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/broker/policy/RoundRobinDispatchPolicyTest.java @@ -29,8 +29,11 @@ import jakarta.jms.Destination; import jakarta.jms.MessageConsumer; import jakarta.jms.Session; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; @RunWith(BlockJUnit4ClassRunner.class) +@Category(ParallelTest.class) public class RoundRobinDispatchPolicyTest extends QueueSubscriptionTest { protected BrokerService createBroker() throws Exception { diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/broker/policy/SecureDLQTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/broker/policy/SecureDLQTest.java index 2ef59938e4b..f10682944e0 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/broker/policy/SecureDLQTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/broker/policy/SecureDLQTest.java @@ -26,7 +26,10 @@ import jakarta.jms.*; import static org.apache.activemq.security.SimpleSecurityBrokerSystemTest.*; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; +@Category(ParallelTest.class) public class SecureDLQTest extends DeadLetterTestSupport { Connection dlqConnection; diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/broker/policy/SendDuplicateFromStoreToDLQTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/broker/policy/SendDuplicateFromStoreToDLQTest.java index 14b2b22e966..06c2bc2f605 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/broker/policy/SendDuplicateFromStoreToDLQTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/broker/policy/SendDuplicateFromStoreToDLQTest.java @@ -20,6 +20,8 @@ import static org.junit.Assert.assertNotNull; import java.io.File; +import java.nio.file.Files; +import java.nio.file.Path; import java.util.Arrays; import java.util.Collection; import java.util.List; @@ -40,6 +42,10 @@ import org.apache.activemq.broker.region.policy.PolicyMap; import org.apache.activemq.command.ActiveMQQueue; import org.apache.activemq.store.kahadb.KahaDBPersistenceAdapter; +import org.apache.activemq.util.IOHelper; +import org.apache.activemq.util.Wait; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; import org.junit.After; import org.junit.Before; import org.junit.Test; @@ -53,6 +59,7 @@ */ @RunWith(value = Parameterized.class) public class SendDuplicateFromStoreToDLQTest { + private static final Logger LOG = LoggerFactory.getLogger(SendDuplicateFromStoreToDLQTest.class); @Parameterized.Parameters(name="sendDupToDLQ={1},cacheEnable={2},auditEnabled={3},optimizedDispatch={4}") public static Collection data() { @@ -101,7 +108,8 @@ public SendDuplicateFromStoreToDLQTest(String testName, Boolean sendDuplicateFro public void setUp() throws Exception { broker = new BrokerService(); - File testDataDir = new File("target/activemq-data/AMQ-8397"); + File testDataDir = Files.createTempDirectory(new File(IOHelper.getDefaultDataDirectory()).toPath(), "AMQ-8397-").toFile(); + testDataDir.deleteOnExit(); broker.setDataDirectoryFile(testDataDir); broker.setUseJmx(true); broker.setDeleteAllMessagesOnStartup(true); @@ -159,10 +167,28 @@ protected void doProcessSendDuplicateFromStoreToDLQ(boolean sendExpected) throws List queueSubscriptions = queue.getConsumers(); assertNotNull(queueSubscriptions); assertEquals(Integer.valueOf(1), Integer.valueOf(queueSubscriptions.size())); + + // Auto-ack is async; give the broker a moment to update stats before we act on the message. + boolean drained = Wait.waitFor(() -> queue.getDestinationStatistics().getMessages().getCount() == 0, 2000, 100); + LOG.info("Pre-duplicate stats: queueMsgCount={}, queueDupFromStoreCount={}, drained={}", + queue.getDestinationStatistics().getMessages().getCount(), + queue.getDestinationStatistics().getDuplicateFromStore().getCount(), + drained); + assertEquals("queue should be empty before duplicateFromStore", 0, + queue.getDestinationStatistics().getMessages().getCount()); + queue.duplicateFromStore((org.apache.activemq.command.Message) recvMessage, queueSubscriptions.get(0)); org.apache.activemq.broker.region.Queue dlq = (org.apache.activemq.broker.region.Queue)broker.getDestination(new ActiveMQQueue("ActiveMQ.DLQ.Queue.AMQ.8397")); + LOG.info("sendExpected={}, queue.sendDupToDLQ={}, queueMsgCount={}, queueDupFromStoreCount={}, dlqMsgCount={}, dlqDupFromStoreCount={}", + sendExpected, + queue.isSendDuplicateFromStoreToDLQ(), + queue.getDestinationStatistics().getMessages().getCount(), + queue.getDestinationStatistics().getDuplicateFromStore().getCount(), + dlq.getDestinationStatistics().getMessages().getCount(), + dlq.getDestinationStatistics().getDuplicateFromStore().getCount()); + if(sendExpected) { assertEquals(Long.valueOf(0l), Long.valueOf(queue.getDestinationStatistics().getMessages().getCount())); assertEquals(Long.valueOf(1l), Long.valueOf(queue.getDestinationStatistics().getDuplicateFromStore().getCount())); diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/broker/policy/SimpleDispatchPolicyTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/broker/policy/SimpleDispatchPolicyTest.java index c4f327020e3..27ef0ccd271 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/broker/policy/SimpleDispatchPolicyTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/broker/policy/SimpleDispatchPolicyTest.java @@ -32,8 +32,11 @@ import static org.junit.Assert.assertEquals; import static org.junit.Assert.fail; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; @RunWith(BlockJUnit4ClassRunner.class) +@Category(ParallelTest.class) public class SimpleDispatchPolicyTest extends QueueSubscriptionTest { @Override diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/broker/policy/StrictOrderDispatchPolicyTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/broker/policy/StrictOrderDispatchPolicyTest.java index bddefed4c3c..8cb76609b8c 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/broker/policy/StrictOrderDispatchPolicyTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/broker/policy/StrictOrderDispatchPolicyTest.java @@ -31,8 +31,11 @@ import org.junit.runners.BlockJUnit4ClassRunner; import static org.junit.Assert.*; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; @RunWith(BlockJUnit4ClassRunner.class) +@Category(ParallelTest.class) public class StrictOrderDispatchPolicyTest extends TopicSubscriptionTest { @Override diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/broker/region/DestinationGCTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/broker/region/DestinationGCTest.java index b728dba70b8..f57c9c8feee 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/broker/region/DestinationGCTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/broker/region/DestinationGCTest.java @@ -40,7 +40,10 @@ import org.junit.Test; import org.slf4j.Logger; import org.slf4j.LoggerFactory; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; +@Category(ParallelTest.class) public class DestinationGCTest { protected static final Logger logger = LoggerFactory.getLogger(DestinationGCTest.class); diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/broker/region/QueuePurgeTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/broker/region/QueuePurgeTest.java index 1eee719b045..e474034a210 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/broker/region/QueuePurgeTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/broker/region/QueuePurgeTest.java @@ -49,6 +49,8 @@ import org.slf4j.Logger; import org.slf4j.LoggerFactory; + + public class QueuePurgeTest extends CombinationTestSupport { private static final Logger LOG = LoggerFactory.getLogger(QueuePurgeTest.class); private static final int NUM_TO_SEND = 20000; diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/broker/region/UniquePropertyMessageEvictionStrategyTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/broker/region/UniquePropertyMessageEvictionStrategyTest.java index b0b9bf346e3..22b6aea7539 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/broker/region/UniquePropertyMessageEvictionStrategyTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/broker/region/UniquePropertyMessageEvictionStrategyTest.java @@ -29,7 +29,10 @@ import jakarta.jms.*; import java.util.ArrayList; import java.util.List; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; +@Category(ParallelTest.class) public class UniquePropertyMessageEvictionStrategyTest extends EmbeddedBrokerTestSupport { @Override diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/broker/region/cursors/NegativeQueueTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/broker/region/cursors/NegativeQueueTest.java index 1cace9dd207..0e376d5f466 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/broker/region/cursors/NegativeQueueTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/broker/region/cursors/NegativeQueueTest.java @@ -52,6 +52,8 @@ import org.apache.activemq.util.Wait; import org.slf4j.Logger; import org.slf4j.LoggerFactory; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * Modified CursorSupport Unit test to reproduce the negative queue issue. @@ -76,6 +78,7 @@ * 2) transacted * */ +@Category(ParallelTest.class) public class NegativeQueueTest extends AutoFailTestSupport { private static final Logger LOG = LoggerFactory.getLogger(NegativeQueueTest.class); diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/broker/region/group/MessageGroupTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/broker/region/group/MessageGroupTest.java index 704144b8d1f..d1f98f27401 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/broker/region/group/MessageGroupTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/broker/region/group/MessageGroupTest.java @@ -30,6 +30,8 @@ import org.slf4j.Logger; import org.slf4j.LoggerFactory; + + public class MessageGroupTest extends JmsTestSupport { private static final Logger LOG = LoggerFactory.getLogger(CombinationTestSupport.class); diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/broker/scheduler/JmsSchedulerTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/broker/scheduler/JmsSchedulerTest.java index 773713d7d5f..5ea54615652 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/broker/scheduler/JmsSchedulerTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/broker/scheduler/JmsSchedulerTest.java @@ -16,14 +16,6 @@ */ package org.apache.activemq.broker.scheduler; -import static org.junit.Assert.assertEquals; -import static org.junit.Assert.assertNotNull; - -import java.util.List; -import java.util.concurrent.CountDownLatch; -import java.util.concurrent.TimeUnit; -import java.util.concurrent.atomic.AtomicInteger; - import jakarta.jms.Connection; import jakarta.jms.JMSException; import jakarta.jms.Message; @@ -32,7 +24,6 @@ import jakarta.jms.MessageProducer; import jakarta.jms.Session; import jakarta.jms.TextMessage; - import org.apache.activemq.ActiveMQConnectionFactory; import org.apache.activemq.ScheduledMessage; import org.apache.activemq.store.kahadb.disk.journal.Location; @@ -48,6 +39,14 @@ import org.slf4j.Logger; import org.slf4j.LoggerFactory; +import java.util.List; +import java.util.concurrent.CountDownLatch; +import java.util.concurrent.TimeUnit; +import java.util.concurrent.atomic.AtomicInteger; + +import static org.junit.Assert.assertEquals; +import static org.junit.Assert.assertNotNull; + public class JmsSchedulerTest extends JobSchedulerTestSupport { private static final Logger LOG = LoggerFactory.getLogger(JmsSchedulerTest.class); diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/broker/store/DefaultStoreBrokerTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/broker/store/DefaultStoreBrokerTest.java index 1e9633af227..bd34dcd1249 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/broker/store/DefaultStoreBrokerTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/broker/store/DefaultStoreBrokerTest.java @@ -23,13 +23,15 @@ import org.apache.activemq.broker.BrokerFactory; import org.apache.activemq.broker.BrokerService; import org.apache.activemq.broker.BrokerTest; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * Once the wire format is completed we can test against real persistence storage. * * */ -public class DefaultStoreBrokerTest extends BrokerTest { +@Category(ParallelTest.class)public class DefaultStoreBrokerTest extends BrokerTest { protected BrokerService createBroker() throws Exception { return BrokerFactory.createBroker(new URI("broker://()/localhost?deleteAllMessagesOnStartup=true")); diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/broker/store/DefaultStoreRecoveryBrokerTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/broker/store/DefaultStoreRecoveryBrokerTest.java index e89ca04a244..17cd441b20a 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/broker/store/DefaultStoreRecoveryBrokerTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/broker/store/DefaultStoreRecoveryBrokerTest.java @@ -23,12 +23,15 @@ import org.apache.activemq.broker.BrokerFactory; import org.apache.activemq.broker.BrokerService; import org.apache.activemq.broker.RecoveryBrokerTest; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * Used to verify that recovery works correctly against * * */ +@Category(ParallelTest.class) public class DefaultStoreRecoveryBrokerTest extends RecoveryBrokerTest { protected BrokerService createBroker() throws Exception { diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/broker/store/RecoverExpiredMessagesTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/broker/store/RecoverExpiredMessagesTest.java index ab8858a6cdc..c1198378e79 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/broker/store/RecoverExpiredMessagesTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/broker/store/RecoverExpiredMessagesTest.java @@ -33,10 +33,13 @@ import org.apache.activemq.command.MessageAck; import org.apache.activemq.command.ProducerInfo; import org.apache.activemq.command.SessionInfo; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; import java.util.ArrayList; import java.util.concurrent.TimeUnit; +@Category(ParallelTest.class) public class RecoverExpiredMessagesTest extends BrokerRestartTestSupport { final ArrayList expected = new ArrayList(); final ActiveMQDestination destination = new ActiveMQQueue("TEST"); diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/broker/util/TimeStampingBrokerPluginTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/broker/util/TimeStampingBrokerPluginTest.java index dda35503483..e3372901964 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/broker/util/TimeStampingBrokerPluginTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/broker/util/TimeStampingBrokerPluginTest.java @@ -35,7 +35,10 @@ import org.junit.After; import org.junit.Before; import org.junit.Test; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; +@Category(ParallelTest.class) public class TimeStampingBrokerPluginTest extends TestCase { BrokerService broker; diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/broker/util/TraceBrokerPathPluginTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/broker/util/TraceBrokerPathPluginTest.java index dae3c8f4450..55d268e4bcf 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/broker/util/TraceBrokerPathPluginTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/broker/util/TraceBrokerPathPluginTest.java @@ -33,12 +33,15 @@ import org.junit.After; import org.junit.Before; import org.junit.Test; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * Tests TraceBrokerPathPlugin by creating two brokers linked by a network connector, and checking to see if the consuming end receives the expected value in the trace property * @author Raul Kripalani * */ +@Category(ParallelTest.class) public class TraceBrokerPathPluginTest extends TestCase { BrokerService brokerA; diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/broker/virtual/AMQ7088Test.java b/activemq-unit-tests/src/test/java/org/apache/activemq/broker/virtual/AMQ7088Test.java index f380d612c3a..76abfa9b097 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/broker/virtual/AMQ7088Test.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/broker/virtual/AMQ7088Test.java @@ -38,7 +38,10 @@ import java.util.concurrent.atomic.AtomicInteger; import static org.junit.Assert.assertTrue; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; +@Category(ParallelTest.class) public class AMQ7088Test { private static final Logger LOG = LoggerFactory.getLogger(AMQ7088Test.class); diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/broker/virtual/CompositeDestinationSendWhenNotMatchedTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/broker/virtual/CompositeDestinationSendWhenNotMatchedTest.java index 8c85c0d42c1..312dfb5f73f 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/broker/virtual/CompositeDestinationSendWhenNotMatchedTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/broker/virtual/CompositeDestinationSendWhenNotMatchedTest.java @@ -38,7 +38,10 @@ import org.junit.Test; import org.slf4j.Logger; import org.slf4j.LoggerFactory; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; +@Category(ParallelTest.class) public class CompositeDestinationSendWhenNotMatchedTest extends EmbeddedBrokerTestSupport { private static final Logger LOG = LoggerFactory.getLogger(CompositeQueueTest.class); diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/broker/virtual/CompositeQueueTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/broker/virtual/CompositeQueueTest.java index 1ebcbb40510..d49b98b63ba 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/broker/virtual/CompositeQueueTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/broker/virtual/CompositeQueueTest.java @@ -37,11 +37,14 @@ import org.junit.Test; import org.slf4j.Logger; import org.slf4j.LoggerFactory; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * * */ +@Category(ParallelTest.class) public class CompositeQueueTest extends EmbeddedBrokerTestSupport { private static final Logger LOG = LoggerFactory.getLogger(CompositeQueueTest.class); diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/broker/virtual/CustomVirtualTopicInterceptorTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/broker/virtual/CustomVirtualTopicInterceptorTest.java index 28ba62e7186..47cbc64f117 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/broker/virtual/CustomVirtualTopicInterceptorTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/broker/virtual/CustomVirtualTopicInterceptorTest.java @@ -33,9 +33,12 @@ import org.apache.activemq.command.ActiveMQTopic; import org.slf4j.Logger; import org.slf4j.LoggerFactory; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * Test for ticket AMQ-6058, shouldDispatch prefix check */ +@Category(ParallelTest.class) public class CustomVirtualTopicInterceptorTest extends EmbeddedBrokerTestSupport{ private static final Logger LOG = LoggerFactory.getLogger(CustomVirtualTopicInterceptorTest.class); diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/broker/virtual/CustomVirtualTopicInterceptorWithLeadingWildcardTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/broker/virtual/CustomVirtualTopicInterceptorWithLeadingWildcardTest.java index 0f736343817..50281bf207f 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/broker/virtual/CustomVirtualTopicInterceptorWithLeadingWildcardTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/broker/virtual/CustomVirtualTopicInterceptorWithLeadingWildcardTest.java @@ -33,9 +33,12 @@ import org.apache.activemq.command.ActiveMQTopic; import org.slf4j.Logger; import org.slf4j.LoggerFactory; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * Test for ticket AMQ-6310, leading wildcards no longer match after AMQ-6058 */ +@Category(ParallelTest.class) public class CustomVirtualTopicInterceptorWithLeadingWildcardTest extends EmbeddedBrokerTestSupport{ private static final Logger LOG = LoggerFactory.getLogger(CustomVirtualTopicInterceptorWithLeadingWildcardTest.class); diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/broker/virtual/MirroredQueueCorrectMemoryUsageTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/broker/virtual/MirroredQueueCorrectMemoryUsageTest.java index 56e9ce969de..bebfddddac2 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/broker/virtual/MirroredQueueCorrectMemoryUsageTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/broker/virtual/MirroredQueueCorrectMemoryUsageTest.java @@ -45,6 +45,8 @@ import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.util.Assert; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * This test will determine that the producer flow control does not kick in. @@ -59,6 +61,7 @@ * * @author Claudio Corsi */ +@Category(ParallelTest.class) public class MirroredQueueCorrectMemoryUsageTest extends EmbeddedBrokerTestSupport { private static final Logger logger = LoggerFactory.getLogger(MirroredQueueCorrectMemoryUsageTest.class); diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/broker/virtual/MirroredQueueTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/broker/virtual/MirroredQueueTest.java index 8f418c6cadd..3c5ee569ae9 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/broker/virtual/MirroredQueueTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/broker/virtual/MirroredQueueTest.java @@ -31,10 +31,13 @@ import org.apache.activemq.spring.ConsumerBean; import org.slf4j.Logger; import org.slf4j.LoggerFactory; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * */ +@Category(ParallelTest.class) public class MirroredQueueTest extends EmbeddedBrokerTestSupport { private static final transient Logger LOG = LoggerFactory.getLogger(MirroredQueueTest.class); private Connection connection; diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/broker/virtual/VirtualTopicConcurrentSendDeleteTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/broker/virtual/VirtualTopicConcurrentSendDeleteTest.java index 70709519fb6..f7048aaaa6a 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/broker/virtual/VirtualTopicConcurrentSendDeleteTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/broker/virtual/VirtualTopicConcurrentSendDeleteTest.java @@ -42,7 +42,10 @@ import java.util.concurrent.TimeUnit; import static org.junit.Assert.assertEquals; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; +@Category(ParallelTest.class) public class VirtualTopicConcurrentSendDeleteTest { private static final Logger LOG = LoggerFactory.getLogger(VirtualTopicConcurrentSendDeleteTest.class); diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/broker/virtual/VirtualTopicDLQTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/broker/virtual/VirtualTopicDLQTest.java index af26e80b837..8c19b4b14c5 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/broker/virtual/VirtualTopicDLQTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/broker/virtual/VirtualTopicDLQTest.java @@ -46,12 +46,15 @@ import org.slf4j.LoggerFactory; import junit.framework.TestCase; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * Unit test for virtual topics and DLQ messaging. See individual test for more * detail * */ +@Category(ParallelTest.class) public class VirtualTopicDLQTest extends TestCase { private static BrokerService broker; diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/broker/virtual/VirtualTopicDestinationMapAccessTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/broker/virtual/VirtualTopicDestinationMapAccessTest.java index fd4d1d50a26..672bf13bb89 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/broker/virtual/VirtualTopicDestinationMapAccessTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/broker/virtual/VirtualTopicDestinationMapAccessTest.java @@ -37,7 +37,10 @@ import java.util.concurrent.Executors; import java.util.concurrent.TimeUnit; import java.util.concurrent.atomic.AtomicInteger; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; +@Category(ParallelTest.class) public class VirtualTopicDestinationMapAccessTest { private static final Logger LOG = LoggerFactory.getLogger(VirtualTopicDestinationMapAccessTest.class); diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/broker/virtual/VirtualTopicDisconnectSelectorTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/broker/virtual/VirtualTopicDisconnectSelectorTest.java index b0797af44c4..9be1f98a952 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/broker/virtual/VirtualTopicDisconnectSelectorTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/broker/virtual/VirtualTopicDisconnectSelectorTest.java @@ -36,11 +36,14 @@ import org.apache.activemq.xbean.XBeanBrokerFactory; import org.slf4j.Logger; import org.slf4j.LoggerFactory; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * Test case for https://issues.apache.org/jira/browse/AMQ-3004 */ +@Category(ParallelTest.class) public class VirtualTopicDisconnectSelectorTest extends EmbeddedBrokerTestSupport { private static final Logger LOG = LoggerFactory.getLogger(VirtualTopicDisconnectSelectorTest.class); diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/broker/virtual/VirtualTopicFanoutPerfTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/broker/virtual/VirtualTopicFanoutPerfTest.java index d0288ee6fbd..d8bb946b0d4 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/broker/virtual/VirtualTopicFanoutPerfTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/broker/virtual/VirtualTopicFanoutPerfTest.java @@ -36,7 +36,10 @@ import org.junit.Test; import org.slf4j.Logger; import org.slf4j.LoggerFactory; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; +@Category(ParallelTest.class) public class VirtualTopicFanoutPerfTest { private static final Logger LOG = LoggerFactory.getLogger(VirtualTopicFanoutPerfTest.class); diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/broker/virtual/VirtualTopicFlowControlDiscardTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/broker/virtual/VirtualTopicFlowControlDiscardTest.java index 5e4dde8af31..6bf3fba9285 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/broker/virtual/VirtualTopicFlowControlDiscardTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/broker/virtual/VirtualTopicFlowControlDiscardTest.java @@ -45,8 +45,11 @@ import java.util.Arrays; import static org.junit.Assert.assertTrue; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; @RunWith(Parameterized.class) +@Category(ParallelTest.class) public class VirtualTopicFlowControlDiscardTest { private static final Logger LOG = LoggerFactory.getLogger(VirtualTopicFlowControlDiscardTest.class); diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/broker/virtual/VirtualTopicPubSubTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/broker/virtual/VirtualTopicPubSubTest.java index 2aa972840c3..a71b06fc0de 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/broker/virtual/VirtualTopicPubSubTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/broker/virtual/VirtualTopicPubSubTest.java @@ -31,11 +31,14 @@ import org.apache.activemq.command.ActiveMQQueue; import org.apache.activemq.command.ActiveMQTopic; import org.apache.activemq.spring.ConsumerBean; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * * */ +@Category(ParallelTest.class) public class VirtualTopicPubSubTest extends EmbeddedBrokerTestSupport { private Vector connections = new Vector(); diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ1687Test.java b/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ1687Test.java index 032f9d79089..18a9700bb19 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ1687Test.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ1687Test.java @@ -27,11 +27,14 @@ import org.apache.activemq.command.ActiveMQQueue; import org.apache.activemq.command.ActiveMQTopic; import org.apache.activemq.spring.ConsumerBean; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * * */ +@Category(ParallelTest.class) public class AMQ1687Test extends EmbeddedBrokerTestSupport { private Connection connection; diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ1853Test.java b/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ1853Test.java index 9fff88058e4..126cfa3499a 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ1853Test.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ1853Test.java @@ -47,6 +47,8 @@ import org.junit.After; import org.junit.Before; import org.junit.Test; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; import org.slf4j.Logger; import org.slf4j.LoggerFactory; @@ -55,6 +57,7 @@ * through all redeliveries, until the message is either successfully consumed * or sent to the DLQ. */ +@Category(ParallelTest.class) public class AMQ1853Test { private static BrokerService broker; diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ2149Test.java b/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ2149Test.java index 633471ce754..37b6cdeb260 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ2149Test.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ2149Test.java @@ -34,6 +34,7 @@ import org.apache.activemq.AutoFailTestSupport; import org.apache.activemq.command.ActiveMQQueue; +import org.apache.activemq.util.IOHelper; import org.junit.After; import org.junit.Before; import org.junit.Rule; @@ -114,7 +115,7 @@ protected void configurePersistenceAdapter(BrokerService brokerService) throws E @Before public void setUp() throws Exception { LOG.debug("Starting test {}", testName.getMethodName()); - dataDirFile = new File("target/"+ testName.getMethodName()); + dataDirFile = new File(IOHelper.getDefaultDataDirectory() + testName.getMethodName()); numtoSend = DEFAULT_NUM_TO_SEND; brokerStopPeriod = DEFAULT_BROKER_STOP_PERIOD; sleepBetweenSend = SLEEP_BETWEEN_SEND_MS; diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ2174Test.java b/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ2174Test.java index 899fd3a24bd..17729726088 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ2174Test.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ2174Test.java @@ -33,11 +33,14 @@ import org.junit.Before; import org.junit.Rule; import org.junit.Test; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; import org.junit.rules.TestName; /** * Test cases to investigate subscription problems */ +@Category(ParallelTest.class) public class AMQ2174Test { @Rule diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ2200Test.java b/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ2200Test.java index e360da1a9de..aff3b280ba5 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ2200Test.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ2200Test.java @@ -30,10 +30,13 @@ import org.apache.activemq.ActiveMQConnectionFactory; import org.apache.activemq.broker.BrokerService; import org.apache.activemq.broker.jmx.TopicSubscriptionViewMBean; +import org.apache.activemq.test.annotations.ParallelTest; import org.junit.After; import org.junit.Before; import org.junit.Test; +import org.junit.experimental.categories.Category; +@Category(ParallelTest.class) public class AMQ2200Test { private static final String bindAddress = "tcp://0.0.0.0:0"; @@ -43,7 +46,6 @@ public class AMQ2200Test { @Before public void setUp() throws Exception { broker = new BrokerService(); - broker.setDataDirectory("target" + File.separator + "activemq-data"); broker.setPersistent(true); broker.setUseJmx(true); broker.setAdvisorySupport(false); diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ2213Test.java b/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ2213Test.java index ba76f48ab25..ad5d410d592 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ2213Test.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ2213Test.java @@ -32,10 +32,13 @@ import org.apache.activemq.ActiveMQConnectionFactory; import org.apache.activemq.broker.BrokerService; +import org.apache.activemq.test.annotations.ParallelTest; import org.junit.After; import org.junit.Before; import org.junit.Test; +import org.junit.experimental.categories.Category; +@Category(ParallelTest.class) public class AMQ2213Test { BrokerService broker; @@ -48,7 +51,6 @@ public class AMQ2213Test public void createBroker(boolean deleteAll) throws Exception { broker = new BrokerService(); broker.setDeleteAllMessagesOnStartup(deleteAll); - broker.setDataDirectory("target/AMQ3145Test"); broker.setUseJmx(true); broker.getManagementContext().setCreateConnector(false); broker.addConnector("tcp://localhost:0"); diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ2314Test.java b/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ2314Test.java index 3de7bdb5a8d..2dcb0b77a4c 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ2314Test.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ2314Test.java @@ -34,10 +34,14 @@ import org.apache.activemq.CombinationTestSupport; import org.apache.activemq.broker.BrokerService; import org.apache.activemq.command.ActiveMQTopic; +import org.apache.activemq.test.annotations.ParallelTest; import org.apache.activemq.util.Wait; +import org.junit.experimental.categories.Category; import org.slf4j.Logger; import org.slf4j.LoggerFactory; + +@Category(ParallelTest.class) public class AMQ2314Test extends CombinationTestSupport { public boolean consumeAll = false; @@ -152,7 +156,6 @@ public void setUp() throws Exception { super.setAutoFail(true); super.setUp(); broker = new BrokerService(); - broker.setDataDirectory("target" + File.separator + "activemq-data"); broker.setPersistent(true); broker.setUseJmx(true); broker.setAdvisorySupport(false); diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ2356Test.java b/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ2356Test.java index 3aa16191414..c318249ede8 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ2356Test.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ2356Test.java @@ -59,6 +59,9 @@ To reproduce the bug (which I can do 100% of the time) I connect 5 consumers (AU The first pair usually gets through their 100 messages and disconnect, at which point all the other pairs have deadlocked at less than 30 messages each. */ +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; +@Category(ParallelTest.class) public class AMQ2356Test extends TestCase { protected static final int MESSAGE_COUNT = 1000; protected static final int NUMBER_OF_PAIRS = 10; diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ2401Test.java b/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ2401Test.java index 46eb126d1a7..6fcb11f3938 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ2401Test.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ2401Test.java @@ -16,12 +16,6 @@ */ package org.apache.activemq.bugs; -import java.io.File; -import java.util.ArrayList; -import java.util.concurrent.CountDownLatch; -import java.util.concurrent.TimeUnit; -import java.util.concurrent.TimeoutException; - import jakarta.jms.BytesMessage; import jakarta.jms.Connection; import jakarta.jms.JMSException; @@ -30,9 +24,7 @@ import jakarta.jms.MessageListener; import jakarta.jms.MessageProducer; import jakarta.jms.Session; - import junit.framework.TestCase; - import org.apache.activemq.ActiveMQConnection; import org.apache.activemq.ActiveMQConnectionFactory; import org.apache.activemq.broker.BrokerService; @@ -42,6 +34,11 @@ import org.slf4j.Logger; import org.slf4j.LoggerFactory; +import java.util.ArrayList; +import java.util.concurrent.CountDownLatch; +import java.util.concurrent.TimeUnit; +import java.util.concurrent.TimeoutException; + /** * An AMQ-2401 Test */ @@ -62,7 +59,6 @@ public class AMQ2401Test extends TestCase implements MessageListener { @Override protected void setUp() throws Exception { broker = new BrokerService(); - broker.setDataDirectory("target" + File.separator + "test-data" + File.separator + "AMQ2401Test"); broker.setDeleteAllMessagesOnStartup(true); String connectionUri = broker.addConnector("tcp://0.0.0.0:0").getPublishableConnectString(); PolicyMap policies = new PolicyMap(); diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ2413Test.java b/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ2413Test.java index be693887490..c7e950f7240 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ2413Test.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ2413Test.java @@ -48,9 +48,13 @@ import org.apache.activemq.command.MessageId; import org.apache.activemq.command.ProducerId; import org.apache.activemq.store.kahadb.KahaDBPersistenceAdapter; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; import org.slf4j.Logger; import org.slf4j.LoggerFactory; + +@Category(ParallelTest.class) public class AMQ2413Test extends CombinationTestSupport implements MessageListener { private static final Logger LOG = LoggerFactory.getLogger(AMQ2413Test.class); BrokerService broker; @@ -83,7 +87,6 @@ public void initCombos() { @Override protected void setUp() throws Exception { broker = new BrokerService(); - broker.setDataDirectory("target" + File.separator + "test-data" + File.separator + "AMQ2401Test"); broker.setDeleteAllMessagesOnStartup(true); KahaDBPersistenceAdapter kahaDb = (KahaDBPersistenceAdapter) broker.getPersistenceAdapter(); diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ2489Test.java b/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ2489Test.java index 567bd21a7fc..57a7de5fc20 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ2489Test.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ2489Test.java @@ -36,6 +36,8 @@ import org.apache.activemq.ActiveMQSession; import org.apache.activemq.TestSupport; import org.apache.activemq.command.ActiveMQQueue; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * In CLIENT_ACKNOWLEDGE and INDIVIDUAL_ACKNOWLEDGE modes following exception @@ -49,6 +51,7 @@ * * @author daroo */ +@Category(ParallelTest.class) public class AMQ2489Test extends TestSupport { private final static String SEQ_NUM_PROPERTY = "seqNum"; @@ -147,6 +150,7 @@ protected String getQueueName() { return getClass().getName() + "." + getName(); } +@Category(ParallelTest.class) public final class Consumer implements MessageListener { final Session session; diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ2512Test.java b/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ2512Test.java index be00ef27a51..ee6323f5849 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ2512Test.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ2512Test.java @@ -39,13 +39,16 @@ import org.apache.activemq.broker.BrokerService; import org.apache.activemq.store.kahadb.KahaDBStore; import org.apache.activemq.store.kahadb.disk.journal.Journal.JournalDiskSyncStrategy; +import org.apache.activemq.test.annotations.ParallelTest; import org.apache.activemq.util.IOHelper; import org.junit.After; import org.junit.Before; import org.junit.Test; +import org.junit.experimental.categories.Category; import org.slf4j.Logger; import org.slf4j.LoggerFactory; +@Category(ParallelTest.class) public class AMQ2512Test { private static final Logger LOG = LoggerFactory.getLogger(AMQ2512Test.class); @@ -190,7 +193,6 @@ protected BrokerService createBroker() throws Exception { BrokerService answer = new BrokerService(); answer.setPersistenceAdapter(kaha); - answer.setDataDirectoryFile(dataFileDir); answer.setUseJmx(false); answer.addConnector("tcp://localhost:0").setName("openwire"); diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ2528Test.java b/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ2528Test.java index 80211fc146e..a3bbd848f7e 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ2528Test.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ2528Test.java @@ -24,12 +24,15 @@ import org.apache.activemq.EmbeddedBrokerTestSupport; import org.apache.activemq.broker.region.Queue; import org.junit.Assert; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * This test demonstrates a bug in which calling * Queue#removeMatchingMessages("") generates an exception, whereas the JMS * specification states that an empty selector is valid. */ +@Category(ParallelTest.class) public class AMQ2528Test extends EmbeddedBrokerTestSupport { /** diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ2571Test.java b/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ2571Test.java index 0d08c1173f4..e307435feea 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ2571Test.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ2571Test.java @@ -27,6 +27,9 @@ import org.apache.activemq.EmbeddedBrokerTestSupport; import org.apache.activemq.broker.BrokerService; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; +@Category(ParallelTest.class) public class AMQ2571Test extends EmbeddedBrokerTestSupport { public void testTempQueueClosing() { diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ2580Test.java b/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ2580Test.java index 9d3127630f5..183b9542384 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ2580Test.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ2580Test.java @@ -34,6 +34,9 @@ import jakarta.jms.TopicConnection; import jakarta.jms.TopicSession; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; +@Category(ParallelTest.class) public class AMQ2580Test extends TestSupport { private static final Logger LOG = LoggerFactory.getLogger(AMQ2580Test.class); diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ2645Test.java b/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ2645Test.java index 8e8a62fd3fa..21ad38224c5 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ2645Test.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ2645Test.java @@ -34,7 +34,10 @@ import org.apache.activemq.EmbeddedBrokerTestSupport; import org.slf4j.Logger; import org.slf4j.LoggerFactory; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; +@Category(ParallelTest.class) public class AMQ2645Test extends EmbeddedBrokerTestSupport { private static final Logger LOG = LoggerFactory.getLogger(AMQ2645Test.class); private final static String QUEUE_NAME = "test.daroo.q"; diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ2736Test.java b/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ2736Test.java index 98dce1f7a36..d87fb9c7d17 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ2736Test.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ2736Test.java @@ -27,11 +27,14 @@ import org.apache.activemq.util.DefaultIOExceptionHandler; import org.junit.After; import org.junit.Test; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; import static org.junit.Assert.assertNotNull; import static org.junit.Assert.assertNull; +@Category(ParallelTest.class) public class AMQ2736Test { BrokerService broker; diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ2751Test.java b/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ2751Test.java index 09dd308d6fe..314f7c18218 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ2751Test.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ2751Test.java @@ -32,7 +32,10 @@ import org.apache.activemq.EmbeddedBrokerTestSupport; import org.slf4j.Logger; import org.slf4j.LoggerFactory; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; +@Category(ParallelTest.class) public class AMQ2751Test extends EmbeddedBrokerTestSupport { private static final Logger LOG = LoggerFactory.getLogger(AMQ2751Test.class); diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ2801Test.java b/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ2801Test.java index 6263f548797..8b153367535 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ2801Test.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ2801Test.java @@ -19,7 +19,6 @@ import static org.junit.Assert.*; -import java.io.File; import java.util.ArrayList; import java.util.List; @@ -41,12 +40,15 @@ import org.apache.activemq.broker.region.policy.PolicyEntry; import org.apache.activemq.broker.region.policy.PolicyMap; import org.apache.activemq.usage.SystemUsage; +import org.apache.activemq.test.annotations.ParallelTest; import org.junit.After; import org.junit.Before; import org.junit.Test; +import org.junit.experimental.categories.Category; import org.slf4j.Logger; import org.slf4j.LoggerFactory; +@Category(ParallelTest.class) public class AMQ2801Test { private static final Logger LOG = LoggerFactory.getLogger(AMQ2801Test.class); @@ -71,7 +73,6 @@ public class AMQ2801Test @Before public void setUp() throws Exception { broker = new BrokerService(); - broker.setDataDirectory("target" + File.separator + "activemq-data"); broker.setPersistent(true); broker.setUseJmx(true); broker.setAdvisorySupport(false); diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ3014Test.java b/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ3014Test.java index dcd5064c6c3..a95df860b74 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ3014Test.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ3014Test.java @@ -36,6 +36,8 @@ import org.junit.Assert; import org.junit.Before; import org.junit.Test; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * This test involves the creation of a local and remote broker, both of which @@ -43,6 +45,7 @@ * remote broker for the purposes of verifying that broker info is only * transfered once the local broker's ID is known to the bridge support. */ +@Category(ParallelTest.class) public class AMQ3014Test { // Change this URL to be an unused port. private static final String BROKER_URL = "tcp://localhost:0"; diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ3120Test.java b/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ3120Test.java index bee5348ed73..f2e885d66f7 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ3120Test.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ3120Test.java @@ -28,6 +28,8 @@ import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.junit.Test; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; import jakarta.jms.*; @@ -36,6 +38,7 @@ import static org.junit.Assert.assertEquals; +@Category(ParallelTest.class) public class AMQ3120Test { private static final Logger LOG = LoggerFactory.getLogger(AMQ3120Test.class); diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ3140Test.java b/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ3140Test.java index f914418542b..a0aa8cb51ef 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ3140Test.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ3140Test.java @@ -16,15 +16,6 @@ */ package org.apache.activemq.bugs; -import static org.junit.Assert.assertEquals; -import static org.junit.Assert.fail; - -import java.io.File; -import java.util.ArrayList; -import java.util.List; -import java.util.concurrent.TimeUnit; -import java.util.concurrent.atomic.AtomicLong; - import jakarta.jms.Connection; import jakarta.jms.ConnectionFactory; import jakarta.jms.JMSException; @@ -33,7 +24,6 @@ import jakarta.jms.MessageListener; import jakarta.jms.MessageProducer; import jakarta.jms.Session; - import org.apache.activemq.ActiveMQConnectionFactory; import org.apache.activemq.ScheduledMessage; import org.apache.activemq.broker.BrokerService; @@ -42,6 +32,15 @@ import org.junit.Before; import org.junit.Test; +import java.io.File; +import java.util.ArrayList; +import java.util.List; +import java.util.concurrent.TimeUnit; +import java.util.concurrent.atomic.AtomicLong; + +import static org.junit.Assert.assertEquals; +import static org.junit.Assert.fail; + public class AMQ3140Test { private static final int MESSAGES_PER_THREAD = 100; @@ -88,7 +87,6 @@ public void setup() throws Exception { broker.setSchedulerSupport(true); broker.setPersistent(true); broker.setDeleteAllMessagesOnStartup(true); - broker.setDataDirectory("target"); broker.setSchedulerDirectoryFile(schedulerDirectory); broker.setUseJmx(false); broker.addConnector("vm://localhost"); @@ -142,4 +140,4 @@ public void onMessage(Message message) { assertEquals(MESSAGES_PER_THREAD * THREAD_COUNT, receiveCounter.get()); } -} \ No newline at end of file +} diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ3141Test.java b/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ3141Test.java index 1dc82c8717b..68bf9b6fedb 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ3141Test.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ3141Test.java @@ -33,11 +33,14 @@ import org.apache.activemq.ActiveMQConnectionFactory; import org.apache.activemq.ScheduledMessage; import org.apache.activemq.broker.BrokerService; +import org.apache.activemq.test.annotations.ParallelTest; import org.apache.activemq.util.IOHelper; import org.junit.After; import org.junit.Before; import org.junit.Test; +import org.junit.experimental.categories.Category; +@Category(ParallelTest.class) public class AMQ3141Test { private static final int MAX_MESSAGES = 100; @@ -58,7 +61,6 @@ public void setup() throws Exception { broker = new BrokerService(); broker.setPersistent(true); broker.setSchedulerSupport(true); - broker.setDataDirectory("target"); broker.setUseJmx(false); broker.addConnector("vm://localhost"); diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ3145Test.java b/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ3145Test.java index 3674dbcd1df..99a6da69daf 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ3145Test.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ3145Test.java @@ -34,12 +34,15 @@ import org.apache.activemq.ActiveMQConnectionFactory; import org.apache.activemq.broker.BrokerService; import org.apache.activemq.broker.jmx.QueueViewMBean; +import org.apache.activemq.test.annotations.ParallelTest; import org.junit.After; import org.junit.Before; import org.junit.Test; +import org.junit.experimental.categories.Category; import org.slf4j.Logger; import org.slf4j.LoggerFactory; +@Category(ParallelTest.class) public class AMQ3145Test { private static final Logger LOG = LoggerFactory.getLogger(AMQ3145Test.class); private final String MESSAGE_TEXT = new String(new byte[1024]); @@ -58,7 +61,6 @@ public void createBroker() throws Exception { public void createBroker(boolean deleteAll) throws Exception { broker = new BrokerService(); broker.setDeleteAllMessagesOnStartup(deleteAll); - broker.setDataDirectory("target/AMQ3145Test"); broker.setUseJmx(true); broker.getManagementContext().setCreateConnector(false); broker.addConnector("tcp://localhost:0"); diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ3157Test.java b/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ3157Test.java index 43c97810202..ce0fccb9e8f 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ3157Test.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ3157Test.java @@ -39,7 +39,10 @@ import org.apache.activemq.spring.ConsumerBean; import org.slf4j.Logger; import org.slf4j.LoggerFactory; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; +@Category(ParallelTest.class) public class AMQ3157Test extends EmbeddedBrokerTestSupport { private static final transient Logger LOG = LoggerFactory.getLogger(AMQ3157Test.class); diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ3167Test.java b/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ3167Test.java index 15817fe3784..eaf6f0828ed 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ3167Test.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ3167Test.java @@ -35,9 +35,11 @@ import org.apache.activemq.broker.region.policy.PolicyMap; import org.apache.activemq.command.ActiveMQDestination; import org.apache.activemq.command.ActiveMQMessage; +import org.apache.activemq.test.annotations.ParallelTest; import org.junit.After; import org.junit.Before; import org.junit.Test; +import org.junit.experimental.categories.Category; /** * Test the loss of messages detected during testing with ActiveMQ 5.4.1 and 5.4.2. @@ -52,7 +54,7 @@ * (probably because memory limits not reached). - Producers sending a number of messages before consumers come online * increases rate of occurrence. */ - +@Category(ParallelTest.class) public class AMQ3167Test { protected BrokerService embeddedBroker; @@ -119,7 +121,6 @@ protected void configureBroker(BrokerService broker_svc) throws Exception { broker_svc.setUseJmx(false); broker_svc.setPersistent(true); - broker_svc.setDataDirectory("target/AMQ3167Test"); configureDestinationPolicy(broker_svc); } @@ -459,4 +460,4 @@ public String toString() { return consumerTag; } } -} \ No newline at end of file +} diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ3436Test.java b/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ3436Test.java index 4d21417e83a..3f0c20150bb 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ3436Test.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ3436Test.java @@ -41,9 +41,12 @@ import org.junit.Assert; import org.junit.Before; import org.junit.Test; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; import org.slf4j.Logger; import org.slf4j.LoggerFactory; +@Category(ParallelTest.class) public class AMQ3436Test { protected static final Logger LOG = LoggerFactory.getLogger(AMQ3436Test.class); diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ3454Test.java b/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ3454Test.java index cfa5095619f..7772f269fd7 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ3454Test.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ3454Test.java @@ -28,6 +28,9 @@ import org.slf4j.Logger; import org.slf4j.LoggerFactory; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; +@Category(ParallelTest.class) public class AMQ3454Test extends TestCase { private static final Logger LOG = LoggerFactory.getLogger(AMQ3454Test.class); diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ3465Test.java b/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ3465Test.java index 162aa3d8338..af7933fe2ed 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ3465Test.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ3465Test.java @@ -45,7 +45,10 @@ import org.junit.After; import org.junit.Before; import org.junit.Test; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; +@Category(ParallelTest.class) public class AMQ3465Test { private final String xaDestinationName = "DestinationXA"; diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ3529Test.java b/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ3529Test.java index 0bdf81657e6..362ecbd80f8 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ3529Test.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ3529Test.java @@ -38,9 +38,12 @@ import org.junit.After; import org.junit.Before; import org.junit.Test; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; import org.slf4j.Logger; import org.slf4j.LoggerFactory; +@Category(ParallelTest.class) public class AMQ3529Test { private static Logger LOG = LoggerFactory.getLogger(AMQ3529Test.class); diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ3529v2Test.java b/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ3529v2Test.java index efa1ca7c1a1..6de2b90a572 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ3529v2Test.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ3529v2Test.java @@ -38,6 +38,8 @@ import org.junit.After; import org.junit.Before; import org.junit.Test; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; import org.slf4j.Logger; import org.slf4j.LoggerFactory; @@ -46,6 +48,7 @@ import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertNotNull; +@Category(ParallelTest.class) public class AMQ3529v2Test { private static Logger LOG = LoggerFactory.getLogger(AMQ3529v2Test.class); diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ3567Test.java b/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ3567Test.java index 33293d9724d..6178618439c 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ3567Test.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ3567Test.java @@ -34,6 +34,7 @@ import org.apache.activemq.broker.BrokerService; import org.apache.activemq.broker.region.cursors.AbstractStoreCursor; import org.apache.activemq.util.DefaultTestAppender; +import org.apache.activemq.test.annotations.ParallelTest; import org.apache.logging.log4j.Level; import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.core.LogEvent; @@ -43,6 +44,7 @@ import org.apache.logging.log4j.core.layout.MessageLayout; import org.junit.Before; import org.junit.Test; +import org.junit.experimental.categories.Category; import org.slf4j.Logger; import org.slf4j.LoggerFactory; @@ -50,6 +52,7 @@ * @author Claudio Corsi * */ +@Category(ParallelTest.class) public class AMQ3567Test { private static Logger logger = LoggerFactory.getLogger(AMQ3567Test.class); @@ -116,7 +119,6 @@ public void append(LogEvent event) { private void startBroker() throws Exception { broker = new BrokerService(); - broker.setDataDirectory("target/data"); connectionUri = broker.addConnector("tcp://localhost:0?wireFormat.maxInactivityDuration=30000&transport.closeAsync=false&transport.threadName&soTimeout=60000&transport.keepAlive=false&transport.useInactivityMonitor=false").getPublishableConnectString(); broker.start(true); broker.waitUntilStarted(); diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ3622Test.java b/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ3622Test.java index 0f6b7fb303d..25ea90365d9 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ3622Test.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ3622Test.java @@ -18,7 +18,6 @@ import static org.junit.Assert.fail; -import java.io.File; import java.util.ArrayList; import java.util.List; import java.util.concurrent.atomic.AtomicBoolean; @@ -28,6 +27,7 @@ import org.apache.activemq.broker.region.policy.LastImageSubscriptionRecoveryPolicy; import org.apache.activemq.broker.region.policy.PolicyEntry; import org.apache.activemq.broker.region.policy.PolicyMap; +import org.apache.activemq.test.annotations.ParallelTest; import org.apache.activemq.transport.stomp.Stomp; import org.apache.activemq.transport.stomp.StompConnection; import org.apache.logging.log4j.Level; @@ -42,7 +42,9 @@ import org.junit.After; import org.junit.Before; import org.junit.Test; +import org.junit.experimental.categories.Category; +@Category(ParallelTest.class) public class AMQ3622Test { protected static final Appender appender; @@ -73,7 +75,6 @@ public void before() throws Exception { logger.get().addAppender(appender, Level.DEBUG, new AbstractFilter() {}); broker = new BrokerService(); - broker.setDataDirectory("target" + File.separator + "activemq-data"); broker.setPersistent(true); broker.setDeleteAllMessagesOnStartup(true); PolicyEntry policy = new PolicyEntry(); diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ3732Test.java b/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ3732Test.java index 734f69b5553..fd162b600bf 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ3732Test.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ3732Test.java @@ -36,9 +36,12 @@ import org.junit.After; import org.junit.Before; import org.junit.Test; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; import org.slf4j.Logger; import org.slf4j.LoggerFactory; +@Category(ParallelTest.class) public class AMQ3732Test { private static Logger LOG = LoggerFactory.getLogger(AMQ3732Test.class); diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ3779Test.java b/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ3779Test.java index 323a2b9227e..295640c2381 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ3779Test.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ3779Test.java @@ -38,10 +38,13 @@ import org.junit.After; import org.junit.Before; import org.junit.Test; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; import static org.junit.Assert.assertFalse; import static org.junit.Assert.assertTrue; +@Category(ParallelTest.class) public class AMQ3779Test { private static final Logger LOG = org.apache.logging.log4j.core.Logger.class.cast(LogManager.getLogger(AMQ3779Test.class)); private static final String qName = "QNameToFind"; diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ3879Test.java b/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ3879Test.java index 34d9c85a7c1..f67888b81da 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ3879Test.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ3879Test.java @@ -31,9 +31,12 @@ import org.junit.After; import org.junit.Before; import org.junit.Test; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; import org.slf4j.Logger; import org.slf4j.LoggerFactory; +@Category(ParallelTest.class) public class AMQ3879Test { static final Logger LOG = LoggerFactory.getLogger(AMQ3841Test.class); diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ3903Test.java b/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ3903Test.java index 1035d27aa1f..2aca4db213e 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ3903Test.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ3903Test.java @@ -38,9 +38,12 @@ import org.junit.After; import org.junit.Before; import org.junit.Test; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; import org.slf4j.Logger; import org.slf4j.LoggerFactory; +@Category(ParallelTest.class) public class AMQ3903Test { private static final transient Logger LOG = LoggerFactory.getLogger(AMQ3903Test.class); diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ3932Test.java b/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ3932Test.java index 8b0a0c8779e..ec9d68a03e6 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ3932Test.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ3932Test.java @@ -16,20 +16,11 @@ */ package org.apache.activemq.bugs; -import static org.junit.Assert.assertFalse; -import static org.junit.Assert.assertTrue; - -import java.util.concurrent.CountDownLatch; -import java.util.concurrent.ExecutorService; -import java.util.concurrent.Executors; -import java.util.concurrent.TimeUnit; - import jakarta.jms.Connection; import jakarta.jms.ConnectionFactory; import jakarta.jms.JMSException; import jakarta.jms.MessageConsumer; import jakarta.jms.Session; - import org.apache.activemq.ActiveMQConnectionFactory; import org.apache.activemq.broker.BrokerService; import org.apache.activemq.broker.TransportConnector; @@ -39,6 +30,14 @@ import org.slf4j.Logger; import org.slf4j.LoggerFactory; +import java.util.concurrent.CountDownLatch; +import java.util.concurrent.ExecutorService; +import java.util.concurrent.Executors; +import java.util.concurrent.TimeUnit; + +import static org.junit.Assert.assertFalse; +import static org.junit.Assert.assertTrue; + public class AMQ3932Test { static final Logger LOG = LoggerFactory.getLogger(AMQ3932Test.class); private Connection connection; diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ4062Test.java b/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ4062Test.java index 11ed55b25ed..956837fa8be 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ4062Test.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ4062Test.java @@ -52,7 +52,10 @@ import org.junit.After; import org.junit.Before; import org.junit.Test; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; +@Category(ParallelTest.class) public class AMQ4062Test { private BrokerService service; diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ4116Test.java b/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ4116Test.java index 0b3fb5f9a3a..a521c9372fa 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ4116Test.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ4116Test.java @@ -31,7 +31,10 @@ import org.apache.activemq.command.ActiveMQMessage; import org.apache.activemq.command.ActiveMQQueue; import org.junit.Assert; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; +@Category(ParallelTest.class) public class AMQ4116Test extends EmbeddedBrokerTestSupport { private final String tcpAddr = "tcp://localhost:0"; diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ4213Test.java b/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ4213Test.java index 4a3a793ba43..90172ab9579 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ4213Test.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ4213Test.java @@ -32,7 +32,10 @@ import org.junit.After; import org.junit.Before; import org.junit.Test; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; +@Category(ParallelTest.class) public class AMQ4213Test { private static BrokerService brokerService; diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ4323Test.java b/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ4323Test.java index 80df65a9872..e85474aca35 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ4323Test.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ4323Test.java @@ -32,6 +32,8 @@ import org.apache.activemq.util.ProducerThread; import org.apache.activemq.util.Wait; import org.junit.Test; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; import org.slf4j.Logger; import org.slf4j.LoggerFactory; @@ -39,6 +41,7 @@ import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertTrue; +@Category(ParallelTest.class) public class AMQ4323Test { private static final Logger LOG = LoggerFactory.getLogger(AMQ4323Test.class); diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ4361Test.java b/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ4361Test.java index 8a8bfaa4af7..f8c49e01aff 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ4361Test.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ4361Test.java @@ -40,9 +40,12 @@ import org.junit.After; import org.junit.Before; import org.junit.Test; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; import org.slf4j.Logger; import org.slf4j.LoggerFactory; +@Category(ParallelTest.class) public class AMQ4361Test { private static final Logger LOG = LoggerFactory.getLogger(AMQ4361Test.class); diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ4368Test.java b/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ4368Test.java index a20b9a5d1b3..30f38fc6d7d 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ4368Test.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ4368Test.java @@ -41,9 +41,12 @@ import org.junit.After; import org.junit.Before; import org.junit.Test; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; import org.slf4j.Logger; import org.slf4j.LoggerFactory; +@Category(ParallelTest.class) public class AMQ4368Test { private static final Logger LOG = LoggerFactory.getLogger(AMQ4368Test.class); diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ4413Test.java b/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ4413Test.java index 97f0e63d8b4..29dc5739df9 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ4413Test.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ4413Test.java @@ -38,11 +38,14 @@ import org.apache.activemq.ActiveMQConnectionFactory; import org.apache.activemq.broker.BrokerService; import org.junit.Test; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; import org.slf4j.Logger; import org.slf4j.LoggerFactory; /** */ +@Category(ParallelTest.class) public class AMQ4413Test { static final Logger LOG = LoggerFactory.getLogger(AMQ4413Test.class); diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ4469Test.java b/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ4469Test.java index 7dad20c918f..a6bf49eccf5 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ4469Test.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ4469Test.java @@ -35,8 +35,11 @@ import org.junit.After; import org.junit.Before; import org.junit.Test; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; import org.springframework.jms.support.JmsUtils; +@Category(ParallelTest.class) public class AMQ4469Test { private static final int maxConnections = 100; diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ4485LowLimitTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ4485LowLimitTest.java index 44e8c64bdc6..cc77fd38806 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ4485LowLimitTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ4485LowLimitTest.java @@ -64,10 +64,10 @@ public class AMQ4485LowLimitTest extends JmsMultipleBrokersTestSupport { static final String payload = new String(new byte[10 * 1024]); private static final Logger LOG = LoggerFactory.getLogger(AMQ4485LowLimitTest.class); final int portBase = 61600; - int numBrokers = 8; - final int numProducers = 30; - final int numMessages = 1000; - final int consumerSleepTime = 40; + int numBrokers = 4; + final int numProducers = 10; + final int numMessages = 200; + final int consumerSleepTime = 5; StringBuilder brokersUrl = new StringBuilder(); HashMap accumulators = new HashMap(); private ArrayList exceptions = new ArrayList(); @@ -144,7 +144,7 @@ private void addNetworkConnector(BrokerService broker) throws Exception { nc.setDynamicOnly(true); nc.setPrefetchSize(100); nc.setDynamicallyIncludedDestinations( - Arrays.asList(new ActiveMQDestination[]{new ActiveMQQueue("GW.*")})); + Arrays.asList(new ActiveMQDestination[]{new ActiveMQQueue("GW.*")})); broker.addNetworkConnector(nc); } } @@ -252,7 +252,7 @@ public boolean isSatisified() throws Exception { } return true; } - }, 1000 * 60 * 1000l, 20*1000)); + }, 5 * 60 * 1000L, 10_000)); assertTrue("No exceptions:" + exceptions, exceptions.isEmpty()); @@ -463,4 +463,4 @@ class ConsumerState { ActiveMQDestination destination; ConcurrentLinkedQueue expected = new ConcurrentLinkedQueue(); } -} \ No newline at end of file +} diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ4487Test.java b/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ4487Test.java index 56509f5eb8a..e2614deaa9b 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ4487Test.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ4487Test.java @@ -35,9 +35,12 @@ import org.junit.After; import org.junit.Before; import org.junit.Test; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; import org.slf4j.Logger; import org.slf4j.LoggerFactory; +@Category(ParallelTest.class) public class AMQ4487Test { private static final Logger LOG = LoggerFactory.getLogger(AMQ4487Test.class); diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ4582Test.java b/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ4582Test.java index b5b3a08d445..11d2539b619 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ4582Test.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ4582Test.java @@ -27,10 +27,13 @@ import org.junit.Before; import org.junit.Rule; import org.junit.Test; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; import org.junit.rules.ExpectedException; import org.slf4j.Logger; import org.slf4j.LoggerFactory; +@Category(ParallelTest.class) public class AMQ4582Test { private static final transient Logger LOG = LoggerFactory.getLogger(AMQ4582Test.class); diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ4671Test.java b/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ4671Test.java index 93bb42f6051..59b1ca954e2 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ4671Test.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ4671Test.java @@ -26,9 +26,12 @@ import org.junit.After; import org.junit.Before; import org.junit.Test; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; import org.slf4j.Logger; import org.slf4j.LoggerFactory; +@Category(ParallelTest.class) public class AMQ4671Test { private static final transient Logger LOG = LoggerFactory.getLogger(AMQ4671Test.class); diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ4814Test.java b/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ4814Test.java index 13c70fb40f2..2006f8e2648 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ4814Test.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ4814Test.java @@ -36,9 +36,12 @@ import org.junit.After; import org.junit.Before; import org.junit.Test; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; import org.slf4j.Logger; import org.slf4j.LoggerFactory; +@Category(ParallelTest.class) public class AMQ4814Test { private static final Logger LOG = LoggerFactory.getLogger(AMQ4814Test.class); diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ4899Test.java b/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ4899Test.java index b7beaeb0e22..aa4ca9021b2 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ4899Test.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ4899Test.java @@ -44,9 +44,12 @@ import org.junit.After; import org.junit.Before; import org.junit.Test; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; import org.slf4j.Logger; import org.slf4j.LoggerFactory; +@Category(ParallelTest.class) public class AMQ4899Test { protected static final Logger LOG = LoggerFactory.getLogger(AMQ4899Test.class); private static final String QUEUE_NAME="AMQ4899TestQueue"; diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ4950Test.java b/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ4950Test.java index 10f9a986999..ebf4b82ac0c 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ4950Test.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ4950Test.java @@ -52,6 +52,9 @@ * Test for AMQ-4950. * Simulates an error during XA prepare call. */ +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; +@Category(ParallelTest.class) public class AMQ4950Test extends BrokerRestartTestSupport { protected static final Logger LOG = LoggerFactory.getLogger(AMQ4950Test.class); diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ5136Test.java b/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ5136Test.java index c73498b9c19..916b6cd2b91 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ5136Test.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ5136Test.java @@ -30,7 +30,10 @@ import org.junit.After; import org.junit.Before; import org.junit.Test; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; +@Category(ParallelTest.class) public class AMQ5136Test { BrokerService brokerService; diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ5266SingleDestTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ5266SingleDestTest.java index 6465a149aae..e79b809e2fc 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ5266SingleDestTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ5266SingleDestTest.java @@ -46,6 +46,8 @@ import org.junit.Before; import org.junit.BeforeClass; import org.junit.Test; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; import org.junit.runner.RunWith; import org.junit.runners.Parameterized; import org.slf4j.Logger; @@ -58,6 +60,7 @@ Non transactional concurrent producer/consumer to single dest */ @RunWith(Parameterized.class) +@Category(ParallelTest.class) public class AMQ5266SingleDestTest { static Logger LOG = LoggerFactory.getLogger(AMQ5266SingleDestTest.class); String activemqURL; diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ5266StarvedConsumerTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ5266StarvedConsumerTest.java index 295f9a3048f..cef6fcf8a00 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ5266StarvedConsumerTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ5266StarvedConsumerTest.java @@ -16,17 +16,6 @@ */ package org.apache.activemq.bugs; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.Collections; -import java.util.HashMap; -import java.util.List; -import java.util.Map; -import java.util.TreeSet; -import java.util.UUID; -import java.util.concurrent.CyclicBarrier; -import java.util.concurrent.TimeUnit; -import java.util.concurrent.atomic.AtomicBoolean; import jakarta.jms.Message; import jakarta.jms.MessageConsumer; import jakarta.jms.MessageProducer; @@ -44,10 +33,6 @@ import org.apache.activemq.broker.region.policy.PolicyEntry; import org.apache.activemq.broker.region.policy.PolicyMap; import org.apache.activemq.command.ActiveMQQueue; -import org.apache.activemq.store.jdbc.JDBCPersistenceAdapter; -import org.apache.activemq.store.jdbc.adapter.DefaultJDBCAdapter; -import org.apache.activemq.store.kahadb.KahaDBPersistenceAdapter; -import org.apache.derby.jdbc.EmbeddedDataSource; import org.junit.After; import org.junit.Before; import org.junit.Test; @@ -56,6 +41,17 @@ import org.slf4j.Logger; import org.slf4j.LoggerFactory; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.Collections; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.TreeSet; +import java.util.UUID; +import java.util.concurrent.CyclicBarrier; +import java.util.concurrent.TimeUnit; +import java.util.concurrent.atomic.AtomicBoolean; import static org.junit.Assert.assertEquals; diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ5266Test.java b/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ5266Test.java index 66df431efd9..0f1f41034b9 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ5266Test.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ5266Test.java @@ -47,6 +47,8 @@ import org.junit.After; import org.junit.Before; import org.junit.Test; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; import org.junit.runner.RunWith; import org.junit.runners.Parameterized; import org.slf4j.Logger; @@ -57,6 +59,7 @@ * stuck messages on the queue. */ @RunWith(Parameterized.class) +@Category(ParallelTest.class) public class AMQ5266Test { static Logger LOG = LoggerFactory.getLogger(AMQ5266Test.class); diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ5381Test.java b/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ5381Test.java index 79a5686d063..bab1b0c1e12 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ5381Test.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ5381Test.java @@ -38,8 +38,11 @@ import org.junit.Before; import org.junit.Rule; import org.junit.Test; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; import org.junit.rules.TestName; +@Category(ParallelTest.class) public class AMQ5381Test { public static final byte[] ORIG_MSG_CONTENT = randomByteArray(); diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ5421Test.java b/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ5421Test.java index 8ac997c3ebc..ae84dd0130d 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ5421Test.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ5421Test.java @@ -37,9 +37,12 @@ import org.junit.Assert; import org.junit.Before; import org.junit.Test; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; import org.slf4j.Logger; import org.slf4j.LoggerFactory; +@Category(ParallelTest.class) public class AMQ5421Test { private static final Logger LOG = LoggerFactory.getLogger(AMQ5421Test.class); diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ5450Test.java b/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ5450Test.java index 7c40e4cc623..cc717de356f 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ5450Test.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ5450Test.java @@ -33,12 +33,15 @@ import org.apache.activemq.store.kahadb.MultiKahaDBPersistenceAdapter; import org.junit.After; import org.junit.Test; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import static org.junit.Assert.*; +@Category(ParallelTest.class) public class AMQ5450Test { static final Logger LOG = LoggerFactory.getLogger(AMQ5450Test.class); diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ5486Test.java b/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ5486Test.java index de32833adcb..85d7b03f09e 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ5486Test.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ5486Test.java @@ -16,6 +16,8 @@ */ package org.apache.activemq.bugs; +import jakarta.jms.Connection; +import jakarta.jms.ConnectionFactory; import org.apache.activemq.ActiveMQConnection; import org.apache.activemq.ActiveMQConnectionFactory; import org.apache.activemq.broker.BrokerService; @@ -28,8 +30,6 @@ import org.slf4j.LoggerFactory; import org.springframework.jms.support.JmsUtils; -import jakarta.jms.Connection; -import jakarta.jms.ConnectionFactory; import java.util.Collections; import java.util.LinkedList; import java.util.List; diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ5822Test.java b/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ5822Test.java index 32ef5b07683..7618ee7335d 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ5822Test.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ5822Test.java @@ -28,9 +28,12 @@ import org.junit.After; import org.junit.Before; import org.junit.Test; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; import org.slf4j.Logger; import org.slf4j.LoggerFactory; +@Category(ParallelTest.class) public class AMQ5822Test { private static final Logger LOG = LoggerFactory.getLogger(AMQ5822Test.class); diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ5863CompositePublishTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ5863CompositePublishTest.java index a4846a707c4..622fe9537df 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ5863CompositePublishTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ5863CompositePublishTest.java @@ -31,6 +31,8 @@ import org.junit.After; import org.junit.Before; import org.junit.Test; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; import org.junit.runner.RunWith; import org.junit.runners.Parameterized; import org.slf4j.Logger; @@ -40,6 +42,7 @@ import static org.junit.Assert.assertNotNull; @RunWith(Parameterized.class) +@Category(ParallelTest.class) public class AMQ5863CompositePublishTest { static Logger LOG = LoggerFactory.getLogger(AMQ5863CompositePublishTest.class); String brokerUrl; diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ5914Test.java b/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ5914Test.java index 8ab81fc1720..6fa0e60d2e8 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ5914Test.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ5914Test.java @@ -35,8 +35,11 @@ import org.junit.Before; import org.junit.Rule; import org.junit.Test; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; import org.junit.rules.TestName; +@Category(ParallelTest.class) public class AMQ5914Test { private ActiveMQConnection connection; diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ5921Test.java b/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ5921Test.java index b6dc6f667b4..6b84c408953 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ5921Test.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ5921Test.java @@ -31,10 +31,13 @@ import org.junit.Before; import org.junit.Rule; import org.junit.Test; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; import org.junit.rules.TestName; import org.slf4j.Logger; import org.slf4j.LoggerFactory; +@Category(ParallelTest.class) public class AMQ5921Test { private static Logger LOG = LoggerFactory.getLogger(AMQ5921Test.class); diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ6125Test.java b/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ6125Test.java index 2450e0bef66..a8249df12c1 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ6125Test.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ6125Test.java @@ -31,7 +31,10 @@ import org.junit.After; import org.junit.Before; import org.junit.Test; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; +@Category(ParallelTest.class) public class AMQ6125Test { private BrokerService broker; diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ6240Test.java b/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ6240Test.java index 8ab433377e1..9550b30d684 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ6240Test.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ6240Test.java @@ -33,7 +33,10 @@ import jakarta.jms.MessageProducer; import jakarta.jms.Session; import java.util.concurrent.atomic.AtomicInteger; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; +@Category(ParallelTest.class) public class AMQ6240Test extends EmbeddedBrokerTestSupport { static final Logger LOG = LoggerFactory.getLogger(AMQ6240Test.class); diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ6463Test.java b/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ6463Test.java index a884f94913e..90b0149e303 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ6463Test.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ6463Test.java @@ -48,6 +48,11 @@ import java.util.concurrent.atomic.AtomicBoolean; import java.util.concurrent.atomic.AtomicInteger; + + +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; +@Category(ParallelTest.class) public class AMQ6463Test extends JmsTestSupport { static final Logger LOG = LoggerFactory.getLogger(AMQ6463Test.class); ActiveMQQueue queueA = new ActiveMQQueue("QUEUE.A"); diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ6522Test.java b/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ6522Test.java index 1c73d77951e..0a5e057150b 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ6522Test.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ6522Test.java @@ -26,6 +26,8 @@ import org.junit.After; import org.junit.Before; import org.junit.Test; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; import org.slf4j.Logger; import org.slf4j.LoggerFactory; @@ -38,6 +40,7 @@ import static org.junit.Assert.assertNotNull; +@Category(ParallelTest.class) public class AMQ6522Test { private static final Logger LOG = LoggerFactory.getLogger(AMQ6522Test.class); diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ6815Test.java b/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ6815Test.java index ea80a1c56d3..a755c2cd6b4 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ6815Test.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ6815Test.java @@ -39,8 +39,8 @@ public class AMQ6815Test { static final Logger LOG = LoggerFactory.getLogger(AMQ6815Test.class); - private final static int MEM_LIMIT = 5*1024*1024; - private final static byte[] payload = new byte[5*1024]; + private final static int MEM_LIMIT = 1024*1024; // 1 MB + private final static byte[] payload = new byte[1024]; protected BrokerService brokerService; protected Connection connection; @@ -73,14 +73,19 @@ public void tearDown() throws Exception { brokerService.stop(); } - @Test(timeout = 480000) + @Test(timeout = 240000) public void testHeapUsage() throws Exception { Runtime.getRuntime().gc(); final long initUsedMemory = Runtime.getRuntime().totalMemory() - Runtime.getRuntime().freeMemory(); - sendMessages(10000); + LOG.info("Initial Mem in use: " + initUsedMemory/1024 + "K"); + + sendMessages(5000); // 5k of 1k messages = 5MB and limit is 1MB so some will be paged to disk + Runtime.getRuntime().gc(); long usedMem = Runtime.getRuntime().totalMemory() - Runtime.getRuntime().freeMemory() - initUsedMemory; LOG.info("Mem in use: " + usedMem/1024 + "K"); + + // 2 is a big generous factor because we don't create this many additional objects per message assertTrue("Used Mem reasonable " + usedMem, usedMem < 5 * MEM_LIMIT); } diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ7002Test.java b/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ7002Test.java index 454c9d1a68a..1252599e779 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ7002Test.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ7002Test.java @@ -31,6 +31,8 @@ import org.junit.After; import org.junit.Before; import org.junit.Test; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import jakarta.jms.*; @@ -39,6 +41,7 @@ import static junit.framework.TestCase.assertNotNull; import static org.junit.Assert.*; +@Category(ParallelTest.class) public class AMQ7002Test { static final Logger LOG = LoggerFactory.getLogger(AMQ7002Test.class); protected ActiveMQConnection connection; diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/ConnectionPerMessageTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/ConnectionPerMessageTest.java index bb5aeb9dde5..196407ec0a0 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/ConnectionPerMessageTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/ConnectionPerMessageTest.java @@ -31,7 +31,10 @@ import org.apache.activemq.broker.BrokerService; import org.slf4j.Logger; import org.slf4j.LoggerFactory; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; +@Category(ParallelTest.class) public class ConnectionPerMessageTest extends EmbeddedBrokerTestSupport { private static final Logger LOG = LoggerFactory.getLogger(ConnectionPerMessageTest.class); diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/CraigsBugTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/CraigsBugTest.java index e2b58203349..46a47e3f4d0 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/CraigsBugTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/CraigsBugTest.java @@ -24,7 +24,10 @@ import org.apache.activemq.ActiveMQConnectionFactory; import org.apache.activemq.EmbeddedBrokerTestSupport; import org.apache.activemq.command.ActiveMQQueue; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; +@Category(ParallelTest.class) public class CraigsBugTest extends EmbeddedBrokerTestSupport { private String connectionUri; diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/DoubleExpireTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/DoubleExpireTest.java index d563e0e87bc..59b802de88a 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/DoubleExpireTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/DoubleExpireTest.java @@ -29,7 +29,10 @@ import org.apache.activemq.broker.region.Queue; import org.apache.activemq.command.ActiveMQDestination; import org.junit.Assert; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; +@Category(ParallelTest.class) public class DoubleExpireTest extends EmbeddedBrokerTestSupport { private static final long MESSAGE_TTL_MILLIS = 1000; diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/JMSDurableTopicNoLocalTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/JMSDurableTopicNoLocalTest.java index 8cdfac29d07..691e1e803ae 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/JMSDurableTopicNoLocalTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/JMSDurableTopicNoLocalTest.java @@ -28,10 +28,13 @@ import jakarta.jms.TopicSubscriber; import org.apache.activemq.EmbeddedBrokerTestSupport; import org.apache.activemq.broker.BrokerService; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * */ +@Category(ParallelTest.class) public class JMSDurableTopicNoLocalTest extends EmbeddedBrokerTestSupport { protected String bindAddress; diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/JmsTimeoutTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/JmsTimeoutTest.java index cc8d2f244e3..cfae3af84c1 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/JmsTimeoutTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/JmsTimeoutTest.java @@ -33,7 +33,10 @@ import org.apache.activemq.transport.RequestTimedOutIOException; import org.slf4j.Logger; import org.slf4j.LoggerFactory; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; +@Category(ParallelTest.class) public class JmsTimeoutTest extends EmbeddedBrokerTestSupport { static final Logger LOG = LoggerFactory.getLogger(JmsTimeoutTest.class); diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/MemoryUsageBlockResumeTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/MemoryUsageBlockResumeTest.java index 30541e40ef6..2f59fcf3b2a 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/MemoryUsageBlockResumeTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/MemoryUsageBlockResumeTest.java @@ -16,7 +16,6 @@ */ package org.apache.activemq.bugs; -import java.io.File; import java.util.Vector; import java.util.concurrent.atomic.AtomicInteger; @@ -35,9 +34,11 @@ import org.apache.activemq.broker.region.policy.PolicyEntry; import org.apache.activemq.broker.region.policy.PolicyMap; import org.apache.activemq.command.ActiveMQQueue; +import org.apache.activemq.test.annotations.ParallelTest; import org.apache.activemq.util.Wait; import org.junit.After; import org.junit.Before; +import org.junit.experimental.categories.Category; import org.junit.runners.BlockJUnit4ClassRunner; import org.junit.runner.RunWith; import org.junit.Test; @@ -47,6 +48,7 @@ import static org.junit.Assert.*; +@Category(ParallelTest.class) @RunWith(BlockJUnit4ClassRunner.class) public class MemoryUsageBlockResumeTest extends TestSupport implements Thread.UncaughtExceptionHandler { @@ -187,7 +189,6 @@ public void setUp() throws Exception { Thread.setDefaultUncaughtExceptionHandler(this); broker = new BrokerService(); - broker.setDataDirectory("target" + File.separator + "activemq-data"); broker.setPersistent(true); broker.setUseJmx(false); broker.setAdvisorySupport(false); diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/MemoryUsageBrokerTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/MemoryUsageBrokerTest.java index f65eb3c005b..ee3dd0cf620 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/MemoryUsageBrokerTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/MemoryUsageBrokerTest.java @@ -28,6 +28,8 @@ import jakarta.jms.*; import java.io.File; + + public class MemoryUsageBrokerTest extends BrokerTestSupport { private static final Logger LOG = LoggerFactory.getLogger(MemoryUsageBrokerTest.class); diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/MemoryUsageCleanupTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/MemoryUsageCleanupTest.java index e085d883ecb..5eaaceed72b 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/MemoryUsageCleanupTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/MemoryUsageCleanupTest.java @@ -18,7 +18,6 @@ import static org.junit.Assert.assertTrue; -import java.io.File; import java.util.Random; import java.util.concurrent.CountDownLatch; import java.util.concurrent.ExecutorService; @@ -40,13 +39,16 @@ import org.apache.activemq.broker.region.policy.PolicyMap; import org.apache.activemq.broker.region.policy.SharedDeadLetterStrategy; import org.apache.activemq.command.ActiveMQQueue; +import org.apache.activemq.test.annotations.ParallelTest; import org.apache.activemq.util.Wait; import org.junit.After; import org.junit.Before; import org.junit.Test; +import org.junit.experimental.categories.Category; import org.slf4j.Logger; import org.slf4j.LoggerFactory; +@Category(ParallelTest.class) public class MemoryUsageCleanupTest { private static final Logger LOG = LoggerFactory.getLogger(MemoryUsageCleanupTest.class); @@ -65,7 +67,6 @@ public class MemoryUsageCleanupTest { public void setUp() throws Exception { broker = new BrokerService(); - broker.setDataDirectory("target" + File.separator + "activemq-data"); broker.setPersistent(true); broker.setUseJmx(true); broker.setDedicatedTaskRunner(false); diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/OptimizeAcknowledgeWithExpiredMsgsTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/OptimizeAcknowledgeWithExpiredMsgsTest.java index 5336b15e998..03ef0cd76f8 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/OptimizeAcknowledgeWithExpiredMsgsTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/OptimizeAcknowledgeWithExpiredMsgsTest.java @@ -39,6 +39,8 @@ import org.junit.After; import org.junit.Before; import org.junit.Test; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; import org.slf4j.Logger; import org.slf4j.LoggerFactory; @@ -49,6 +51,7 @@ * See for more details. * */ +@Category(ParallelTest.class) public class OptimizeAcknowledgeWithExpiredMsgsTest { private final static Logger LOG = LoggerFactory.getLogger(OptimizeAcknowledgeWithExpiredMsgsTest.class); diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/RedeliveryPluginHeaderTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/RedeliveryPluginHeaderTest.java index 88ad229cf7b..cb6caf616c4 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/RedeliveryPluginHeaderTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/RedeliveryPluginHeaderTest.java @@ -33,7 +33,9 @@ import org.apache.activemq.broker.TransportConnector; import org.apache.activemq.broker.region.policy.RedeliveryPolicyMap; import org.apache.activemq.broker.util.RedeliveryPlugin; +import org.apache.activemq.test.annotations.ParallelTest; import org.apache.activemq.util.IOHelper; +import org.junit.experimental.categories.Category; import org.slf4j.Logger; import org.slf4j.LoggerFactory; @@ -42,6 +44,7 @@ * message previously. */ +@Category(ParallelTest.class) public class RedeliveryPluginHeaderTest extends TestCase { private static final String TEST_QUEUE_ONE = "TEST_QUEUE_ONE"; @@ -140,7 +143,6 @@ protected BrokerService createBroker(boolean withJMX) throws Exception { BrokerService answer = new BrokerService(); answer.setAdvisorySupport(false); - answer.setDataDirectory("target"); answer.setSchedulerDirectoryFile(schedulerDirectory); answer.setSchedulerSupport(true); answer.setPersistent(true); @@ -164,4 +166,4 @@ protected BrokerService createBroker(boolean withJMX) throws Exception { return answer; } -} \ No newline at end of file +} diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/TempStorageBlockedBrokerTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/TempStorageBlockedBrokerTest.java index c0f475e2a03..411d8ab025e 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/TempStorageBlockedBrokerTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/TempStorageBlockedBrokerTest.java @@ -16,7 +16,6 @@ */ package org.apache.activemq.bugs; -import java.io.File; import java.util.concurrent.CountDownLatch; import java.util.concurrent.TimeUnit; import java.util.concurrent.atomic.AtomicInteger; @@ -38,13 +37,16 @@ import org.apache.activemq.command.ActiveMQQueue; import org.apache.activemq.command.ActiveMQTopic; import org.apache.activemq.store.kahadb.plist.PListStoreImpl; +import org.apache.activemq.test.annotations.ParallelTest; import org.apache.activemq.usage.MemoryUsage; import org.apache.activemq.usage.StoreUsage; import org.apache.activemq.usage.SystemUsage; import org.apache.activemq.usage.TempUsage; +import org.junit.experimental.categories.Category; import org.slf4j.Logger; import org.slf4j.LoggerFactory; +@Category(ParallelTest.class) public class TempStorageBlockedBrokerTest extends TestSupport { public int deliveryMode = DeliveryMode.PERSISTENT; @@ -220,7 +222,6 @@ public void testFillTempAndConsume() throws Exception { public void setUp() throws Exception { broker = new BrokerService(); - broker.setDataDirectory("target" + File.separator + "activemq-data"); broker.setPersistent(true); broker.setUseJmx(true); broker.setAdvisorySupport(false); diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/TempStorageConfigBrokerTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/TempStorageConfigBrokerTest.java index adf1f861610..3a9728b6619 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/TempStorageConfigBrokerTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/TempStorageConfigBrokerTest.java @@ -18,7 +18,6 @@ import static org.junit.Assert.*; -import java.io.File; import java.util.concurrent.atomic.AtomicInteger; import jakarta.jms.Connection; @@ -39,9 +38,11 @@ import org.apache.activemq.command.ActiveMQTopic; import org.apache.activemq.store.kahadb.KahaDBPersistenceAdapter; import org.apache.activemq.store.kahadb.plist.PListStoreImpl; +import org.apache.activemq.test.annotations.ParallelTest; import org.junit.After; import org.junit.Ignore; import org.junit.Test; +import org.junit.experimental.categories.Category; import org.slf4j.Logger; import org.slf4j.LoggerFactory; @@ -50,6 +51,7 @@ * be smaller than the configured limit, but will still send a ResourceAllocationException * if its not when sendFailIfNoSpace is enabled. */ +@Category(ParallelTest.class) public class TempStorageConfigBrokerTest { public int deliveryMode = DeliveryMode.PERSISTENT; @@ -155,7 +157,6 @@ public void testFillTempAndConsumeWithGoodTempStoreConfig() throws Exception { private void createBrokerWithValidTempStoreConfig() throws Exception { broker = new BrokerService(); - broker.setDataDirectory("target" + File.separator + "activemq-data"); broker.setPersistent(true); broker.setUseJmx(true); broker.setAdvisorySupport(false); @@ -184,7 +185,6 @@ private void createBrokerWithValidTempStoreConfig() throws Exception { private void createBrokerWithInvalidTempStoreConfig() throws Exception { broker = new BrokerService(); - broker.setDataDirectory("target" + File.separator + "activemq-data"); broker.setPersistent(true); broker.setUseJmx(true); broker.setAdvisorySupport(false); diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/TempStoreDataCleanupTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/TempStoreDataCleanupTest.java index eb67de16161..42c840d6336 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/TempStoreDataCleanupTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/TempStoreDataCleanupTest.java @@ -42,13 +42,16 @@ import org.apache.activemq.broker.region.policy.SharedDeadLetterStrategy; import org.apache.activemq.command.ActiveMQQueue; import org.apache.activemq.store.kahadb.plist.PListStoreImpl; +import org.apache.activemq.test.annotations.ParallelTest; import org.apache.activemq.util.Wait; import org.junit.After; import org.junit.Before; import org.junit.Test; +import org.junit.experimental.categories.Category; import org.slf4j.Logger; import org.slf4j.LoggerFactory; +@Category(ParallelTest.class) public class TempStoreDataCleanupTest { private static final Logger LOG = LoggerFactory.getLogger(TempStoreDataCleanupTest.class); @@ -67,7 +70,6 @@ public class TempStoreDataCleanupTest { public void setUp() throws Exception { broker = new BrokerService(); - broker.setDataDirectory("target" + File.separator + "activemq-data"); broker.setPersistent(true); broker.setUseJmx(true); broker.setDedicatedTaskRunner(false); diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/VMTransportClosureTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/VMTransportClosureTest.java index e06804caf9d..94f530a290a 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/VMTransportClosureTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/VMTransportClosureTest.java @@ -31,7 +31,10 @@ import org.apache.activemq.transport.TransportListener; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; +@Category(ParallelTest.class) public class VMTransportClosureTest extends EmbeddedBrokerTestSupport { private static final Log LOG = LogFactory .getLog(VMTransportClosureTest.class); diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/command/ActiveMQBytesMessageTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/command/ActiveMQBytesMessageTest.java index 2ace9230589..062b797161b 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/command/ActiveMQBytesMessageTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/command/ActiveMQBytesMessageTest.java @@ -22,10 +22,13 @@ import jakarta.jms.MessageNotWriteableException; import junit.framework.TestCase; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * */ +@Category(ParallelTest.class) public class ActiveMQBytesMessageTest extends TestCase { public ActiveMQBytesMessageTest(String name) { diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/command/ActiveMQConcurrentDecompressionTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/command/ActiveMQConcurrentDecompressionTest.java index d535c123fc9..02ffb0dbf4c 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/command/ActiveMQConcurrentDecompressionTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/command/ActiveMQConcurrentDecompressionTest.java @@ -28,8 +28,10 @@ import org.apache.activemq.ActiveMQConnectionFactory; import org.apache.activemq.broker.BrokerService; +import org.apache.activemq.test.annotations.ParallelTest; import org.junit.Assert; import org.junit.Test; +import org.junit.experimental.categories.Category; /** * AMQ-6142 @@ -38,6 +40,7 @@ * are several consumers * */ +@Category(ParallelTest.class) public class ActiveMQConcurrentDecompressionTest { private volatile AssertionError assertionError; diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/command/ActiveMQDestinationTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/command/ActiveMQDestinationTest.java index 38d5c1e2d8f..b40a745b436 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/command/ActiveMQDestinationTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/command/ActiveMQDestinationTest.java @@ -31,7 +31,10 @@ import jakarta.jms.Topic; import junit.framework.Test; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; +@Category(ParallelTest.class) public class ActiveMQDestinationTest extends DataStructureTestSupport { public ActiveMQDestination destination; diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/command/ActiveMQMapMessageTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/command/ActiveMQMapMessageTest.java index 8ecfcfb69c9..82861d4af1f 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/command/ActiveMQMapMessageTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/command/ActiveMQMapMessageTest.java @@ -33,13 +33,16 @@ import jakarta.jms.MessageNotReadableException; import jakarta.jms.MessageNotWriteableException; +import org.apache.activemq.test.annotations.ParallelTest; import org.junit.Test; +import org.junit.experimental.categories.Category; import org.slf4j.Logger; import org.slf4j.LoggerFactory; /** * Test the MapMessage implementation for spec compliance. */ +@Category(ParallelTest.class) public class ActiveMQMapMessageTest { private static final Logger LOG = LoggerFactory.getLogger(ActiveMQMapMessageTest.class); diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/command/ActiveMQMessageTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/command/ActiveMQMessageTest.java index badd57a8df1..d5608145786 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/command/ActiveMQMessageTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/command/ActiveMQMessageTest.java @@ -30,11 +30,14 @@ import org.apache.activemq.openwire.OpenWireFormat; import org.apache.activemq.state.CommandVisitor; +import org.apache.activemq.test.annotations.ParallelTest; import org.apache.activemq.util.ByteSequence; import org.apache.activemq.wireformat.WireFormat; +import org.junit.experimental.categories.Category; import org.slf4j.Logger; import org.slf4j.LoggerFactory; +@Category(ParallelTest.class) public class ActiveMQMessageTest extends TestCase { private static final Logger LOG = LoggerFactory.getLogger(ActiveMQMessageTest.class); diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/command/ActiveMQObjectMessageTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/command/ActiveMQObjectMessageTest.java index b52f99e7f72..fb8d46e1f3a 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/command/ActiveMQObjectMessageTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/command/ActiveMQObjectMessageTest.java @@ -23,10 +23,13 @@ import jakarta.jms.MessageNotWriteableException; import junit.framework.TestCase; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * */ +@Category(ParallelTest.class) public class ActiveMQObjectMessageTest extends TestCase { /** diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/command/ActiveMQStreamMessageTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/command/ActiveMQStreamMessageTest.java index 9022b5ecf12..e75a9d1ade1 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/command/ActiveMQStreamMessageTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/command/ActiveMQStreamMessageTest.java @@ -27,11 +27,14 @@ import jakarta.jms.MessageNotReadableException; import jakarta.jms.MessageNotWriteableException; +import org.apache.activemq.test.annotations.ParallelTest; import org.junit.Test; +import org.junit.experimental.categories.Category; /** * Tests for the ActiveMQ StreamMessage implementation */ +@Category(ParallelTest.class) public class ActiveMQStreamMessageTest { @Test diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/command/ActiveMQTextMessageTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/command/ActiveMQTextMessageTest.java index 48c1befbe4a..c331f8a26b5 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/command/ActiveMQTextMessageTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/command/ActiveMQTextMessageTest.java @@ -28,13 +28,16 @@ import junit.framework.TestCase; import junit.textui.TestRunner; +import org.apache.activemq.test.annotations.ParallelTest; import org.apache.activemq.util.ByteArrayOutputStream; import org.apache.activemq.util.ByteSequence; import org.apache.activemq.util.MarshallingSupport; +import org.junit.experimental.categories.Category; /** * */ +@Category(ParallelTest.class) public class ActiveMQTextMessageTest extends TestCase { public static void main(String[] args) { diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/command/DataStructureTestSupport.java b/activemq-unit-tests/src/test/java/org/apache/activemq/command/DataStructureTestSupport.java index dc485f703b7..d1ed7d9c9f7 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/command/DataStructureTestSupport.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/command/DataStructureTestSupport.java @@ -28,6 +28,8 @@ import org.apache.activemq.util.ByteSequence; import org.apache.activemq.wireformat.WireFormat; + + public abstract class DataStructureTestSupport extends CombinationTestSupport { public boolean cacheEnabled; public WireFormat wireFormat; diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/command/MessageCompressionTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/command/MessageCompressionTest.java index 5ba84df4d6a..d796329edf7 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/command/MessageCompressionTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/command/MessageCompressionTest.java @@ -29,7 +29,10 @@ import org.apache.activemq.ActiveMQConnection; import org.apache.activemq.ActiveMQConnectionFactory; import org.apache.activemq.broker.BrokerService; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; +@Category(ParallelTest.class) public class MessageCompressionTest extends TestCase { private static final String BROKER_URL = "tcp://localhost:0"; diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/command/MessageSendTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/command/MessageSendTest.java index ec81800d0a2..a22be26ad0d 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/command/MessageSendTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/command/MessageSendTest.java @@ -20,10 +20,13 @@ import junit.framework.Test; +import org.apache.activemq.test.annotations.ParallelTest; import org.apache.activemq.util.ByteSequence; +import org.junit.experimental.categories.Category; import org.slf4j.Logger; import org.slf4j.LoggerFactory; +@Category(ParallelTest.class) public class MessageSendTest extends DataStructureTestSupport { private static final Logger LOG = LoggerFactory.getLogger(MessageSendTest.class); diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/command/MessageTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/command/MessageTest.java index f33c5b4524c..051084cb955 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/command/MessageTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/command/MessageTest.java @@ -20,7 +20,10 @@ import junit.framework.Test; import junit.textui.TestRunner; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; +@Category(ParallelTest.class) public class MessageTest extends DataStructureTestSupport { public boolean cacheEnabled; diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/config/BrokerPropertiesTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/config/BrokerPropertiesTest.java index dcd4d6d19f2..64cf9964a81 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/config/BrokerPropertiesTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/config/BrokerPropertiesTest.java @@ -24,10 +24,13 @@ import org.apache.activemq.broker.BrokerService; import org.slf4j.Logger; import org.slf4j.LoggerFactory; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * */ +@Category(ParallelTest.class) public class BrokerPropertiesTest extends TestCase { private static final transient Logger LOG = LoggerFactory.getLogger(BrokerPropertiesTest.class); diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/config/BrokerXmlConfigFromJNDITest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/config/BrokerXmlConfigFromJNDITest.java index 936603c3b82..f141690e51c 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/config/BrokerXmlConfigFromJNDITest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/config/BrokerXmlConfigFromJNDITest.java @@ -16,14 +16,13 @@ */ package org.apache.activemq.config; -import java.io.File; -import java.util.Hashtable; +import org.apache.activemq.ActiveMQConnectionFactory; +import org.apache.activemq.test.JmsTopicSendReceiveWithTwoConnectionsTest; import javax.naming.Context; import javax.naming.InitialContext; - -import org.apache.activemq.ActiveMQConnectionFactory; -import org.apache.activemq.test.JmsTopicSendReceiveWithTwoConnectionsTest; +import java.io.File; +import java.util.Hashtable; /** * diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/config/BrokerXmlConfigTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/config/BrokerXmlConfigTest.java index c392b121ed3..fc2a50df0fd 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/config/BrokerXmlConfigTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/config/BrokerXmlConfigTest.java @@ -18,10 +18,13 @@ import org.apache.activemq.ActiveMQConnectionFactory; import org.apache.activemq.test.JmsTopicSendReceiveWithTwoConnectionsTest; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * */ +@Category(ParallelTest.class) public class BrokerXmlConfigTest extends JmsTopicSendReceiveWithTwoConnectionsTest { protected ActiveMQConnectionFactory createConnectionFactory() throws Exception { // START SNIPPET: bean diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/config/ConfigUsingDestinationOptions.java b/activemq-unit-tests/src/test/java/org/apache/activemq/config/ConfigUsingDestinationOptions.java index dded1556f2b..22960a70c1a 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/config/ConfigUsingDestinationOptions.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/config/ConfigUsingDestinationOptions.java @@ -26,7 +26,10 @@ import org.apache.activemq.ActiveMQConnectionFactory; import org.apache.activemq.ActiveMQMessageConsumer; import org.apache.activemq.command.ActiveMQQueue; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; +@Category(ParallelTest.class) public class ConfigUsingDestinationOptions extends TestCase { public void testValidSelectorConfig() throws JMSException { ActiveMQQueue queue = new ActiveMQQueue("TEST.FOO?consumer.selector=test=1"); diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/jms2/ActiveMQJMS2MessageListenerTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/jms2/ActiveMQJMS2MessageListenerTest.java index cce22b124d7..0bcaef564f8 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/jms2/ActiveMQJMS2MessageListenerTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/jms2/ActiveMQJMS2MessageListenerTest.java @@ -140,12 +140,12 @@ public void onMessage(Message message) { } jmsConsumer.close(); - assertTrue("DequeueCount = 2 and QueueSize = 0 expected", Wait.waitFor(new Wait.Condition() { + assertTrue("Queue should drain in time", Wait.waitFor(new Wait.Condition() { @Override public boolean isSatisified() throws Exception { - return localQueueViewMBean.getDequeueCount() == 2l && localQueueViewMBean.getQueueSize() == 0l; + return localQueueViewMBean.getQueueSize() == 0l && localQueueViewMBean.getDequeueCount() >= 2l; } - }, 5000l, 100l)); + }, 10000l, 100l)); } catch (Exception e) { fail(e.getMessage()); diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/jms2/ActiveMQJMS2XATestBase.java b/activemq-unit-tests/src/test/java/org/apache/activemq/jms2/ActiveMQJMS2XATestBase.java index df083a4eb47..48640f58e48 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/jms2/ActiveMQJMS2XATestBase.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/jms2/ActiveMQJMS2XATestBase.java @@ -23,7 +23,10 @@ import org.apache.activemq.ActiveMQXAConnectionFactory; import org.junit.After; import org.junit.Before; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; +@Category(ParallelTest.class) public abstract class ActiveMQJMS2XATestBase extends ActiveMQJMS2TestBase { protected ActiveMQXAConnectionFactory activemqXAConnectionFactory = null; diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/jmx/DLQRetryTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/jmx/DLQRetryTest.java index a56e9eaa227..3ba36ef0b26 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/jmx/DLQRetryTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/jmx/DLQRetryTest.java @@ -23,13 +23,6 @@ import jakarta.jms.MessageConsumer; import jakarta.jms.MessageProducer; import jakarta.jms.Session; -import javax.management.MBeanServer; -import javax.management.MBeanServerInvocationHandler; -import javax.management.MalformedObjectNameException; -import javax.management.ObjectName; -import java.util.ArrayList; -import java.util.List; - import org.apache.activemq.ActiveMQConnectionFactory; import org.apache.activemq.EmbeddedBrokerTestSupport; import org.apache.activemq.RedeliveryPolicy; @@ -43,6 +36,13 @@ import org.slf4j.Logger; import org.slf4j.LoggerFactory; +import javax.management.MBeanServer; +import javax.management.MBeanServerInvocationHandler; +import javax.management.MalformedObjectNameException; +import javax.management.ObjectName; +import java.util.ArrayList; +import java.util.List; + public class DLQRetryTest extends EmbeddedBrokerTestSupport { diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/jndi/JNDITestSupport.java b/activemq-unit-tests/src/test/java/org/apache/activemq/jndi/JNDITestSupport.java index ed30a5f53d9..cfacb5b815b 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/jndi/JNDITestSupport.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/jndi/JNDITestSupport.java @@ -30,10 +30,13 @@ import junit.framework.TestCase; import org.apache.activemq.ActiveMQConnectionFactory; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * */ +@Category(ParallelTest.class) public abstract class JNDITestSupport extends TestCase { private static final org.apache.commons.logging.Log LOG = org.apache.commons.logging.LogFactory diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/jndi/ObjectFactoryTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/jndi/ObjectFactoryTest.java index c3891448b18..1b6e59b7d16 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/jndi/ObjectFactoryTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/jndi/ObjectFactoryTest.java @@ -23,6 +23,8 @@ import org.apache.activemq.command.ActiveMQDestination; import org.apache.activemq.command.ActiveMQQueue; + + public class ObjectFactoryTest extends CombinationTestSupport { public void testConnectionFactory() throws Exception { // Create sample connection factory diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/joramtests/ActiveMQAdmin.java b/activemq-unit-tests/src/test/java/org/apache/activemq/joramtests/ActiveMQAdmin.java index c35484a6006..f825071806a 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/joramtests/ActiveMQAdmin.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/joramtests/ActiveMQAdmin.java @@ -31,11 +31,14 @@ import org.apache.activemq.command.ActiveMQQueue; import org.apache.activemq.command.ActiveMQTopic; import org.objectweb.jtests.jms.admin.Admin; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * * @author Hiram Chirino */ +@Category(ParallelTest.class) public class ActiveMQAdmin implements Admin { Context context; diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/network/BrokerNetworkWithStuckMessagesTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/network/BrokerNetworkWithStuckMessagesTest.java index 06edf72ee88..0a199ded332 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/network/BrokerNetworkWithStuckMessagesTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/network/BrokerNetworkWithStuckMessagesTest.java @@ -73,6 +73,8 @@ import org.junit.Test; import org.slf4j.Logger; import org.slf4j.LoggerFactory; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * This class duplicates most of the functionality in {@link NetworkTestSupport} @@ -80,6 +82,7 @@ * and connectors are created. Also, this test asserts message counts via JMX on * each broker. */ +@Category(ParallelTest.class) public class BrokerNetworkWithStuckMessagesTest { private static final Logger LOG = LoggerFactory.getLogger(BrokerNetworkWithStuckMessagesTest.class); diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/network/DrainBridgeTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/network/DrainBridgeTest.java index 4467b8f7798..bae400385f5 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/network/DrainBridgeTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/network/DrainBridgeTest.java @@ -23,6 +23,7 @@ import org.apache.activemq.command.ActiveMQDestination; import org.apache.activemq.command.ActiveMQQueue; import org.apache.activemq.command.ActiveMQTopic; +import org.apache.activemq.test.annotations.ParallelTest; import org.apache.activemq.util.Wait; import jakarta.jms.Connection; @@ -30,11 +31,14 @@ import jakarta.jms.MessageProducer; import jakarta.jms.Session; import jakarta.jms.TextMessage; +import org.junit.experimental.categories.Category; + import java.util.Arrays; import java.util.concurrent.TimeUnit; import static org.junit.Assert.assertEquals; +@Category(ParallelTest.class) public class DrainBridgeTest { @org.junit.Test diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/network/NetworkTestSupport.java b/activemq-unit-tests/src/test/java/org/apache/activemq/network/NetworkTestSupport.java index 6d825a5d699..8182c5a971a 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/network/NetworkTestSupport.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/network/NetworkTestSupport.java @@ -34,6 +34,8 @@ import org.apache.activemq.transport.TransportFactory; import org.apache.activemq.usage.SystemUsage; + + public class NetworkTestSupport extends BrokerTestSupport { protected ArrayList connections = new ArrayList(); diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/BooleanStreamTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/BooleanStreamTest.java index ebe1d07e43b..4a926cbf5a9 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/BooleanStreamTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/BooleanStreamTest.java @@ -25,9 +25,13 @@ import junit.framework.AssertionFailedError; import junit.framework.TestCase; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * */ +@Category(ParallelTest.class) + public class BooleanStreamTest extends TestCase { protected OpenWireFormat openWireformat; diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/BrokerInfoData.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/BrokerInfoData.java index baba584907b..96f28c79f0d 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/BrokerInfoData.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/BrokerInfoData.java @@ -19,6 +19,9 @@ import org.apache.activemq.command.BrokerId; import org.apache.activemq.command.BrokerInfo; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category;@Category(ParallelTest.class) + public class BrokerInfoData extends DataFileGenerator { protected Object createObject() { diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/BrokerSubscriptionInfoTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/BrokerSubscriptionInfoTest.java index 9075348db55..2443053fd58 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/BrokerSubscriptionInfoTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/BrokerSubscriptionInfoTest.java @@ -32,6 +32,9 @@ import org.slf4j.Logger; import org.slf4j.LoggerFactory; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category;@Category(ParallelTest.class) + public class BrokerSubscriptionInfoTest { static final Logger LOG = LoggerFactory.getLogger(BrokerSubscriptionInfoTest.class); diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/DataFileGenerator.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/DataFileGenerator.java index ac9311b1428..dc2436c815f 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/DataFileGenerator.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/DataFileGenerator.java @@ -25,7 +25,6 @@ import java.io.IOException; import java.io.InputStream; import java.util.ArrayList; - public abstract class DataFileGenerator extends org.junit.Assert { static final File MODULE_BASE_DIR; diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/DataFileGeneratorTestSupport.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/DataFileGeneratorTestSupport.java index b75ba257454..a345b55e8c8 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/DataFileGeneratorTestSupport.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/DataFileGeneratorTestSupport.java @@ -59,7 +59,6 @@ import org.apache.activemq.util.ByteSequence; import org.slf4j.Logger; import org.slf4j.LoggerFactory; - public abstract class DataFileGeneratorTestSupport extends TestSupport { protected static final Object[] EMPTY_ARGUMENTS = {}; diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/ItStillMarshallsTheSameTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/ItStillMarshallsTheSameTest.java index 8372f594b96..1932d22bbc2 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/ItStillMarshallsTheSameTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/ItStillMarshallsTheSameTest.java @@ -18,6 +18,9 @@ import junit.framework.TestCase; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category;@Category(ParallelTest.class) + public class ItStillMarshallsTheSameTest extends TestCase { public void testAll() throws Exception { diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/NumberRangesWhileMarshallingTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/NumberRangesWhileMarshallingTest.java index 973a00734ba..575f801f1e4 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/NumberRangesWhileMarshallingTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/NumberRangesWhileMarshallingTest.java @@ -29,9 +29,13 @@ import org.slf4j.Logger; import org.slf4j.LoggerFactory; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * */ +@Category(ParallelTest.class) + public class NumberRangesWhileMarshallingTest extends TestCase { private static final Logger LOG = LoggerFactory.getLogger(NumberRangesWhileMarshallingTest.class); diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/OpenWireConnectionTimeoutTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/OpenWireConnectionTimeoutTest.java index c35e36ba575..8313929cfea 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/OpenWireConnectionTimeoutTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/OpenWireConnectionTimeoutTest.java @@ -44,10 +44,13 @@ import org.slf4j.Logger; import org.slf4j.LoggerFactory; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * Test that connection attempts that don't send the WireFormatInfo performative * get cleaned up by the inactivity monitor. */ +@Category(ParallelTest.class) @RunWith(Parameterized.class) public class OpenWireConnectionTimeoutTest { diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/WireFormatInfoData.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/WireFormatInfoData.java index 208a6ed2d17..acdfaef8059 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/WireFormatInfoData.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/WireFormatInfoData.java @@ -20,6 +20,9 @@ import org.apache.activemq.command.WireFormatInfo; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category;@Category(ParallelTest.class) + public class WireFormatInfoData extends DataFileGenerator { protected Object createObject() throws IOException { diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/WireFormatInfoPropertiesTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/WireFormatInfoPropertiesTest.java index 2eedd6595fc..8806956aaad 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/WireFormatInfoPropertiesTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/WireFormatInfoPropertiesTest.java @@ -38,6 +38,9 @@ import org.slf4j.Logger; import org.slf4j.LoggerFactory; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category;@Category(ParallelTest.class) + public class WireFormatInfoPropertiesTest { static final Logger LOG = LoggerFactory.getLogger(WireFormatInfoPropertiesTest.class); diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v1/ActiveMQBytesMessageTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v1/ActiveMQBytesMessageTest.java index a6a649c1c7e..ef17b4e15bd 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v1/ActiveMQBytesMessageTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v1/ActiveMQBytesMessageTest.java @@ -18,6 +18,9 @@ import org.apache.activemq.command.ActiveMQBytesMessage; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; + /** * Test case for the OpenWire marshalling for ActiveMQBytesMessage * @@ -28,6 +31,7 @@ * * */ +@Category(ParallelTest.class) public class ActiveMQBytesMessageTest extends ActiveMQMessageTest { public static final ActiveMQBytesMessageTest SINGLETON = new ActiveMQBytesMessageTest(); diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v1/ActiveMQDestinationTestSupport.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v1/ActiveMQDestinationTestSupport.java index bfa4aedfe8b..336d6d436d5 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v1/ActiveMQDestinationTestSupport.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v1/ActiveMQDestinationTestSupport.java @@ -18,7 +18,6 @@ import org.apache.activemq.command.ActiveMQDestination; import org.apache.activemq.openwire.DataFileGeneratorTestSupport; - /** * Test case for the OpenWire marshalling for ActiveMQDestination * @@ -29,6 +28,8 @@ * * */ + + public abstract class ActiveMQDestinationTestSupport extends DataFileGeneratorTestSupport { protected void populateObject(Object object) throws Exception { diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v1/ActiveMQMapMessageTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v1/ActiveMQMapMessageTest.java index 2a0915478b8..c87f092b721 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v1/ActiveMQMapMessageTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v1/ActiveMQMapMessageTest.java @@ -18,6 +18,9 @@ import org.apache.activemq.command.ActiveMQMapMessage; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; + /** * Test case for the OpenWire marshalling for ActiveMQMapMessage * @@ -28,6 +31,7 @@ * * */ +@Category(ParallelTest.class) public class ActiveMQMapMessageTest extends ActiveMQMessageTest { public static final ActiveMQMapMessageTest SINGLETON = new ActiveMQMapMessageTest(); diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v1/ActiveMQMessageTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v1/ActiveMQMessageTest.java index 79f252056d3..7faed845bca 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v1/ActiveMQMessageTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v1/ActiveMQMessageTest.java @@ -18,6 +18,9 @@ import org.apache.activemq.command.ActiveMQMessage; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; + /** * Test case for the OpenWire marshalling for ActiveMQMessage * @@ -28,6 +31,7 @@ * * */ +@Category(ParallelTest.class) public class ActiveMQMessageTest extends MessageTestSupport { public static final ActiveMQMessageTest SINGLETON = new ActiveMQMessageTest(); diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v1/ActiveMQObjectMessageTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v1/ActiveMQObjectMessageTest.java index 30d14765051..2a66bcd3f6f 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v1/ActiveMQObjectMessageTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v1/ActiveMQObjectMessageTest.java @@ -18,6 +18,9 @@ import org.apache.activemq.command.ActiveMQObjectMessage; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; + /** * Test case for the OpenWire marshalling for ActiveMQObjectMessage * @@ -28,6 +31,7 @@ * * */ +@Category(ParallelTest.class) public class ActiveMQObjectMessageTest extends ActiveMQMessageTest { public static final ActiveMQObjectMessageTest SINGLETON = new ActiveMQObjectMessageTest(); diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v1/ActiveMQQueueTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v1/ActiveMQQueueTest.java index 459090c5e47..359c8b98c55 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v1/ActiveMQQueueTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v1/ActiveMQQueueTest.java @@ -18,6 +18,8 @@ import org.apache.activemq.command.ActiveMQQueue; +import org.junit.experimental.categories.Category; +import org.apache.activemq.test.annotations.ParallelTest; /** * Test case for the OpenWire marshalling for ActiveMQQueue NOTE!: This file is * auto generated - do not modify! if you need to make a change, please see the @@ -26,6 +28,7 @@ * * */ +@Category(ParallelTest.class) public class ActiveMQQueueTest extends ActiveMQDestinationTestSupport { public static final ActiveMQQueueTest SINGLETON = new ActiveMQQueueTest(); diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v1/ActiveMQStreamMessageTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v1/ActiveMQStreamMessageTest.java index 66485546466..05454b79501 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v1/ActiveMQStreamMessageTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v1/ActiveMQStreamMessageTest.java @@ -18,6 +18,8 @@ import org.apache.activemq.command.ActiveMQStreamMessage; +import org.junit.experimental.categories.Category; +import org.apache.activemq.test.annotations.ParallelTest; /** * Test case for the OpenWire marshalling for ActiveMQStreamMessage NOTE!: This * file is auto generated - do not modify! if you need to make a change, please @@ -26,6 +28,7 @@ * * */ +@Category(ParallelTest.class) public class ActiveMQStreamMessageTest extends ActiveMQMessageTest { public static final ActiveMQStreamMessageTest SINGLETON = new ActiveMQStreamMessageTest(); diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v1/ActiveMQTempDestinationTestSupport.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v1/ActiveMQTempDestinationTestSupport.java index 73133c470a6..aa0c3c5fedc 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v1/ActiveMQTempDestinationTestSupport.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v1/ActiveMQTempDestinationTestSupport.java @@ -17,7 +17,6 @@ package org.apache.activemq.openwire.v1; import org.apache.activemq.command.ActiveMQTempDestination; - /** * Test case for the OpenWire marshalling for ActiveMQTempDestination NOTE!: * This file is auto generated - do not modify! if you need to make a change, @@ -26,6 +25,8 @@ * * */ + + public abstract class ActiveMQTempDestinationTestSupport extends ActiveMQDestinationTestSupport { protected void populateObject(Object object) throws Exception { diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v1/ActiveMQTempQueueTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v1/ActiveMQTempQueueTest.java index c358a5a8084..f367399c289 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v1/ActiveMQTempQueueTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v1/ActiveMQTempQueueTest.java @@ -18,6 +18,8 @@ import org.apache.activemq.command.ActiveMQTempQueue; +import org.junit.experimental.categories.Category; +import org.apache.activemq.test.annotations.ParallelTest; /** * Test case for the OpenWire marshalling for ActiveMQTempQueue NOTE!: This file * is auto generated - do not modify! if you need to make a change, please see @@ -26,6 +28,7 @@ * * */ +@Category(ParallelTest.class) public class ActiveMQTempQueueTest extends ActiveMQTempDestinationTestSupport { public static final ActiveMQTempQueueTest SINGLETON = new ActiveMQTempQueueTest(); diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v1/ActiveMQTempTopicTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v1/ActiveMQTempTopicTest.java index 18e33c0e34e..9dba8c0ab85 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v1/ActiveMQTempTopicTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v1/ActiveMQTempTopicTest.java @@ -18,6 +18,8 @@ import org.apache.activemq.command.ActiveMQTempTopic; +import org.junit.experimental.categories.Category; +import org.apache.activemq.test.annotations.ParallelTest; /** * Test case for the OpenWire marshalling for ActiveMQTempTopic NOTE!: This file * is auto generated - do not modify! if you need to make a change, please see @@ -26,6 +28,7 @@ * * */ +@Category(ParallelTest.class) public class ActiveMQTempTopicTest extends ActiveMQTempDestinationTestSupport { public static final ActiveMQTempTopicTest SINGLETON = new ActiveMQTempTopicTest(); diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v1/ActiveMQTextMessageTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v1/ActiveMQTextMessageTest.java index 839d7136732..5dd822cfbfd 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v1/ActiveMQTextMessageTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v1/ActiveMQTextMessageTest.java @@ -18,6 +18,8 @@ import org.apache.activemq.command.ActiveMQTextMessage; +import org.junit.experimental.categories.Category; +import org.apache.activemq.test.annotations.ParallelTest; /** * Test case for the OpenWire marshalling for ActiveMQTextMessage NOTE!: This * file is auto generated - do not modify! if you need to make a change, please @@ -26,6 +28,7 @@ * * */ +@Category(ParallelTest.class) public class ActiveMQTextMessageTest extends ActiveMQMessageTest { public static final ActiveMQTextMessageTest SINGLETON = new ActiveMQTextMessageTest(); diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v1/ActiveMQTopicTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v1/ActiveMQTopicTest.java index a08d43ae795..9d6aebe9b5b 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v1/ActiveMQTopicTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v1/ActiveMQTopicTest.java @@ -18,6 +18,8 @@ import org.apache.activemq.command.ActiveMQTopic; +import org.junit.experimental.categories.Category; +import org.apache.activemq.test.annotations.ParallelTest; /** * Test case for the OpenWire marshalling for ActiveMQTopic NOTE!: This file is * auto generated - do not modify! if you need to make a change, please see the @@ -26,6 +28,7 @@ * * */ +@Category(ParallelTest.class) public class ActiveMQTopicTest extends ActiveMQDestinationTestSupport { public static final ActiveMQTopicTest SINGLETON = new ActiveMQTopicTest(); diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v1/BaseCommandTestSupport.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v1/BaseCommandTestSupport.java index 3240cf0a170..4e54fa4dace 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v1/BaseCommandTestSupport.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v1/BaseCommandTestSupport.java @@ -18,7 +18,6 @@ import org.apache.activemq.command.BaseCommand; import org.apache.activemq.openwire.DataFileGeneratorTestSupport; - /** * Test case for the OpenWire marshalling for BaseCommand NOTE!: This file is * auto generated - do not modify! if you need to make a change, please see the @@ -27,6 +26,8 @@ * * */ + + public abstract class BaseCommandTestSupport extends DataFileGeneratorTestSupport { protected void populateObject(Object object) throws Exception { diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v1/BrokerIdTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v1/BrokerIdTest.java index 1893de31005..8e61c0c966b 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v1/BrokerIdTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v1/BrokerIdTest.java @@ -19,6 +19,8 @@ import org.apache.activemq.command.BrokerId; import org.apache.activemq.openwire.DataFileGeneratorTestSupport; +import org.junit.experimental.categories.Category; +import org.apache.activemq.test.annotations.ParallelTest; /** * Test case for the OpenWire marshalling for BrokerId * @@ -29,6 +31,7 @@ * * */ +@Category(ParallelTest.class) public class BrokerIdTest extends DataFileGeneratorTestSupport { public static final BrokerIdTest SINGLETON = new BrokerIdTest(); diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v1/BrokerInfoTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v1/BrokerInfoTest.java index e0541e2ab8f..d9658ef9b24 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v1/BrokerInfoTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v1/BrokerInfoTest.java @@ -18,6 +18,8 @@ import org.apache.activemq.command.BrokerInfo; +import org.junit.experimental.categories.Category; +import org.apache.activemq.test.annotations.ParallelTest; /** * Test case for the OpenWire marshalling for BrokerInfo NOTE!: This file is * auto generated - do not modify! if you need to make a change, please see the @@ -26,6 +28,7 @@ * * */ +@Category(ParallelTest.class) public class BrokerInfoTest extends BaseCommandTestSupport { public static final BrokerInfoTest SINGLETON = new BrokerInfoTest(); diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v1/ConnectionControlTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v1/ConnectionControlTest.java index 4dae00326dc..a63609d75f0 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v1/ConnectionControlTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v1/ConnectionControlTest.java @@ -18,6 +18,8 @@ import org.apache.activemq.command.ConnectionControl; +import org.junit.experimental.categories.Category; +import org.apache.activemq.test.annotations.ParallelTest; /** * Test case for the OpenWire marshalling for ConnectionControl * @@ -28,6 +30,7 @@ * * */ +@Category(ParallelTest.class) public class ConnectionControlTest extends BaseCommandTestSupport { public static final ConnectionControlTest SINGLETON = new ConnectionControlTest(); diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v1/ConnectionErrorTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v1/ConnectionErrorTest.java index 438fe6b373e..8fbd398cf3b 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v1/ConnectionErrorTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v1/ConnectionErrorTest.java @@ -18,6 +18,8 @@ import org.apache.activemq.command.ConnectionError; +import org.junit.experimental.categories.Category; +import org.apache.activemq.test.annotations.ParallelTest; /** * Test case for the OpenWire marshalling for ConnectionError * @@ -28,6 +30,7 @@ * * */ +@Category(ParallelTest.class) public class ConnectionErrorTest extends BaseCommandTestSupport { public static final ConnectionErrorTest SINGLETON = new ConnectionErrorTest(); diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v1/ConnectionIdTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v1/ConnectionIdTest.java index 3dd221e28c6..d37834f4599 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v1/ConnectionIdTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v1/ConnectionIdTest.java @@ -19,6 +19,8 @@ import org.apache.activemq.command.ConnectionId; import org.apache.activemq.openwire.DataFileGeneratorTestSupport; +import org.junit.experimental.categories.Category; +import org.apache.activemq.test.annotations.ParallelTest; /** * Test case for the OpenWire marshalling for ConnectionId * @@ -29,6 +31,7 @@ * * */ +@Category(ParallelTest.class) public class ConnectionIdTest extends DataFileGeneratorTestSupport { public static final ConnectionIdTest SINGLETON = new ConnectionIdTest(); diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v1/ConnectionInfoTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v1/ConnectionInfoTest.java index 9b457272b33..a7451e8b4e4 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v1/ConnectionInfoTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v1/ConnectionInfoTest.java @@ -19,6 +19,8 @@ import org.apache.activemq.command.BrokerId; import org.apache.activemq.command.ConnectionInfo; +import org.junit.experimental.categories.Category; +import org.apache.activemq.test.annotations.ParallelTest; /** * Test case for the OpenWire marshalling for ConnectionInfo NOTE!: This file is * auto generated - do not modify! if you need to make a change, please see the @@ -27,6 +29,7 @@ * * */ +@Category(ParallelTest.class) public class ConnectionInfoTest extends BaseCommandTestSupport { public static final ConnectionInfoTest SINGLETON = new ConnectionInfoTest(); diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v1/ConsumerControlTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v1/ConsumerControlTest.java index 4ea061d01aa..1be9eec22ba 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v1/ConsumerControlTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v1/ConsumerControlTest.java @@ -18,6 +18,8 @@ import org.apache.activemq.command.ConsumerControl; +import org.junit.experimental.categories.Category; +import org.apache.activemq.test.annotations.ParallelTest; /** * Test case for the OpenWire marshalling for ConsumerControl * @@ -28,6 +30,7 @@ * * */ +@Category(ParallelTest.class) public class ConsumerControlTest extends BaseCommandTestSupport { public static final ConsumerControlTest SINGLETON = new ConsumerControlTest(); diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v1/ConsumerIdTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v1/ConsumerIdTest.java index c31d8ef3502..7955924352c 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v1/ConsumerIdTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v1/ConsumerIdTest.java @@ -19,6 +19,8 @@ import org.apache.activemq.command.ConsumerId; import org.apache.activemq.openwire.DataFileGeneratorTestSupport; +import org.junit.experimental.categories.Category; +import org.apache.activemq.test.annotations.ParallelTest; /** * Test case for the OpenWire marshalling for ConsumerId * @@ -29,6 +31,7 @@ * * */ +@Category(ParallelTest.class) public class ConsumerIdTest extends DataFileGeneratorTestSupport { public static final ConsumerIdTest SINGLETON = new ConsumerIdTest(); diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v1/ConsumerInfoTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v1/ConsumerInfoTest.java index 50efd51e0d3..bd6007a20dd 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v1/ConsumerInfoTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v1/ConsumerInfoTest.java @@ -19,6 +19,8 @@ import org.apache.activemq.command.BrokerId; import org.apache.activemq.command.ConsumerInfo; +import org.junit.experimental.categories.Category; +import org.apache.activemq.test.annotations.ParallelTest; /** * Test case for the OpenWire marshalling for ConsumerInfo NOTE!: This file is * auto generated - do not modify! if you need to make a change, please see the @@ -27,6 +29,7 @@ * * */ +@Category(ParallelTest.class) public class ConsumerInfoTest extends BaseCommandTestSupport { public static final ConsumerInfoTest SINGLETON = new ConsumerInfoTest(); diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v1/ControlCommandTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v1/ControlCommandTest.java index 1efa08d1585..5ab72c68f88 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v1/ControlCommandTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v1/ControlCommandTest.java @@ -18,6 +18,8 @@ import org.apache.activemq.command.ControlCommand; +import org.junit.experimental.categories.Category; +import org.apache.activemq.test.annotations.ParallelTest; /** * Test case for the OpenWire marshalling for ControlCommand * @@ -28,6 +30,7 @@ * * */ +@Category(ParallelTest.class) public class ControlCommandTest extends BaseCommandTestSupport { public static final ControlCommandTest SINGLETON = new ControlCommandTest(); diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v1/DataArrayResponseTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v1/DataArrayResponseTest.java index 3523ea74f20..1e7a2513ab7 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v1/DataArrayResponseTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v1/DataArrayResponseTest.java @@ -19,6 +19,8 @@ import org.apache.activemq.command.DataArrayResponse; import org.apache.activemq.command.DataStructure; +import org.junit.experimental.categories.Category; +import org.apache.activemq.test.annotations.ParallelTest; /** * Test case for the OpenWire marshalling for DataArrayResponse NOTE!: This file * is auto generated - do not modify! if you need to make a change, please see @@ -27,6 +29,7 @@ * * */ +@Category(ParallelTest.class) public class DataArrayResponseTest extends ResponseTest { public static final DataArrayResponseTest SINGLETON = new DataArrayResponseTest(); diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v1/DataResponseTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v1/DataResponseTest.java index cffbd0a223a..eb04189315b 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v1/DataResponseTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v1/DataResponseTest.java @@ -18,6 +18,8 @@ import org.apache.activemq.command.DataResponse; +import org.junit.experimental.categories.Category; +import org.apache.activemq.test.annotations.ParallelTest; /** * Test case for the OpenWire marshalling for DataResponse * @@ -28,6 +30,7 @@ * * */ +@Category(ParallelTest.class) public class DataResponseTest extends ResponseTest { public static final DataResponseTest SINGLETON = new DataResponseTest(); diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v1/DestinationInfoTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v1/DestinationInfoTest.java index 20688f5ea72..355adfc4c14 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v1/DestinationInfoTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v1/DestinationInfoTest.java @@ -19,6 +19,8 @@ import org.apache.activemq.command.BrokerId; import org.apache.activemq.command.DestinationInfo; +import org.junit.experimental.categories.Category; +import org.apache.activemq.test.annotations.ParallelTest; /** * Test case for the OpenWire marshalling for DestinationInfo NOTE!: This file * is auto generated - do not modify! if you need to make a change, please see @@ -27,6 +29,7 @@ * * */ +@Category(ParallelTest.class) public class DestinationInfoTest extends BaseCommandTestSupport { public static final DestinationInfoTest SINGLETON = new DestinationInfoTest(); diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v1/DiscoveryEventTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v1/DiscoveryEventTest.java index 33a33b59ea8..3d4221e0abb 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v1/DiscoveryEventTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v1/DiscoveryEventTest.java @@ -19,6 +19,8 @@ import org.apache.activemq.command.DiscoveryEvent; import org.apache.activemq.openwire.DataFileGeneratorTestSupport; +import org.junit.experimental.categories.Category; +import org.apache.activemq.test.annotations.ParallelTest; /** * Test case for the OpenWire marshalling for DiscoveryEvent * @@ -29,6 +31,7 @@ * * */ +@Category(ParallelTest.class) public class DiscoveryEventTest extends DataFileGeneratorTestSupport { public static final DiscoveryEventTest SINGLETON = new DiscoveryEventTest(); diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v1/ExceptionResponseTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v1/ExceptionResponseTest.java index 01074ecd0de..585218a0b17 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v1/ExceptionResponseTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v1/ExceptionResponseTest.java @@ -18,6 +18,8 @@ import org.apache.activemq.command.ExceptionResponse; +import org.junit.experimental.categories.Category; +import org.apache.activemq.test.annotations.ParallelTest; /** * Test case for the OpenWire marshalling for ExceptionResponse * @@ -28,6 +30,7 @@ * * */ +@Category(ParallelTest.class) public class ExceptionResponseTest extends ResponseTest { public static final ExceptionResponseTest SINGLETON = new ExceptionResponseTest(); diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v1/FlushCommandTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v1/FlushCommandTest.java index 508444016cc..1f6363375b7 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v1/FlushCommandTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v1/FlushCommandTest.java @@ -18,6 +18,8 @@ import org.apache.activemq.command.FlushCommand; +import org.junit.experimental.categories.Category; +import org.apache.activemq.test.annotations.ParallelTest; /** * Test case for the OpenWire marshalling for FlushCommand * @@ -28,6 +30,7 @@ * * */ +@Category(ParallelTest.class) public class FlushCommandTest extends BaseCommandTestSupport { public static final FlushCommandTest SINGLETON = new FlushCommandTest(); diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v1/IntegerResponseTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v1/IntegerResponseTest.java index fb33c720e43..25cf3496be0 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v1/IntegerResponseTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v1/IntegerResponseTest.java @@ -18,6 +18,8 @@ import org.apache.activemq.command.IntegerResponse; +import org.junit.experimental.categories.Category; +import org.apache.activemq.test.annotations.ParallelTest; /** * Test case for the OpenWire marshalling for IntegerResponse * @@ -28,6 +30,7 @@ * * */ +@Category(ParallelTest.class) public class IntegerResponseTest extends ResponseTest { public static final IntegerResponseTest SINGLETON = new IntegerResponseTest(); diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v1/JournalQueueAckTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v1/JournalQueueAckTest.java index 47ace83e454..5e7022fe5b2 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v1/JournalQueueAckTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v1/JournalQueueAckTest.java @@ -19,6 +19,8 @@ import org.apache.activemq.command.JournalQueueAck; import org.apache.activemq.openwire.DataFileGeneratorTestSupport; +import org.junit.experimental.categories.Category; +import org.apache.activemq.test.annotations.ParallelTest; /** * Test case for the OpenWire marshalling for JournalQueueAck * @@ -29,6 +31,7 @@ * * */ +@Category(ParallelTest.class) public class JournalQueueAckTest extends DataFileGeneratorTestSupport { public static final JournalQueueAckTest SINGLETON = new JournalQueueAckTest(); diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v1/JournalTopicAckTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v1/JournalTopicAckTest.java index d74528b1eac..644fe6fe632 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v1/JournalTopicAckTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v1/JournalTopicAckTest.java @@ -19,6 +19,8 @@ import org.apache.activemq.command.JournalTopicAck; import org.apache.activemq.openwire.DataFileGeneratorTestSupport; +import org.junit.experimental.categories.Category; +import org.apache.activemq.test.annotations.ParallelTest; /** * Test case for the OpenWire marshalling for JournalTopicAck * @@ -29,6 +31,7 @@ * * */ +@Category(ParallelTest.class) public class JournalTopicAckTest extends DataFileGeneratorTestSupport { public static final JournalTopicAckTest SINGLETON = new JournalTopicAckTest(); diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v1/JournalTraceTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v1/JournalTraceTest.java index aad70601ff4..169ffe31d0a 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v1/JournalTraceTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v1/JournalTraceTest.java @@ -19,6 +19,8 @@ import org.apache.activemq.command.JournalTrace; import org.apache.activemq.openwire.DataFileGeneratorTestSupport; +import org.junit.experimental.categories.Category; +import org.apache.activemq.test.annotations.ParallelTest; /** * Test case for the OpenWire marshalling for JournalTrace * @@ -29,6 +31,7 @@ * * */ +@Category(ParallelTest.class) public class JournalTraceTest extends DataFileGeneratorTestSupport { public static final JournalTraceTest SINGLETON = new JournalTraceTest(); diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v1/JournalTransactionTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v1/JournalTransactionTest.java index 6e7008e96bd..6e9dbfbb8d3 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v1/JournalTransactionTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v1/JournalTransactionTest.java @@ -19,6 +19,8 @@ import org.apache.activemq.command.JournalTransaction; import org.apache.activemq.openwire.DataFileGeneratorTestSupport; +import org.junit.experimental.categories.Category; +import org.apache.activemq.test.annotations.ParallelTest; /** * Test case for the OpenWire marshalling for JournalTransaction * @@ -29,6 +31,7 @@ * * */ +@Category(ParallelTest.class) public class JournalTransactionTest extends DataFileGeneratorTestSupport { public static final JournalTransactionTest SINGLETON = new JournalTransactionTest(); diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v1/KeepAliveInfoTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v1/KeepAliveInfoTest.java index 4a880bf2d87..f0903eb53e9 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v1/KeepAliveInfoTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v1/KeepAliveInfoTest.java @@ -18,6 +18,8 @@ import org.apache.activemq.command.KeepAliveInfo; +import org.junit.experimental.categories.Category; +import org.apache.activemq.test.annotations.ParallelTest; /** * Test case for the OpenWire marshalling for KeepAliveInfo * @@ -28,6 +30,7 @@ * * */ +@Category(ParallelTest.class) public class KeepAliveInfoTest extends BaseCommandTestSupport { public static final KeepAliveInfoTest SINGLETON = new KeepAliveInfoTest(); diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v1/LastPartialCommandTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v1/LastPartialCommandTest.java index c992ad4b54a..52696602767 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v1/LastPartialCommandTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v1/LastPartialCommandTest.java @@ -18,6 +18,8 @@ import org.apache.activemq.command.LastPartialCommand; +import org.junit.experimental.categories.Category; +import org.apache.activemq.test.annotations.ParallelTest; /** * Test case for the OpenWire marshalling for LastPartialCommand * @@ -28,6 +30,7 @@ * * */ +@Category(ParallelTest.class) public class LastPartialCommandTest extends PartialCommandTest { public static final LastPartialCommandTest SINGLETON = new LastPartialCommandTest(); diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v1/LocalTransactionIdTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v1/LocalTransactionIdTest.java index 2275a30e2e0..97f443d2d16 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v1/LocalTransactionIdTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v1/LocalTransactionIdTest.java @@ -18,6 +18,8 @@ import org.apache.activemq.command.LocalTransactionId; +import org.junit.experimental.categories.Category; +import org.apache.activemq.test.annotations.ParallelTest; /** * Test case for the OpenWire marshalling for LocalTransactionId * @@ -28,6 +30,7 @@ * * */ +@Category(ParallelTest.class) public class LocalTransactionIdTest extends TransactionIdTestSupport { public static final LocalTransactionIdTest SINGLETON = new LocalTransactionIdTest(); diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v1/MessageAckTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v1/MessageAckTest.java index 1a055dad37a..b3a280da616 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v1/MessageAckTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v1/MessageAckTest.java @@ -18,6 +18,8 @@ import org.apache.activemq.command.MessageAck; +import org.junit.experimental.categories.Category; +import org.apache.activemq.test.annotations.ParallelTest; /** * Test case for the OpenWire marshalling for MessageAck * @@ -28,6 +30,7 @@ * * */ +@Category(ParallelTest.class) public class MessageAckTest extends BaseCommandTestSupport { public static final MessageAckTest SINGLETON = new MessageAckTest(); diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v1/MessageDispatchNotificationTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v1/MessageDispatchNotificationTest.java index 94589e554cc..68828dd472f 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v1/MessageDispatchNotificationTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v1/MessageDispatchNotificationTest.java @@ -18,6 +18,8 @@ import org.apache.activemq.command.MessageDispatchNotification; +import org.junit.experimental.categories.Category; +import org.apache.activemq.test.annotations.ParallelTest; /** * Test case for the OpenWire marshalling for MessageDispatchNotification * @@ -28,6 +30,7 @@ * * */ +@Category(ParallelTest.class) public class MessageDispatchNotificationTest extends BaseCommandTestSupport { public static final MessageDispatchNotificationTest SINGLETON = new MessageDispatchNotificationTest(); diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v1/MessageDispatchTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v1/MessageDispatchTest.java index f7ffda674ab..ca2f2f6514e 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v1/MessageDispatchTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v1/MessageDispatchTest.java @@ -18,6 +18,8 @@ import org.apache.activemq.command.MessageDispatch; +import org.junit.experimental.categories.Category; +import org.apache.activemq.test.annotations.ParallelTest; /** * Test case for the OpenWire marshalling for MessageDispatch * @@ -28,6 +30,7 @@ * * */ +@Category(ParallelTest.class) public class MessageDispatchTest extends BaseCommandTestSupport { public static final MessageDispatchTest SINGLETON = new MessageDispatchTest(); diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v1/MessageIdTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v1/MessageIdTest.java index 4f3b4f68163..0e37d4cb1c8 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v1/MessageIdTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v1/MessageIdTest.java @@ -19,6 +19,8 @@ import org.apache.activemq.command.MessageId; import org.apache.activemq.openwire.DataFileGeneratorTestSupport; +import org.junit.experimental.categories.Category; +import org.apache.activemq.test.annotations.ParallelTest; /** * Test case for the OpenWire marshalling for MessageId * @@ -29,6 +31,7 @@ * * */ +@Category(ParallelTest.class) public class MessageIdTest extends DataFileGeneratorTestSupport { public static final MessageIdTest SINGLETON = new MessageIdTest(); diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v1/MessageTestSupport.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v1/MessageTestSupport.java index 037375cbb42..e4fd2ba528f 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v1/MessageTestSupport.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v1/MessageTestSupport.java @@ -24,7 +24,6 @@ import org.apache.activemq.command.Message; import org.apache.activemq.util.ByteArrayOutputStream; import org.apache.activemq.util.MarshallingSupport; - /** * Test case for the OpenWire marshalling for Message NOTE!: This file is auto * generated - do not modify! if you need to make a change, please see the @@ -33,6 +32,8 @@ * * */ + + public abstract class MessageTestSupport extends BaseCommandTestSupport { protected void populateObject(Object object) throws Exception { diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v1/NetworkBridgeFilterTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v1/NetworkBridgeFilterTest.java index 068af0b2ef6..ece32916d74 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v1/NetworkBridgeFilterTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v1/NetworkBridgeFilterTest.java @@ -19,6 +19,8 @@ import org.apache.activemq.command.NetworkBridgeFilter; import org.apache.activemq.openwire.DataFileGeneratorTestSupport; +import org.junit.experimental.categories.Category; +import org.apache.activemq.test.annotations.ParallelTest; /** * Test case for the OpenWire marshalling for NetworkBridgeFilter * @@ -29,6 +31,7 @@ * * */ +@Category(ParallelTest.class) public class NetworkBridgeFilterTest extends DataFileGeneratorTestSupport { public static final NetworkBridgeFilterTest SINGLETON = new NetworkBridgeFilterTest(); diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v1/PartialCommandTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v1/PartialCommandTest.java index bdbe27d2a9c..9f50f6d1bf5 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v1/PartialCommandTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v1/PartialCommandTest.java @@ -19,6 +19,8 @@ import org.apache.activemq.command.PartialCommand; import org.apache.activemq.openwire.DataFileGeneratorTestSupport; +import org.junit.experimental.categories.Category; +import org.apache.activemq.test.annotations.ParallelTest; /** * Test case for the OpenWire marshalling for PartialCommand * @@ -29,6 +31,7 @@ * * */ +@Category(ParallelTest.class) public class PartialCommandTest extends DataFileGeneratorTestSupport { public static final PartialCommandTest SINGLETON = new PartialCommandTest(); diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v1/ProducerIdTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v1/ProducerIdTest.java index d67dbaf3759..4c48a9285bd 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v1/ProducerIdTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v1/ProducerIdTest.java @@ -19,6 +19,8 @@ import org.apache.activemq.command.ProducerId; import org.apache.activemq.openwire.DataFileGeneratorTestSupport; +import org.junit.experimental.categories.Category; +import org.apache.activemq.test.annotations.ParallelTest; /** * Test case for the OpenWire marshalling for ProducerId * @@ -29,6 +31,7 @@ * * */ +@Category(ParallelTest.class) public class ProducerIdTest extends DataFileGeneratorTestSupport { public static final ProducerIdTest SINGLETON = new ProducerIdTest(); diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v1/ProducerInfoTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v1/ProducerInfoTest.java index 8d8b5b81593..0e5b7e65f82 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v1/ProducerInfoTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v1/ProducerInfoTest.java @@ -19,6 +19,8 @@ import org.apache.activemq.command.BrokerId; import org.apache.activemq.command.ProducerInfo; +import org.junit.experimental.categories.Category; +import org.apache.activemq.test.annotations.ParallelTest; /** * Test case for the OpenWire marshalling for ProducerInfo NOTE!: This file is * auto generated - do not modify! if you need to make a change, please see the @@ -27,6 +29,7 @@ * * */ +@Category(ParallelTest.class) public class ProducerInfoTest extends BaseCommandTestSupport { public static final ProducerInfoTest SINGLETON = new ProducerInfoTest(); diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v1/RemoveInfoTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v1/RemoveInfoTest.java index 3d09942ed25..c588d62e245 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v1/RemoveInfoTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v1/RemoveInfoTest.java @@ -18,6 +18,8 @@ import org.apache.activemq.command.RemoveInfo; +import org.junit.experimental.categories.Category; +import org.apache.activemq.test.annotations.ParallelTest; /** * Test case for the OpenWire marshalling for RemoveInfo * @@ -28,6 +30,7 @@ * * */ +@Category(ParallelTest.class) public class RemoveInfoTest extends BaseCommandTestSupport { public static final RemoveInfoTest SINGLETON = new RemoveInfoTest(); diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v1/RemoveSubscriptionInfoTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v1/RemoveSubscriptionInfoTest.java index 32697dda929..562405316aa 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v1/RemoveSubscriptionInfoTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v1/RemoveSubscriptionInfoTest.java @@ -18,6 +18,8 @@ import org.apache.activemq.command.RemoveSubscriptionInfo; +import org.junit.experimental.categories.Category; +import org.apache.activemq.test.annotations.ParallelTest; /** * Test case for the OpenWire marshalling for RemoveSubscriptionInfo * @@ -28,6 +30,7 @@ * * */ +@Category(ParallelTest.class) public class RemoveSubscriptionInfoTest extends BaseCommandTestSupport { public static final RemoveSubscriptionInfoTest SINGLETON = new RemoveSubscriptionInfoTest(); diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v1/ReplayCommandTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v1/ReplayCommandTest.java index d9decb4641e..304efe21763 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v1/ReplayCommandTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v1/ReplayCommandTest.java @@ -18,6 +18,8 @@ import org.apache.activemq.command.ReplayCommand; +import org.junit.experimental.categories.Category; +import org.apache.activemq.test.annotations.ParallelTest; /** * Test case for the OpenWire marshalling for ReplayCommand * @@ -28,6 +30,7 @@ * * */ +@Category(ParallelTest.class) public class ReplayCommandTest extends BaseCommandTestSupport { public static final ReplayCommandTest SINGLETON = new ReplayCommandTest(); diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v1/ResponseTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v1/ResponseTest.java index 80c6fa4f5f6..73363cb2665 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v1/ResponseTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v1/ResponseTest.java @@ -18,6 +18,8 @@ import org.apache.activemq.command.Response; +import org.junit.experimental.categories.Category; +import org.apache.activemq.test.annotations.ParallelTest; /** * Test case for the OpenWire marshalling for Response * @@ -28,6 +30,7 @@ * * */ +@Category(ParallelTest.class) public class ResponseTest extends BaseCommandTestSupport { public static final ResponseTest SINGLETON = new ResponseTest(); diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v1/SessionIdTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v1/SessionIdTest.java index a928a4b09bd..bb7b0b84408 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v1/SessionIdTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v1/SessionIdTest.java @@ -19,6 +19,8 @@ import org.apache.activemq.command.SessionId; import org.apache.activemq.openwire.DataFileGeneratorTestSupport; +import org.junit.experimental.categories.Category; +import org.apache.activemq.test.annotations.ParallelTest; /** * Test case for the OpenWire marshalling for SessionId * @@ -29,6 +31,7 @@ * * */ +@Category(ParallelTest.class) public class SessionIdTest extends DataFileGeneratorTestSupport { public static final SessionIdTest SINGLETON = new SessionIdTest(); diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v1/SessionInfoTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v1/SessionInfoTest.java index 8dc1bb0cbeb..d9cc0be47c3 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v1/SessionInfoTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v1/SessionInfoTest.java @@ -18,6 +18,8 @@ import org.apache.activemq.command.SessionInfo; +import org.junit.experimental.categories.Category; +import org.apache.activemq.test.annotations.ParallelTest; /** * Test case for the OpenWire marshalling for SessionInfo * @@ -28,6 +30,7 @@ * * */ +@Category(ParallelTest.class) public class SessionInfoTest extends BaseCommandTestSupport { public static final SessionInfoTest SINGLETON = new SessionInfoTest(); diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v1/ShutdownInfoTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v1/ShutdownInfoTest.java index ee8dc4da388..4498649f66d 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v1/ShutdownInfoTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v1/ShutdownInfoTest.java @@ -18,6 +18,8 @@ import org.apache.activemq.command.ShutdownInfo; +import org.junit.experimental.categories.Category; +import org.apache.activemq.test.annotations.ParallelTest; /** * Test case for the OpenWire marshalling for ShutdownInfo * @@ -28,6 +30,7 @@ * * */ +@Category(ParallelTest.class) public class ShutdownInfoTest extends BaseCommandTestSupport { public static final ShutdownInfoTest SINGLETON = new ShutdownInfoTest(); diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v1/SubscriptionInfoTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v1/SubscriptionInfoTest.java index 5eae49607a1..4522403e482 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v1/SubscriptionInfoTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v1/SubscriptionInfoTest.java @@ -19,6 +19,8 @@ import org.apache.activemq.command.SubscriptionInfo; import org.apache.activemq.openwire.DataFileGeneratorTestSupport; +import org.junit.experimental.categories.Category; +import org.apache.activemq.test.annotations.ParallelTest; /** * Test case for the OpenWire marshalling for SubscriptionInfo * @@ -29,6 +31,7 @@ * * */ +@Category(ParallelTest.class) public class SubscriptionInfoTest extends DataFileGeneratorTestSupport { public static final SubscriptionInfoTest SINGLETON = new SubscriptionInfoTest(); diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v1/TransactionIdTestSupport.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v1/TransactionIdTestSupport.java index 8c77aa938f7..81f4f8612f9 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v1/TransactionIdTestSupport.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v1/TransactionIdTestSupport.java @@ -18,7 +18,6 @@ import org.apache.activemq.command.TransactionId; import org.apache.activemq.openwire.DataFileGeneratorTestSupport; - /** * Test case for the OpenWire marshalling for TransactionId * @@ -29,6 +28,8 @@ * * */ + + public abstract class TransactionIdTestSupport extends DataFileGeneratorTestSupport { protected void populateObject(Object object) throws Exception { diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v1/TransactionInfoTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v1/TransactionInfoTest.java index a5e558b8fdb..cbea596ba6e 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v1/TransactionInfoTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v1/TransactionInfoTest.java @@ -18,6 +18,8 @@ import org.apache.activemq.command.TransactionInfo; +import org.junit.experimental.categories.Category; +import org.apache.activemq.test.annotations.ParallelTest; /** * Test case for the OpenWire marshalling for TransactionInfo * @@ -28,6 +30,7 @@ * * */ +@Category(ParallelTest.class) public class TransactionInfoTest extends BaseCommandTestSupport { public static final TransactionInfoTest SINGLETON = new TransactionInfoTest(); diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v1/WireFormatInfoTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v1/WireFormatInfoTest.java index 5298b99663a..30894f6826a 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v1/WireFormatInfoTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v1/WireFormatInfoTest.java @@ -19,6 +19,8 @@ import org.apache.activemq.command.WireFormatInfo; import org.apache.activemq.openwire.DataFileGeneratorTestSupport; +import org.junit.experimental.categories.Category; +import org.apache.activemq.test.annotations.ParallelTest; /** * Test case for the OpenWire marshalling for WireFormatInfo NOTE!: This file is * auto generated - do not modify! if you need to make a change, please see the @@ -27,6 +29,7 @@ * * */ +@Category(ParallelTest.class) public class WireFormatInfoTest extends DataFileGeneratorTestSupport { public static final WireFormatInfoTest SINGLETON = new WireFormatInfoTest(); diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v1/XATransactionIdTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v1/XATransactionIdTest.java index 013c9864a98..a8f39ed65fe 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v1/XATransactionIdTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v1/XATransactionIdTest.java @@ -18,6 +18,8 @@ import org.apache.activemq.command.XATransactionId; +import org.junit.experimental.categories.Category; +import org.apache.activemq.test.annotations.ParallelTest; /** * Test case for the OpenWire marshalling for XATransactionId * @@ -28,6 +30,7 @@ * * */ +@Category(ParallelTest.class) public class XATransactionIdTest extends TransactionIdTestSupport { public static final XATransactionIdTest SINGLETON = new XATransactionIdTest(); diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v2/ActiveMQBytesMessageTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v2/ActiveMQBytesMessageTest.java index 458821964c1..d7b5b0b53d5 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v2/ActiveMQBytesMessageTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v2/ActiveMQBytesMessageTest.java @@ -18,6 +18,8 @@ import org.apache.activemq.command.ActiveMQBytesMessage; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * Test case for the OpenWire marshalling for ActiveMQBytesMessage * @@ -28,6 +30,8 @@ * * */ +@Category(ParallelTest.class) + public class ActiveMQBytesMessageTest extends ActiveMQMessageTest { public static final ActiveMQBytesMessageTest SINGLETON = new ActiveMQBytesMessageTest(); diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v2/ActiveMQDestinationTestSupport.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v2/ActiveMQDestinationTestSupport.java index f582368e033..0e99469c3d9 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v2/ActiveMQDestinationTestSupport.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v2/ActiveMQDestinationTestSupport.java @@ -18,7 +18,6 @@ import org.apache.activemq.command.ActiveMQDestination; import org.apache.activemq.openwire.DataFileGeneratorTestSupport; - /** * Test case for the OpenWire marshalling for ActiveMQDestination * @@ -29,6 +28,8 @@ * * */ + + public abstract class ActiveMQDestinationTestSupport extends DataFileGeneratorTestSupport { protected void populateObject(Object object) throws Exception { diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v2/ActiveMQMapMessageTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v2/ActiveMQMapMessageTest.java index 45e531afaa7..7857b6ff26b 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v2/ActiveMQMapMessageTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v2/ActiveMQMapMessageTest.java @@ -18,6 +18,8 @@ import org.apache.activemq.command.ActiveMQMapMessage; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * Test case for the OpenWire marshalling for ActiveMQMapMessage * @@ -28,6 +30,8 @@ * * */ +@Category(ParallelTest.class) + public class ActiveMQMapMessageTest extends ActiveMQMessageTest { public static final ActiveMQMapMessageTest SINGLETON = new ActiveMQMapMessageTest(); diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v2/ActiveMQMessageTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v2/ActiveMQMessageTest.java index eb1d050f259..2ff2eb5a856 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v2/ActiveMQMessageTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v2/ActiveMQMessageTest.java @@ -18,6 +18,8 @@ import org.apache.activemq.command.ActiveMQMessage; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * Test case for the OpenWire marshalling for ActiveMQMessage * @@ -28,6 +30,8 @@ * * */ +@Category(ParallelTest.class) + public class ActiveMQMessageTest extends MessageTestSupport { public static final ActiveMQMessageTest SINGLETON = new ActiveMQMessageTest(); diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v2/ActiveMQObjectMessageTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v2/ActiveMQObjectMessageTest.java index ddb9b1b3122..5657123df70 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v2/ActiveMQObjectMessageTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v2/ActiveMQObjectMessageTest.java @@ -18,6 +18,8 @@ import org.apache.activemq.command.ActiveMQObjectMessage; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * Test case for the OpenWire marshalling for ActiveMQObjectMessage * @@ -28,6 +30,8 @@ * * */ +@Category(ParallelTest.class) + public class ActiveMQObjectMessageTest extends ActiveMQMessageTest { public static final ActiveMQObjectMessageTest SINGLETON = new ActiveMQObjectMessageTest(); diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v2/ActiveMQQueueTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v2/ActiveMQQueueTest.java index 453f702cad5..7642e298a86 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v2/ActiveMQQueueTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v2/ActiveMQQueueTest.java @@ -18,6 +18,8 @@ import org.apache.activemq.command.ActiveMQQueue; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * Test case for the OpenWire marshalling for ActiveMQQueue * @@ -28,6 +30,8 @@ * * */ +@Category(ParallelTest.class) + public class ActiveMQQueueTest extends ActiveMQDestinationTestSupport { public static final ActiveMQQueueTest SINGLETON = new ActiveMQQueueTest(); diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v2/ActiveMQStreamMessageTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v2/ActiveMQStreamMessageTest.java index 21ccc88139e..4bfcb9b2c52 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v2/ActiveMQStreamMessageTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v2/ActiveMQStreamMessageTest.java @@ -18,6 +18,8 @@ import org.apache.activemq.command.ActiveMQStreamMessage; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * Test case for the OpenWire marshalling for ActiveMQStreamMessage * @@ -28,6 +30,8 @@ * * */ +@Category(ParallelTest.class) + public class ActiveMQStreamMessageTest extends ActiveMQMessageTest { public static final ActiveMQStreamMessageTest SINGLETON = new ActiveMQStreamMessageTest(); diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v2/ActiveMQTempDestinationTestSupport.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v2/ActiveMQTempDestinationTestSupport.java index db609bfa2c8..bf72edd93fc 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v2/ActiveMQTempDestinationTestSupport.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v2/ActiveMQTempDestinationTestSupport.java @@ -17,7 +17,6 @@ package org.apache.activemq.openwire.v2; import org.apache.activemq.command.ActiveMQTempDestination; - /** * Test case for the OpenWire marshalling for ActiveMQTempDestination * @@ -28,6 +27,8 @@ * * */ + + public abstract class ActiveMQTempDestinationTestSupport extends ActiveMQDestinationTestSupport { protected void populateObject(Object object) throws Exception { diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v2/ActiveMQTempQueueTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v2/ActiveMQTempQueueTest.java index 817996f732d..dae91bcf955 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v2/ActiveMQTempQueueTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v2/ActiveMQTempQueueTest.java @@ -18,6 +18,8 @@ import org.apache.activemq.command.ActiveMQTempQueue; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * Test case for the OpenWire marshalling for ActiveMQTempQueue * @@ -28,6 +30,8 @@ * * */ +@Category(ParallelTest.class) + public class ActiveMQTempQueueTest extends ActiveMQTempDestinationTestSupport { public static final ActiveMQTempQueueTest SINGLETON = new ActiveMQTempQueueTest(); diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v2/ActiveMQTempTopicTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v2/ActiveMQTempTopicTest.java index b940fc50a01..ae4a1763799 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v2/ActiveMQTempTopicTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v2/ActiveMQTempTopicTest.java @@ -18,6 +18,8 @@ import org.apache.activemq.command.ActiveMQTempTopic; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * Test case for the OpenWire marshalling for ActiveMQTempTopic * @@ -28,6 +30,8 @@ * * */ +@Category(ParallelTest.class) + public class ActiveMQTempTopicTest extends ActiveMQTempDestinationTestSupport { public static final ActiveMQTempTopicTest SINGLETON = new ActiveMQTempTopicTest(); diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v2/ActiveMQTextMessageTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v2/ActiveMQTextMessageTest.java index 0c7b7427f2b..67e3895eeaa 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v2/ActiveMQTextMessageTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v2/ActiveMQTextMessageTest.java @@ -18,6 +18,8 @@ import org.apache.activemq.command.ActiveMQTextMessage; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * Test case for the OpenWire marshalling for ActiveMQTextMessage * @@ -28,6 +30,8 @@ * * */ +@Category(ParallelTest.class) + public class ActiveMQTextMessageTest extends ActiveMQMessageTest { public static final ActiveMQTextMessageTest SINGLETON = new ActiveMQTextMessageTest(); diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v2/ActiveMQTopicTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v2/ActiveMQTopicTest.java index ac3e9a1e316..74ec31615a5 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v2/ActiveMQTopicTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v2/ActiveMQTopicTest.java @@ -18,6 +18,8 @@ import org.apache.activemq.command.ActiveMQTopic; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * Test case for the OpenWire marshalling for ActiveMQTopic * @@ -28,6 +30,8 @@ * * */ +@Category(ParallelTest.class) + public class ActiveMQTopicTest extends ActiveMQDestinationTestSupport { public static final ActiveMQTopicTest SINGLETON = new ActiveMQTopicTest(); diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v2/BaseCommandTestSupport.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v2/BaseCommandTestSupport.java index 5aebc4f854f..248e8f9b125 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v2/BaseCommandTestSupport.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v2/BaseCommandTestSupport.java @@ -18,7 +18,6 @@ import org.apache.activemq.command.BaseCommand; import org.apache.activemq.openwire.DataFileGeneratorTestSupport; - /** * Test case for the OpenWire marshalling for BaseCommand NOTE!: This file is * auto generated - do not modify! if you need to make a change, please see the @@ -27,6 +26,8 @@ * * */ + + public abstract class BaseCommandTestSupport extends DataFileGeneratorTestSupport { protected void populateObject(Object object) throws Exception { diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v2/BrokerIdTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v2/BrokerIdTest.java index 3ecb39e8714..9d2581bed1f 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v2/BrokerIdTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v2/BrokerIdTest.java @@ -20,6 +20,8 @@ import org.apache.activemq.openwire.DataFileGeneratorTestSupport; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * Test case for the OpenWire marshalling for BrokerId * @@ -31,6 +33,8 @@ * * */ +@Category(ParallelTest.class) + public class BrokerIdTest extends DataFileGeneratorTestSupport { diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v2/BrokerInfoTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v2/BrokerInfoTest.java index 5db97830f38..7c845cef9d9 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v2/BrokerInfoTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v2/BrokerInfoTest.java @@ -18,6 +18,8 @@ import org.apache.activemq.command.BrokerInfo; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * Test case for the OpenWire marshalling for BrokerInfo NOTE!: This file is * auto generated - do not modify! if you need to make a change, please see the @@ -26,6 +28,8 @@ * * */ +@Category(ParallelTest.class) + public class BrokerInfoTest extends BaseCommandTestSupport { public static final BrokerInfoTest SINGLETON = new BrokerInfoTest(); diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v2/ConnectionControlTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v2/ConnectionControlTest.java index 5e89773be14..f5b7db15e34 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v2/ConnectionControlTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v2/ConnectionControlTest.java @@ -19,6 +19,8 @@ import org.apache.activemq.command.ConnectionControl; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * Test case for the OpenWire marshalling for ConnectionControl * @@ -30,6 +32,8 @@ * * */ +@Category(ParallelTest.class) + public class ConnectionControlTest extends BaseCommandTestSupport { diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v2/ConnectionErrorTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v2/ConnectionErrorTest.java index ac5b5d9aa73..215399d9e7c 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v2/ConnectionErrorTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v2/ConnectionErrorTest.java @@ -19,6 +19,8 @@ import org.apache.activemq.command.ConnectionError; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * Test case for the OpenWire marshalling for ConnectionError * @@ -30,6 +32,8 @@ * * */ +@Category(ParallelTest.class) + public class ConnectionErrorTest extends BaseCommandTestSupport { diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v2/ConnectionIdTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v2/ConnectionIdTest.java index 8e066cef7ae..7e57b150aba 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v2/ConnectionIdTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v2/ConnectionIdTest.java @@ -20,6 +20,8 @@ import org.apache.activemq.openwire.DataFileGeneratorTestSupport; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * Test case for the OpenWire marshalling for ConnectionId * @@ -31,6 +33,8 @@ * * */ +@Category(ParallelTest.class) + public class ConnectionIdTest extends DataFileGeneratorTestSupport { diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v2/ConnectionInfoTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v2/ConnectionInfoTest.java index 82fb37d3b23..71a39e61cc7 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v2/ConnectionInfoTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v2/ConnectionInfoTest.java @@ -19,6 +19,8 @@ import org.apache.activemq.command.BrokerId; import org.apache.activemq.command.ConnectionInfo; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * Test case for the OpenWire marshalling for ConnectionInfo NOTE!: This file is * auto generated - do not modify! if you need to make a change, please see the @@ -27,6 +29,8 @@ * * */ +@Category(ParallelTest.class) + public class ConnectionInfoTest extends BaseCommandTestSupport { public static final ConnectionInfoTest SINGLETON = new ConnectionInfoTest(); diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v2/ConsumerControlTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v2/ConsumerControlTest.java index b5505331a49..661830b5b94 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v2/ConsumerControlTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v2/ConsumerControlTest.java @@ -19,6 +19,8 @@ import org.apache.activemq.command.ConsumerControl; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * Test case for the OpenWire marshalling for ConsumerControl * @@ -30,6 +32,8 @@ * * */ +@Category(ParallelTest.class) + public class ConsumerControlTest extends BaseCommandTestSupport { diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v2/ConsumerIdTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v2/ConsumerIdTest.java index d818c853c04..ecab26fdd16 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v2/ConsumerIdTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v2/ConsumerIdTest.java @@ -20,6 +20,8 @@ import org.apache.activemq.openwire.DataFileGeneratorTestSupport; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * Test case for the OpenWire marshalling for ConsumerId * @@ -31,6 +33,8 @@ * * */ +@Category(ParallelTest.class) + public class ConsumerIdTest extends DataFileGeneratorTestSupport { diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v2/ConsumerInfoTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v2/ConsumerInfoTest.java index 1420260a92d..e0a067b4958 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v2/ConsumerInfoTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v2/ConsumerInfoTest.java @@ -19,6 +19,8 @@ import org.apache.activemq.command.BrokerId; import org.apache.activemq.command.ConsumerInfo; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * Test case for the OpenWire marshalling for ConsumerInfo NOTE!: This file is * auto generated - do not modify! if you need to make a change, please see the @@ -27,6 +29,8 @@ * * */ +@Category(ParallelTest.class) + public class ConsumerInfoTest extends BaseCommandTestSupport { public static final ConsumerInfoTest SINGLETON = new ConsumerInfoTest(); diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v2/ControlCommandTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v2/ControlCommandTest.java index 776726718ee..97f32e0509a 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v2/ControlCommandTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v2/ControlCommandTest.java @@ -19,6 +19,8 @@ import org.apache.activemq.command.ControlCommand; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * Test case for the OpenWire marshalling for ControlCommand * @@ -30,6 +32,8 @@ * * */ +@Category(ParallelTest.class) + public class ControlCommandTest extends BaseCommandTestSupport { diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v2/DataArrayResponseTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v2/DataArrayResponseTest.java index 3398dff6be1..d3c4ef1c451 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v2/DataArrayResponseTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v2/DataArrayResponseTest.java @@ -19,6 +19,8 @@ import org.apache.activemq.command.DataArrayResponse; import org.apache.activemq.command.DataStructure; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * Test case for the OpenWire marshalling for DataArrayResponse NOTE!: This file * is auto generated - do not modify! if you need to make a change, please see @@ -27,6 +29,8 @@ * * */ +@Category(ParallelTest.class) + public class DataArrayResponseTest extends ResponseTest { public static final DataArrayResponseTest SINGLETON = new DataArrayResponseTest(); diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v2/DataResponseTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v2/DataResponseTest.java index f8b4e495bb7..395770f21c1 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v2/DataResponseTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v2/DataResponseTest.java @@ -19,6 +19,8 @@ import org.apache.activemq.command.DataResponse; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * Test case for the OpenWire marshalling for DataResponse * @@ -30,6 +32,8 @@ * * */ +@Category(ParallelTest.class) + public class DataResponseTest extends ResponseTest { diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v2/DestinationInfoTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v2/DestinationInfoTest.java index accfb0b7a68..1ca395dc056 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v2/DestinationInfoTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v2/DestinationInfoTest.java @@ -19,6 +19,8 @@ import org.apache.activemq.command.BrokerId; import org.apache.activemq.command.DestinationInfo; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * Test case for the OpenWire marshalling for DestinationInfo NOTE!: This file * is auto generated - do not modify! if you need to make a change, please see @@ -27,6 +29,8 @@ * * */ +@Category(ParallelTest.class) + public class DestinationInfoTest extends BaseCommandTestSupport { public static final DestinationInfoTest SINGLETON = new DestinationInfoTest(); diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v2/DiscoveryEventTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v2/DiscoveryEventTest.java index 77dca5f9e06..044af345727 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v2/DiscoveryEventTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v2/DiscoveryEventTest.java @@ -20,6 +20,8 @@ import org.apache.activemq.openwire.DataFileGeneratorTestSupport; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * Test case for the OpenWire marshalling for DiscoveryEvent * @@ -31,6 +33,8 @@ * * */ +@Category(ParallelTest.class) + public class DiscoveryEventTest extends DataFileGeneratorTestSupport { diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v2/ExceptionResponseTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v2/ExceptionResponseTest.java index 0f81fc7a6ce..d9559e61c45 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v2/ExceptionResponseTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v2/ExceptionResponseTest.java @@ -19,6 +19,8 @@ import org.apache.activemq.command.ExceptionResponse; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * Test case for the OpenWire marshalling for ExceptionResponse * @@ -30,6 +32,8 @@ * * */ +@Category(ParallelTest.class) + public class ExceptionResponseTest extends ResponseTest { diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v2/FlushCommandTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v2/FlushCommandTest.java index c00826b783c..03681c6cf22 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v2/FlushCommandTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v2/FlushCommandTest.java @@ -19,6 +19,8 @@ import org.apache.activemq.command.FlushCommand; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * Test case for the OpenWire marshalling for FlushCommand * @@ -30,6 +32,8 @@ * * */ +@Category(ParallelTest.class) + public class FlushCommandTest extends BaseCommandTestSupport { diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v2/IntegerResponseTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v2/IntegerResponseTest.java index 171303b0611..ec94672ff58 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v2/IntegerResponseTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v2/IntegerResponseTest.java @@ -19,6 +19,8 @@ import org.apache.activemq.command.IntegerResponse; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * Test case for the OpenWire marshalling for IntegerResponse * @@ -30,6 +32,8 @@ * * */ +@Category(ParallelTest.class) + public class IntegerResponseTest extends ResponseTest { diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v2/JournalQueueAckTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v2/JournalQueueAckTest.java index 5613a992e39..82fa5dbc205 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v2/JournalQueueAckTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v2/JournalQueueAckTest.java @@ -20,6 +20,8 @@ import org.apache.activemq.openwire.DataFileGeneratorTestSupport; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * Test case for the OpenWire marshalling for JournalQueueAck * @@ -31,6 +33,8 @@ * * */ +@Category(ParallelTest.class) + public class JournalQueueAckTest extends DataFileGeneratorTestSupport { diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v2/JournalTopicAckTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v2/JournalTopicAckTest.java index 022180212b1..9973535c742 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v2/JournalTopicAckTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v2/JournalTopicAckTest.java @@ -20,6 +20,8 @@ import org.apache.activemq.openwire.DataFileGeneratorTestSupport; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * Test case for the OpenWire marshalling for JournalTopicAck * @@ -31,6 +33,8 @@ * * */ +@Category(ParallelTest.class) + public class JournalTopicAckTest extends DataFileGeneratorTestSupport { diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v2/JournalTraceTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v2/JournalTraceTest.java index e0ac05c0ed4..c477fc79f66 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v2/JournalTraceTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v2/JournalTraceTest.java @@ -20,6 +20,8 @@ import org.apache.activemq.openwire.DataFileGeneratorTestSupport; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * Test case for the OpenWire marshalling for JournalTrace * @@ -31,6 +33,8 @@ * * */ +@Category(ParallelTest.class) + public class JournalTraceTest extends DataFileGeneratorTestSupport { diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v2/JournalTransactionTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v2/JournalTransactionTest.java index 714a697fed1..29856d518fa 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v2/JournalTransactionTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v2/JournalTransactionTest.java @@ -20,6 +20,8 @@ import org.apache.activemq.openwire.DataFileGeneratorTestSupport; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * Test case for the OpenWire marshalling for JournalTransaction * @@ -31,6 +33,8 @@ * * */ +@Category(ParallelTest.class) + public class JournalTransactionTest extends DataFileGeneratorTestSupport { diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v2/KeepAliveInfoTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v2/KeepAliveInfoTest.java index b20eb451ff9..851fcd8b296 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v2/KeepAliveInfoTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v2/KeepAliveInfoTest.java @@ -19,6 +19,8 @@ import org.apache.activemq.command.KeepAliveInfo; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * Test case for the OpenWire marshalling for KeepAliveInfo * @@ -30,6 +32,8 @@ * * */ +@Category(ParallelTest.class) + public class KeepAliveInfoTest extends BaseCommandTestSupport { diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v2/LastPartialCommandTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v2/LastPartialCommandTest.java index 5891acdc9c9..a5776c21132 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v2/LastPartialCommandTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v2/LastPartialCommandTest.java @@ -19,6 +19,8 @@ import org.apache.activemq.command.LastPartialCommand; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * Test case for the OpenWire marshalling for LastPartialCommand * @@ -30,6 +32,8 @@ * * */ +@Category(ParallelTest.class) + public class LastPartialCommandTest extends PartialCommandTest { diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v2/LocalTransactionIdTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v2/LocalTransactionIdTest.java index 26748019c54..890748c7e4f 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v2/LocalTransactionIdTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v2/LocalTransactionIdTest.java @@ -19,6 +19,8 @@ import org.apache.activemq.command.LocalTransactionId; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * Test case for the OpenWire marshalling for LocalTransactionId * @@ -30,6 +32,8 @@ * * */ +@Category(ParallelTest.class) + public class LocalTransactionIdTest extends TransactionIdTestSupport { diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v2/MessageAckTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v2/MessageAckTest.java index c4ac0155e6f..672e52c1816 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v2/MessageAckTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v2/MessageAckTest.java @@ -19,6 +19,8 @@ import org.apache.activemq.command.MessageAck; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * Test case for the OpenWire marshalling for MessageAck * @@ -30,6 +32,8 @@ * * */ +@Category(ParallelTest.class) + public class MessageAckTest extends BaseCommandTestSupport { diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v2/MessageDispatchNotificationTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v2/MessageDispatchNotificationTest.java index adfe131e95d..7c5297b6cfc 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v2/MessageDispatchNotificationTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v2/MessageDispatchNotificationTest.java @@ -19,6 +19,8 @@ import org.apache.activemq.command.MessageDispatchNotification; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * Test case for the OpenWire marshalling for MessageDispatchNotification * @@ -30,6 +32,8 @@ * * */ +@Category(ParallelTest.class) + public class MessageDispatchNotificationTest extends BaseCommandTestSupport { diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v2/MessageDispatchTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v2/MessageDispatchTest.java index b100da32bb4..4976eef0e78 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v2/MessageDispatchTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v2/MessageDispatchTest.java @@ -19,6 +19,8 @@ import org.apache.activemq.command.MessageDispatch; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * Test case for the OpenWire marshalling for MessageDispatch * @@ -30,6 +32,8 @@ * * */ +@Category(ParallelTest.class) + public class MessageDispatchTest extends BaseCommandTestSupport { diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v2/MessageIdTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v2/MessageIdTest.java index bc4af3798d4..f31404dca5a 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v2/MessageIdTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v2/MessageIdTest.java @@ -20,6 +20,8 @@ import org.apache.activemq.openwire.DataFileGeneratorTestSupport; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * Test case for the OpenWire marshalling for MessageId * @@ -31,6 +33,8 @@ * * */ +@Category(ParallelTest.class) + public class MessageIdTest extends DataFileGeneratorTestSupport { diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v2/MessagePullTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v2/MessagePullTest.java index 030574dceaf..c39e838fa03 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v2/MessagePullTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v2/MessagePullTest.java @@ -19,6 +19,8 @@ import org.apache.activemq.command.MessagePull; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * Test case for the OpenWire marshalling for MessagePull * @@ -30,6 +32,8 @@ * * */ +@Category(ParallelTest.class) + public class MessagePullTest extends BaseCommandTestSupport { diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v2/MessageTestSupport.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v2/MessageTestSupport.java index 09bbd95df17..b30627dddf2 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v2/MessageTestSupport.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v2/MessageTestSupport.java @@ -24,7 +24,6 @@ import org.apache.activemq.command.Message; import org.apache.activemq.util.ByteArrayOutputStream; import org.apache.activemq.util.MarshallingSupport; - /** * Test case for the OpenWire marshalling for Message NOTE!: This file is auto * generated - do not modify! if you need to make a change, please see the @@ -33,6 +32,8 @@ * * */ + + public abstract class MessageTestSupport extends BaseCommandTestSupport { protected void populateObject(Object object) throws Exception { diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v2/NetworkBridgeFilterTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v2/NetworkBridgeFilterTest.java index 6afa4ef5131..94655ab4e63 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v2/NetworkBridgeFilterTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v2/NetworkBridgeFilterTest.java @@ -20,6 +20,8 @@ import org.apache.activemq.openwire.DataFileGeneratorTestSupport; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * Test case for the OpenWire marshalling for NetworkBridgeFilter * @@ -31,6 +33,8 @@ * * */ +@Category(ParallelTest.class) + public class NetworkBridgeFilterTest extends DataFileGeneratorTestSupport { diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v2/PartialCommandTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v2/PartialCommandTest.java index 38e245f55d9..d3c5320f257 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v2/PartialCommandTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v2/PartialCommandTest.java @@ -20,6 +20,8 @@ import org.apache.activemq.openwire.DataFileGeneratorTestSupport; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * Test case for the OpenWire marshalling for PartialCommand * @@ -31,6 +33,8 @@ * * */ +@Category(ParallelTest.class) + public class PartialCommandTest extends DataFileGeneratorTestSupport { diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v2/ProducerIdTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v2/ProducerIdTest.java index cbe32f878bb..d1a5f356fdf 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v2/ProducerIdTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v2/ProducerIdTest.java @@ -20,6 +20,8 @@ import org.apache.activemq.openwire.DataFileGeneratorTestSupport; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * Test case for the OpenWire marshalling for ProducerId * @@ -31,6 +33,8 @@ * * */ +@Category(ParallelTest.class) + public class ProducerIdTest extends DataFileGeneratorTestSupport { diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v2/ProducerInfoTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v2/ProducerInfoTest.java index 07e226b56fc..c80acecb76e 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v2/ProducerInfoTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v2/ProducerInfoTest.java @@ -19,6 +19,8 @@ import org.apache.activemq.command.BrokerId; import org.apache.activemq.command.ProducerInfo; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * Test case for the OpenWire marshalling for ProducerInfo NOTE!: This file is * auto generated - do not modify! if you need to make a change, please see the @@ -27,6 +29,8 @@ * * */ +@Category(ParallelTest.class) + public class ProducerInfoTest extends BaseCommandTestSupport { public static final ProducerInfoTest SINGLETON = new ProducerInfoTest(); diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v2/RemoveInfoTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v2/RemoveInfoTest.java index c45e7df61db..7c5dc6d5800 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v2/RemoveInfoTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v2/RemoveInfoTest.java @@ -19,6 +19,8 @@ import org.apache.activemq.command.RemoveInfo; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * Test case for the OpenWire marshalling for RemoveInfo * @@ -30,6 +32,8 @@ * * */ +@Category(ParallelTest.class) + public class RemoveInfoTest extends BaseCommandTestSupport { diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v2/RemoveSubscriptionInfoTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v2/RemoveSubscriptionInfoTest.java index 4c30153a1f2..47d0838d130 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v2/RemoveSubscriptionInfoTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v2/RemoveSubscriptionInfoTest.java @@ -19,6 +19,8 @@ import org.apache.activemq.command.RemoveSubscriptionInfo; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * Test case for the OpenWire marshalling for RemoveSubscriptionInfo * @@ -30,6 +32,8 @@ * * */ +@Category(ParallelTest.class) + public class RemoveSubscriptionInfoTest extends BaseCommandTestSupport { diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v2/ReplayCommandTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v2/ReplayCommandTest.java index a2d821cf23f..3d73e748404 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v2/ReplayCommandTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v2/ReplayCommandTest.java @@ -19,6 +19,8 @@ import org.apache.activemq.command.ReplayCommand; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * Test case for the OpenWire marshalling for ReplayCommand * @@ -30,6 +32,8 @@ * * */ +@Category(ParallelTest.class) + public class ReplayCommandTest extends BaseCommandTestSupport { diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v2/ResponseTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v2/ResponseTest.java index 0cde5777d90..b286d415a4f 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v2/ResponseTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v2/ResponseTest.java @@ -19,6 +19,8 @@ import org.apache.activemq.command.Response; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * Test case for the OpenWire marshalling for Response * @@ -30,6 +32,8 @@ * * */ +@Category(ParallelTest.class) + public class ResponseTest extends BaseCommandTestSupport { diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v2/SessionIdTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v2/SessionIdTest.java index 50d896f4e27..c88e182e330 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v2/SessionIdTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v2/SessionIdTest.java @@ -20,6 +20,8 @@ import org.apache.activemq.openwire.DataFileGeneratorTestSupport; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * Test case for the OpenWire marshalling for SessionId * @@ -31,6 +33,8 @@ * * */ +@Category(ParallelTest.class) + public class SessionIdTest extends DataFileGeneratorTestSupport { diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v2/SessionInfoTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v2/SessionInfoTest.java index 233f37dfb30..2960db68152 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v2/SessionInfoTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v2/SessionInfoTest.java @@ -19,6 +19,8 @@ import org.apache.activemq.command.SessionInfo; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * Test case for the OpenWire marshalling for SessionInfo * @@ -30,6 +32,8 @@ * * */ +@Category(ParallelTest.class) + public class SessionInfoTest extends BaseCommandTestSupport { diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v2/ShutdownInfoTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v2/ShutdownInfoTest.java index f617f145b31..bb8ad2db964 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v2/ShutdownInfoTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v2/ShutdownInfoTest.java @@ -19,6 +19,8 @@ import org.apache.activemq.command.ShutdownInfo; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * Test case for the OpenWire marshalling for ShutdownInfo * @@ -30,6 +32,8 @@ * * */ +@Category(ParallelTest.class) + public class ShutdownInfoTest extends BaseCommandTestSupport { diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v2/SubscriptionInfoTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v2/SubscriptionInfoTest.java index f34f962420d..c8f75f775c3 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v2/SubscriptionInfoTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v2/SubscriptionInfoTest.java @@ -20,6 +20,8 @@ import org.apache.activemq.openwire.DataFileGeneratorTestSupport; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * Test case for the OpenWire marshalling for SubscriptionInfo * @@ -31,6 +33,8 @@ * * */ +@Category(ParallelTest.class) + public class SubscriptionInfoTest extends DataFileGeneratorTestSupport { diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v2/TransactionIdTestSupport.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v2/TransactionIdTestSupport.java index ffa7eb11000..a619ec25b06 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v2/TransactionIdTestSupport.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v2/TransactionIdTestSupport.java @@ -18,8 +18,6 @@ import org.apache.activemq.command.TransactionId; import org.apache.activemq.openwire.DataFileGeneratorTestSupport; - - /** * Test case for the OpenWire marshalling for TransactionId * @@ -31,6 +29,8 @@ * * */ + + public abstract class TransactionIdTestSupport extends DataFileGeneratorTestSupport { diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v2/TransactionInfoTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v2/TransactionInfoTest.java index 128fde8c59d..6c62f8203e7 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v2/TransactionInfoTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v2/TransactionInfoTest.java @@ -19,6 +19,8 @@ import org.apache.activemq.command.TransactionInfo; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * Test case for the OpenWire marshalling for TransactionInfo * @@ -30,6 +32,8 @@ * * */ +@Category(ParallelTest.class) + public class TransactionInfoTest extends BaseCommandTestSupport { diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v2/WireFormatInfoTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v2/WireFormatInfoTest.java index 4eba6978906..dab88a3f448 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v2/WireFormatInfoTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v2/WireFormatInfoTest.java @@ -19,6 +19,8 @@ import org.apache.activemq.command.WireFormatInfo; import org.apache.activemq.openwire.DataFileGeneratorTestSupport; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * Test case for the OpenWire marshalling for WireFormatInfo NOTE!: This file is * auto generated - do not modify! if you need to make a change, please see the @@ -27,6 +29,8 @@ * * */ +@Category(ParallelTest.class) + public class WireFormatInfoTest extends DataFileGeneratorTestSupport { public static final WireFormatInfoTest SINGLETON = new WireFormatInfoTest(); diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v2/XATransactionIdTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v2/XATransactionIdTest.java index d266111351d..42c71234eac 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v2/XATransactionIdTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v2/XATransactionIdTest.java @@ -19,6 +19,8 @@ import org.apache.activemq.command.XATransactionId; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * Test case for the OpenWire marshalling for XATransactionId * @@ -30,6 +32,8 @@ * * */ +@Category(ParallelTest.class) + public class XATransactionIdTest extends TransactionIdTestSupport { diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v3/BaseCommandTestSupport.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v3/BaseCommandTestSupport.java index 628d34c7538..679d6ccb32e 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v3/BaseCommandTestSupport.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v3/BaseCommandTestSupport.java @@ -18,7 +18,6 @@ import org.apache.activemq.command.BaseCommand; import org.apache.activemq.openwire.DataFileGeneratorTestSupport; - /** * Test case for the OpenWire marshalling for BaseCommand * @@ -29,6 +28,8 @@ * * */ + + public abstract class BaseCommandTestSupport extends DataFileGeneratorTestSupport { protected void populateObject(Object object) throws Exception { diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v3/BrokerIdTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v3/BrokerIdTest.java index b3ed358b5a3..0d49934edc7 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v3/BrokerIdTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v3/BrokerIdTest.java @@ -20,6 +20,8 @@ import org.apache.activemq.openwire.DataFileGeneratorTestSupport; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * Test case for the OpenWire marshalling for BrokerId * @@ -31,6 +33,8 @@ * * */ +@Category(ParallelTest.class) + public class BrokerIdTest extends DataFileGeneratorTestSupport { diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v3/BrokerInfoTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v3/BrokerInfoTest.java index a7bede2d1fb..94797b73996 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v3/BrokerInfoTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v3/BrokerInfoTest.java @@ -18,6 +18,8 @@ import org.apache.activemq.command.BrokerInfo; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * Test case for the OpenWire marshalling for BrokerInfo NOTE!: This file is * auto generated - do not modify! if you need to make a change, please see the @@ -26,6 +28,8 @@ * * */ +@Category(ParallelTest.class) + public class BrokerInfoTest extends BaseCommandTestSupport { public static final BrokerInfoTest SINGLETON = new BrokerInfoTest(); diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v3/ConnectionControlTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v3/ConnectionControlTest.java index ec7a10990e4..2a17cc32148 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v3/ConnectionControlTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v3/ConnectionControlTest.java @@ -19,6 +19,8 @@ import org.apache.activemq.command.ConnectionControl; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * Test case for the OpenWire marshalling for ConnectionControl * @@ -30,6 +32,8 @@ * * */ +@Category(ParallelTest.class) + public class ConnectionControlTest extends BaseCommandTestSupport { diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v3/ConnectionErrorTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v3/ConnectionErrorTest.java index dd190443132..dd0de69905e 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v3/ConnectionErrorTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v3/ConnectionErrorTest.java @@ -19,6 +19,8 @@ import org.apache.activemq.command.ConnectionError; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * Test case for the OpenWire marshalling for ConnectionError * @@ -30,6 +32,8 @@ * * */ +@Category(ParallelTest.class) + public class ConnectionErrorTest extends BaseCommandTestSupport { diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v3/ConnectionIdTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v3/ConnectionIdTest.java index 05b5430dde3..e6064bf095f 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v3/ConnectionIdTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v3/ConnectionIdTest.java @@ -20,6 +20,8 @@ import org.apache.activemq.openwire.DataFileGeneratorTestSupport; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * Test case for the OpenWire marshalling for ConnectionId * @@ -31,6 +33,8 @@ * * */ +@Category(ParallelTest.class) + public class ConnectionIdTest extends DataFileGeneratorTestSupport { diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v3/ConnectionInfoTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v3/ConnectionInfoTest.java index 78f0729f6cc..9baf4d8c6dd 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v3/ConnectionInfoTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v3/ConnectionInfoTest.java @@ -19,6 +19,8 @@ import org.apache.activemq.command.BrokerId; import org.apache.activemq.command.ConnectionInfo; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * Test case for the OpenWire marshalling for ConnectionInfo NOTE!: This file is * auto generated - do not modify! if you need to make a change, please see the @@ -27,6 +29,8 @@ * * */ +@Category(ParallelTest.class) + public class ConnectionInfoTest extends BaseCommandTestSupport { public static final ConnectionInfoTest SINGLETON = new ConnectionInfoTest(); diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v3/ConsumerControlTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v3/ConsumerControlTest.java index 7f061c875eb..7b9e16581d8 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v3/ConsumerControlTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v3/ConsumerControlTest.java @@ -19,6 +19,8 @@ import org.apache.activemq.command.ConsumerControl; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * Test case for the OpenWire marshalling for ConsumerControl * @@ -30,6 +32,8 @@ * * */ +@Category(ParallelTest.class) + public class ConsumerControlTest extends BaseCommandTestSupport { diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v3/ConsumerIdTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v3/ConsumerIdTest.java index 54cc8da812b..0c602c322cf 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v3/ConsumerIdTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v3/ConsumerIdTest.java @@ -20,6 +20,8 @@ import org.apache.activemq.openwire.DataFileGeneratorTestSupport; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * Test case for the OpenWire marshalling for ConsumerId * @@ -31,6 +33,8 @@ * * */ +@Category(ParallelTest.class) + public class ConsumerIdTest extends DataFileGeneratorTestSupport { diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v3/ConsumerInfoTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v3/ConsumerInfoTest.java index 24d00d601a1..bd1f48821dc 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v3/ConsumerInfoTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v3/ConsumerInfoTest.java @@ -19,6 +19,8 @@ import org.apache.activemq.command.BrokerId; import org.apache.activemq.command.ConsumerInfo; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * Test case for the OpenWire marshalling for ConsumerInfo NOTE!: This file is * auto generated - do not modify! if you need to make a change, please see the @@ -27,6 +29,8 @@ * * */ +@Category(ParallelTest.class) + public class ConsumerInfoTest extends BaseCommandTestSupport { public static final ConsumerInfoTest SINGLETON = new ConsumerInfoTest(); diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v3/ControlCommandTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v3/ControlCommandTest.java index 401fe68ee9e..bb58ab153f7 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v3/ControlCommandTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v3/ControlCommandTest.java @@ -19,6 +19,8 @@ import org.apache.activemq.command.ControlCommand; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * Test case for the OpenWire marshalling for ControlCommand * @@ -30,6 +32,8 @@ * * */ +@Category(ParallelTest.class) + public class ControlCommandTest extends BaseCommandTestSupport { diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v3/DataArrayResponseTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v3/DataArrayResponseTest.java index b6f3a87dc04..49a351de4c6 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v3/DataArrayResponseTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v3/DataArrayResponseTest.java @@ -19,6 +19,8 @@ import org.apache.activemq.command.DataArrayResponse; import org.apache.activemq.command.DataStructure; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * Test case for the OpenWire marshalling for DataArrayResponse NOTE!: This file * is auto generated - do not modify! if you need to make a change, please see @@ -27,6 +29,8 @@ * * */ +@Category(ParallelTest.class) + public class DataArrayResponseTest extends ResponseTest { public static final DataArrayResponseTest SINGLETON = new DataArrayResponseTest(); diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v3/DataResponseTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v3/DataResponseTest.java index cf773a5a42d..21cde9d3ad9 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v3/DataResponseTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v3/DataResponseTest.java @@ -19,6 +19,8 @@ import org.apache.activemq.command.DataResponse; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * Test case for the OpenWire marshalling for DataResponse * @@ -30,6 +32,8 @@ * * */ +@Category(ParallelTest.class) + public class DataResponseTest extends ResponseTest { diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v3/DestinationInfoTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v3/DestinationInfoTest.java index d7f73430033..ebbc54c5215 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v3/DestinationInfoTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v3/DestinationInfoTest.java @@ -19,6 +19,8 @@ import org.apache.activemq.command.BrokerId; import org.apache.activemq.command.DestinationInfo; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * Test case for the OpenWire marshalling for DestinationInfo NOTE!: This file * is auto generated - do not modify! if you need to make a change, please see @@ -27,6 +29,8 @@ * * */ +@Category(ParallelTest.class) + public class DestinationInfoTest extends BaseCommandTestSupport { public static final DestinationInfoTest SINGLETON = new DestinationInfoTest(); diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v3/DiscoveryEventTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v3/DiscoveryEventTest.java index 173801ec9ff..b00bd37522d 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v3/DiscoveryEventTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v3/DiscoveryEventTest.java @@ -20,6 +20,8 @@ import org.apache.activemq.openwire.DataFileGeneratorTestSupport; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * Test case for the OpenWire marshalling for DiscoveryEvent * @@ -31,6 +33,8 @@ * * */ +@Category(ParallelTest.class) + public class DiscoveryEventTest extends DataFileGeneratorTestSupport { diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v3/ExceptionResponseTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v3/ExceptionResponseTest.java index 9c2edb36e81..cb7cecaa789 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v3/ExceptionResponseTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v3/ExceptionResponseTest.java @@ -19,6 +19,8 @@ import org.apache.activemq.command.ExceptionResponse; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * Test case for the OpenWire marshalling for ExceptionResponse * @@ -30,6 +32,8 @@ * * */ +@Category(ParallelTest.class) + public class ExceptionResponseTest extends ResponseTest { diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v3/FlushCommandTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v3/FlushCommandTest.java index ac16ffb37eb..1e9a6d2b76b 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v3/FlushCommandTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v3/FlushCommandTest.java @@ -19,6 +19,8 @@ import org.apache.activemq.command.FlushCommand; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * Test case for the OpenWire marshalling for FlushCommand * @@ -30,6 +32,8 @@ * * */ +@Category(ParallelTest.class) + public class FlushCommandTest extends BaseCommandTestSupport { diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v3/IntegerResponseTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v3/IntegerResponseTest.java index 6db78d1c1d1..82575604434 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v3/IntegerResponseTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v3/IntegerResponseTest.java @@ -19,6 +19,8 @@ import org.apache.activemq.command.IntegerResponse; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * Test case for the OpenWire marshalling for IntegerResponse * @@ -30,6 +32,8 @@ * * */ +@Category(ParallelTest.class) + public class IntegerResponseTest extends ResponseTest { diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v3/JournalQueueAckTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v3/JournalQueueAckTest.java index 1cdfa0a4725..8e985f5f1b9 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v3/JournalQueueAckTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v3/JournalQueueAckTest.java @@ -20,6 +20,8 @@ import org.apache.activemq.openwire.DataFileGeneratorTestSupport; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * Test case for the OpenWire marshalling for JournalQueueAck * @@ -31,6 +33,8 @@ * * */ +@Category(ParallelTest.class) + public class JournalQueueAckTest extends DataFileGeneratorTestSupport { diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v3/JournalTopicAckTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v3/JournalTopicAckTest.java index e9b826adac8..2b0c1019d33 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v3/JournalTopicAckTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v3/JournalTopicAckTest.java @@ -20,6 +20,8 @@ import org.apache.activemq.openwire.DataFileGeneratorTestSupport; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * Test case for the OpenWire marshalling for JournalTopicAck * @@ -31,6 +33,8 @@ * * */ +@Category(ParallelTest.class) + public class JournalTopicAckTest extends DataFileGeneratorTestSupport { diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v3/JournalTraceTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v3/JournalTraceTest.java index 6cfd58c332a..88662a02bcd 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v3/JournalTraceTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v3/JournalTraceTest.java @@ -20,6 +20,8 @@ import org.apache.activemq.openwire.DataFileGeneratorTestSupport; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * Test case for the OpenWire marshalling for JournalTrace * @@ -31,6 +33,8 @@ * * */ +@Category(ParallelTest.class) + public class JournalTraceTest extends DataFileGeneratorTestSupport { diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v3/JournalTransactionTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v3/JournalTransactionTest.java index 5918926f733..ed1cddb9109 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v3/JournalTransactionTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v3/JournalTransactionTest.java @@ -20,6 +20,8 @@ import org.apache.activemq.openwire.DataFileGeneratorTestSupport; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * Test case for the OpenWire marshalling for JournalTransaction * @@ -31,6 +33,8 @@ * * */ +@Category(ParallelTest.class) + public class JournalTransactionTest extends DataFileGeneratorTestSupport { diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v3/KeepAliveInfoTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v3/KeepAliveInfoTest.java index 19896c110b6..12bf6207b96 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v3/KeepAliveInfoTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v3/KeepAliveInfoTest.java @@ -19,6 +19,8 @@ import org.apache.activemq.command.KeepAliveInfo; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * Test case for the OpenWire marshalling for KeepAliveInfo * @@ -30,6 +32,8 @@ * * */ +@Category(ParallelTest.class) + public class KeepAliveInfoTest extends BaseCommandTestSupport { diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v3/LastPartialCommandTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v3/LastPartialCommandTest.java index eadb6d840ac..cea4b5644a6 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v3/LastPartialCommandTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v3/LastPartialCommandTest.java @@ -19,6 +19,8 @@ import org.apache.activemq.command.LastPartialCommand; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * Test case for the OpenWire marshalling for LastPartialCommand * @@ -30,6 +32,8 @@ * * */ +@Category(ParallelTest.class) + public class LastPartialCommandTest extends PartialCommandTest { diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v3/LocalTransactionIdTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v3/LocalTransactionIdTest.java index acd7678ac9d..39edebb0efe 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v3/LocalTransactionIdTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v3/LocalTransactionIdTest.java @@ -19,6 +19,8 @@ import org.apache.activemq.command.LocalTransactionId; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * Test case for the OpenWire marshalling for LocalTransactionId * @@ -30,6 +32,8 @@ * * */ +@Category(ParallelTest.class) + public class LocalTransactionIdTest extends TransactionIdTestSupport { diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v3/MessageAckTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v3/MessageAckTest.java index f67e844d84e..a2726e7ae3a 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v3/MessageAckTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v3/MessageAckTest.java @@ -19,6 +19,8 @@ import org.apache.activemq.command.MessageAck; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * Test case for the OpenWire marshalling for MessageAck * @@ -30,6 +32,8 @@ * * */ +@Category(ParallelTest.class) + public class MessageAckTest extends BaseCommandTestSupport { diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v3/MessageDispatchNotificationTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v3/MessageDispatchNotificationTest.java index f9a76f40bec..6d48cd948e9 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v3/MessageDispatchNotificationTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v3/MessageDispatchNotificationTest.java @@ -19,6 +19,8 @@ import org.apache.activemq.command.MessageDispatchNotification; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * Test case for the OpenWire marshalling for MessageDispatchNotification * @@ -30,6 +32,8 @@ * * */ +@Category(ParallelTest.class) + public class MessageDispatchNotificationTest extends BaseCommandTestSupport { diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v3/MessageDispatchTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v3/MessageDispatchTest.java index 089218893bd..c5ed412d3bd 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v3/MessageDispatchTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v3/MessageDispatchTest.java @@ -19,6 +19,8 @@ import org.apache.activemq.command.MessageDispatch; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * Test case for the OpenWire marshalling for MessageDispatch * @@ -30,6 +32,8 @@ * * */ +@Category(ParallelTest.class) + public class MessageDispatchTest extends BaseCommandTestSupport { diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v3/MessageIdTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v3/MessageIdTest.java index 8f4da889543..e8151ce5ba5 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v3/MessageIdTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v3/MessageIdTest.java @@ -20,6 +20,8 @@ import org.apache.activemq.openwire.DataFileGeneratorTestSupport; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * Test case for the OpenWire marshalling for MessageId * @@ -31,6 +33,8 @@ * * */ +@Category(ParallelTest.class) + public class MessageIdTest extends DataFileGeneratorTestSupport { diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v3/MessagePullTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v3/MessagePullTest.java index 2c628fa6a9f..5f70842efa1 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v3/MessagePullTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v3/MessagePullTest.java @@ -19,6 +19,8 @@ import org.apache.activemq.command.MessagePull; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * Test case for the OpenWire marshalling for MessagePull * @@ -30,6 +32,8 @@ * * */ +@Category(ParallelTest.class) + public class MessagePullTest extends BaseCommandTestSupport { diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v3/MessageTestSupport.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v3/MessageTestSupport.java index 20feff1c071..2342d782111 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v3/MessageTestSupport.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v3/MessageTestSupport.java @@ -18,7 +18,6 @@ import org.apache.activemq.command.BrokerId; import org.apache.activemq.command.Message; - /** * Test case for the OpenWire marshalling for Message NOTE!: This file is auto * generated - do not modify! if you need to make a change, please see the @@ -27,6 +26,8 @@ * * */ + + public abstract class MessageTestSupport extends BaseCommandTestSupport { protected void populateObject(Object object) throws Exception { diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v3/NetworkBridgeFilterTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v3/NetworkBridgeFilterTest.java index 19cb220487a..50e8be0bbce 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v3/NetworkBridgeFilterTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v3/NetworkBridgeFilterTest.java @@ -20,6 +20,8 @@ import org.apache.activemq.openwire.DataFileGeneratorTestSupport; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * Test case for the OpenWire marshalling for NetworkBridgeFilter * @@ -31,6 +33,8 @@ * * */ +@Category(ParallelTest.class) + public class NetworkBridgeFilterTest extends DataFileGeneratorTestSupport { diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v3/PartialCommandTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v3/PartialCommandTest.java index 6ad3f409b89..a4043b601cc 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v3/PartialCommandTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v3/PartialCommandTest.java @@ -20,6 +20,8 @@ import org.apache.activemq.openwire.DataFileGeneratorTestSupport; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * Test case for the OpenWire marshalling for PartialCommand * @@ -31,6 +33,8 @@ * * */ +@Category(ParallelTest.class) + public class PartialCommandTest extends DataFileGeneratorTestSupport { diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v3/ProducerAckTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v3/ProducerAckTest.java index cd3610d0710..1024b2810e7 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v3/ProducerAckTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v3/ProducerAckTest.java @@ -19,6 +19,8 @@ import org.apache.activemq.command.ProducerAck; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * Test case for the OpenWire marshalling for ProducerAck * @@ -30,6 +32,8 @@ * * */ +@Category(ParallelTest.class) + public class ProducerAckTest extends BaseCommandTestSupport { diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v3/ProducerIdTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v3/ProducerIdTest.java index 438754437bc..0ea6974c3b7 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v3/ProducerIdTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v3/ProducerIdTest.java @@ -20,6 +20,8 @@ import org.apache.activemq.openwire.DataFileGeneratorTestSupport; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * Test case for the OpenWire marshalling for ProducerId * @@ -31,6 +33,8 @@ * * */ +@Category(ParallelTest.class) + public class ProducerIdTest extends DataFileGeneratorTestSupport { diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v3/ProducerInfoTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v3/ProducerInfoTest.java index 4fbf05f0581..5d12587a143 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v3/ProducerInfoTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v3/ProducerInfoTest.java @@ -19,6 +19,8 @@ import org.apache.activemq.command.BrokerId; import org.apache.activemq.command.ProducerInfo; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * Test case for the OpenWire marshalling for ProducerInfo NOTE!: This file is * auto generated - do not modify! if you need to make a change, please see the @@ -27,6 +29,8 @@ * * */ +@Category(ParallelTest.class) + public class ProducerInfoTest extends BaseCommandTestSupport { public static final ProducerInfoTest SINGLETON = new ProducerInfoTest(); diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v3/RemoveInfoTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v3/RemoveInfoTest.java index 7bc480e061d..0d37971823a 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v3/RemoveInfoTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v3/RemoveInfoTest.java @@ -19,6 +19,8 @@ import org.apache.activemq.command.RemoveInfo; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * Test case for the OpenWire marshalling for RemoveInfo * @@ -30,6 +32,8 @@ * * */ +@Category(ParallelTest.class) + public class RemoveInfoTest extends BaseCommandTestSupport { diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v3/RemoveSubscriptionInfoTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v3/RemoveSubscriptionInfoTest.java index 2c85ef223ce..643587019ae 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v3/RemoveSubscriptionInfoTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v3/RemoveSubscriptionInfoTest.java @@ -19,6 +19,8 @@ import org.apache.activemq.command.RemoveSubscriptionInfo; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * Test case for the OpenWire marshalling for RemoveSubscriptionInfo * @@ -30,6 +32,8 @@ * * */ +@Category(ParallelTest.class) + public class RemoveSubscriptionInfoTest extends BaseCommandTestSupport { diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v3/ReplayCommandTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v3/ReplayCommandTest.java index 9e4c337fb87..8ddf868bf43 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v3/ReplayCommandTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v3/ReplayCommandTest.java @@ -19,6 +19,8 @@ import org.apache.activemq.command.ReplayCommand; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * Test case for the OpenWire marshalling for ReplayCommand * @@ -30,6 +32,8 @@ * * */ +@Category(ParallelTest.class) + public class ReplayCommandTest extends BaseCommandTestSupport { diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v3/ResponseTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v3/ResponseTest.java index 7dd6543918f..a70cc5cdabb 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v3/ResponseTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v3/ResponseTest.java @@ -19,6 +19,8 @@ import org.apache.activemq.command.Response; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * Test case for the OpenWire marshalling for Response * @@ -30,6 +32,8 @@ * * */ +@Category(ParallelTest.class) + public class ResponseTest extends BaseCommandTestSupport { diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v3/SessionIdTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v3/SessionIdTest.java index 136956ab955..c017ebe64d5 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v3/SessionIdTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v3/SessionIdTest.java @@ -20,6 +20,8 @@ import org.apache.activemq.openwire.DataFileGeneratorTestSupport; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * Test case for the OpenWire marshalling for SessionId * @@ -31,6 +33,8 @@ * * */ +@Category(ParallelTest.class) + public class SessionIdTest extends DataFileGeneratorTestSupport { diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v3/SessionInfoTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v3/SessionInfoTest.java index 81bed8bcfb9..556d1d33d3e 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v3/SessionInfoTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v3/SessionInfoTest.java @@ -19,6 +19,8 @@ import org.apache.activemq.command.SessionInfo; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * Test case for the OpenWire marshalling for SessionInfo * @@ -30,6 +32,8 @@ * * */ +@Category(ParallelTest.class) + public class SessionInfoTest extends BaseCommandTestSupport { diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v3/ShutdownInfoTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v3/ShutdownInfoTest.java index 2c8c03fb990..8e1298be884 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v3/ShutdownInfoTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v3/ShutdownInfoTest.java @@ -19,6 +19,8 @@ import org.apache.activemq.command.ShutdownInfo; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * Test case for the OpenWire marshalling for ShutdownInfo * @@ -30,6 +32,8 @@ * * */ +@Category(ParallelTest.class) + public class ShutdownInfoTest extends BaseCommandTestSupport { diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v3/SubscriptionInfoTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v3/SubscriptionInfoTest.java index d8da085a71e..7ceac7dccfd 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v3/SubscriptionInfoTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v3/SubscriptionInfoTest.java @@ -20,6 +20,8 @@ import org.apache.activemq.openwire.DataFileGeneratorTestSupport; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * Test case for the OpenWire marshalling for SubscriptionInfo * @@ -31,6 +33,8 @@ * * */ +@Category(ParallelTest.class) + public class SubscriptionInfoTest extends DataFileGeneratorTestSupport { diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v3/TransactionIdTestSupport.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v3/TransactionIdTestSupport.java index ce874bbe7ed..a5a9ba33d75 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v3/TransactionIdTestSupport.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v3/TransactionIdTestSupport.java @@ -18,8 +18,6 @@ import org.apache.activemq.command.TransactionId; import org.apache.activemq.openwire.DataFileGeneratorTestSupport; - - /** * Test case for the OpenWire marshalling for TransactionId * @@ -31,6 +29,8 @@ * * */ + + public abstract class TransactionIdTestSupport extends DataFileGeneratorTestSupport { diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v3/TransactionInfoTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v3/TransactionInfoTest.java index 8daad3904fb..c20cb26bb22 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v3/TransactionInfoTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v3/TransactionInfoTest.java @@ -19,6 +19,8 @@ import org.apache.activemq.command.TransactionInfo; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * Test case for the OpenWire marshalling for TransactionInfo * @@ -30,6 +32,8 @@ * * */ +@Category(ParallelTest.class) + public class TransactionInfoTest extends BaseCommandTestSupport { diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v3/XATransactionIdTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v3/XATransactionIdTest.java index e9d36e375be..8e01004166e 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v3/XATransactionIdTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v3/XATransactionIdTest.java @@ -19,6 +19,8 @@ import org.apache.activemq.command.XATransactionId; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * Test case for the OpenWire marshalling for XATransactionId * @@ -30,6 +32,8 @@ * * */ +@Category(ParallelTest.class) + public class XATransactionIdTest extends TransactionIdTestSupport { diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v4/BaseCommandTestSupport.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v4/BaseCommandTestSupport.java index f281a94c1d3..d2e2f9f49a7 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v4/BaseCommandTestSupport.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v4/BaseCommandTestSupport.java @@ -18,7 +18,6 @@ import org.apache.activemq.command.BaseCommand; import org.apache.activemq.openwire.DataFileGeneratorTestSupport; - /** * Test case for the OpenWire marshalling for BaseCommand NOTE!: This file is * auto generated - do not modify! if you need to make a change, please see the @@ -27,6 +26,8 @@ * * */ + + public abstract class BaseCommandTestSupport extends DataFileGeneratorTestSupport { protected void populateObject(Object object) throws Exception { diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v4/BrokerIdTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v4/BrokerIdTest.java index 97cf0488b44..71003f633cc 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v4/BrokerIdTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v4/BrokerIdTest.java @@ -25,6 +25,8 @@ import org.apache.activemq.command.*; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * Test case for the OpenWire marshalling for BrokerId * @@ -36,6 +38,8 @@ * * */ +@Category(ParallelTest.class) + public class BrokerIdTest extends DataFileGeneratorTestSupport { diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v4/BrokerInfoTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v4/BrokerInfoTest.java index b76df14501f..b2d5da69312 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v4/BrokerInfoTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v4/BrokerInfoTest.java @@ -25,6 +25,8 @@ import org.apache.activemq.command.*; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * Test case for the OpenWire marshalling for BrokerInfo * @@ -36,6 +38,8 @@ * * */ +@Category(ParallelTest.class) + public class BrokerInfoTest extends BaseCommandTestSupport { diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v4/ConnectionControlTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v4/ConnectionControlTest.java index 7250787861a..1e6a7f80dea 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v4/ConnectionControlTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v4/ConnectionControlTest.java @@ -25,6 +25,8 @@ import org.apache.activemq.command.*; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * Test case for the OpenWire marshalling for ConnectionControl * @@ -36,6 +38,8 @@ * * */ +@Category(ParallelTest.class) + public class ConnectionControlTest extends BaseCommandTestSupport { diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v4/ConnectionErrorTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v4/ConnectionErrorTest.java index 56d4c89f977..737a4f765bd 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v4/ConnectionErrorTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v4/ConnectionErrorTest.java @@ -25,6 +25,8 @@ import org.apache.activemq.command.*; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * Test case for the OpenWire marshalling for ConnectionError * @@ -36,6 +38,8 @@ * * */ +@Category(ParallelTest.class) + public class ConnectionErrorTest extends BaseCommandTestSupport { diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v4/ConnectionIdTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v4/ConnectionIdTest.java index 9f25aa73215..27fc8243c94 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v4/ConnectionIdTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v4/ConnectionIdTest.java @@ -25,6 +25,8 @@ import org.apache.activemq.command.*; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * Test case for the OpenWire marshalling for ConnectionId * @@ -36,6 +38,8 @@ * * */ +@Category(ParallelTest.class) + public class ConnectionIdTest extends DataFileGeneratorTestSupport { diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v4/ConnectionInfoTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v4/ConnectionInfoTest.java index 56512a6a340..855ad72455e 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v4/ConnectionInfoTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v4/ConnectionInfoTest.java @@ -25,6 +25,8 @@ import org.apache.activemq.command.*; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * Test case for the OpenWire marshalling for ConnectionInfo * @@ -36,6 +38,8 @@ * * */ +@Category(ParallelTest.class) + public class ConnectionInfoTest extends BaseCommandTestSupport { diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v4/ConsumerControlTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v4/ConsumerControlTest.java index e82fdccae2e..5f5d6ba59cf 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v4/ConsumerControlTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v4/ConsumerControlTest.java @@ -25,6 +25,8 @@ import org.apache.activemq.command.*; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * Test case for the OpenWire marshalling for ConsumerControl * @@ -36,6 +38,8 @@ * * */ +@Category(ParallelTest.class) + public class ConsumerControlTest extends BaseCommandTestSupport { diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v4/ConsumerIdTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v4/ConsumerIdTest.java index cd26cb756d5..4efaf9fe615 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v4/ConsumerIdTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v4/ConsumerIdTest.java @@ -25,6 +25,8 @@ import org.apache.activemq.command.*; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * Test case for the OpenWire marshalling for ConsumerId * @@ -36,6 +38,8 @@ * * */ +@Category(ParallelTest.class) + public class ConsumerIdTest extends DataFileGeneratorTestSupport { diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v4/ConsumerInfoTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v4/ConsumerInfoTest.java index 277cbf57a8c..bc4e1ba6e06 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v4/ConsumerInfoTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v4/ConsumerInfoTest.java @@ -25,6 +25,8 @@ import org.apache.activemq.command.*; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * Test case for the OpenWire marshalling for ConsumerInfo * @@ -36,6 +38,8 @@ * * */ +@Category(ParallelTest.class) + public class ConsumerInfoTest extends BaseCommandTestSupport { diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v4/ControlCommandTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v4/ControlCommandTest.java index 850c663e67b..8b2c7717d6c 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v4/ControlCommandTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v4/ControlCommandTest.java @@ -25,6 +25,8 @@ import org.apache.activemq.command.*; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * Test case for the OpenWire marshalling for ControlCommand * @@ -36,6 +38,8 @@ * * */ +@Category(ParallelTest.class) + public class ControlCommandTest extends BaseCommandTestSupport { diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v4/DataArrayResponseTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v4/DataArrayResponseTest.java index 20fdd6baf1e..cebce5f6cb9 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v4/DataArrayResponseTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v4/DataArrayResponseTest.java @@ -25,6 +25,8 @@ import org.apache.activemq.command.*; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * Test case for the OpenWire marshalling for DataArrayResponse * @@ -36,6 +38,8 @@ * * */ +@Category(ParallelTest.class) + public class DataArrayResponseTest extends ResponseTest { diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v4/DataResponseTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v4/DataResponseTest.java index d7c4c3d8ea9..af7a407ecde 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v4/DataResponseTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v4/DataResponseTest.java @@ -25,6 +25,8 @@ import org.apache.activemq.command.*; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * Test case for the OpenWire marshalling for DataResponse * @@ -36,6 +38,8 @@ * * */ +@Category(ParallelTest.class) + public class DataResponseTest extends ResponseTest { diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v4/DestinationInfoTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v4/DestinationInfoTest.java index cb9fa0a0190..eead30c9040 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v4/DestinationInfoTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v4/DestinationInfoTest.java @@ -25,6 +25,8 @@ import org.apache.activemq.command.*; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * Test case for the OpenWire marshalling for DestinationInfo * @@ -36,6 +38,8 @@ * * */ +@Category(ParallelTest.class) + public class DestinationInfoTest extends BaseCommandTestSupport { diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v4/DiscoveryEventTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v4/DiscoveryEventTest.java index e8dbb59386d..c2bf040c18a 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v4/DiscoveryEventTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v4/DiscoveryEventTest.java @@ -25,6 +25,8 @@ import org.apache.activemq.command.*; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * Test case for the OpenWire marshalling for DiscoveryEvent * @@ -36,6 +38,8 @@ * * */ +@Category(ParallelTest.class) + public class DiscoveryEventTest extends DataFileGeneratorTestSupport { diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v4/ExceptionResponseTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v4/ExceptionResponseTest.java index 320b22cc57e..465e3c65958 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v4/ExceptionResponseTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v4/ExceptionResponseTest.java @@ -25,6 +25,8 @@ import org.apache.activemq.command.*; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * Test case for the OpenWire marshalling for ExceptionResponse * @@ -36,6 +38,8 @@ * * */ +@Category(ParallelTest.class) + public class ExceptionResponseTest extends ResponseTest { diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v4/FlushCommandTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v4/FlushCommandTest.java index 330b6af1e90..b47fd51eeb7 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v4/FlushCommandTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v4/FlushCommandTest.java @@ -25,6 +25,8 @@ import org.apache.activemq.command.*; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * Test case for the OpenWire marshalling for FlushCommand * @@ -36,6 +38,8 @@ * * */ +@Category(ParallelTest.class) + public class FlushCommandTest extends BaseCommandTestSupport { diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v4/IntegerResponseTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v4/IntegerResponseTest.java index 98c8e90d8c0..0c7294ad1b6 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v4/IntegerResponseTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v4/IntegerResponseTest.java @@ -25,6 +25,8 @@ import org.apache.activemq.command.*; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * Test case for the OpenWire marshalling for IntegerResponse * @@ -36,6 +38,8 @@ * * */ +@Category(ParallelTest.class) + public class IntegerResponseTest extends ResponseTest { diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v4/JournalQueueAckTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v4/JournalQueueAckTest.java index 1d7cba69e11..8884487c254 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v4/JournalQueueAckTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v4/JournalQueueAckTest.java @@ -25,6 +25,8 @@ import org.apache.activemq.command.*; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * Test case for the OpenWire marshalling for JournalQueueAck * @@ -36,6 +38,8 @@ * * */ +@Category(ParallelTest.class) + public class JournalQueueAckTest extends DataFileGeneratorTestSupport { diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v4/JournalTopicAckTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v4/JournalTopicAckTest.java index ece67794dc9..022080c031c 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v4/JournalTopicAckTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v4/JournalTopicAckTest.java @@ -25,6 +25,8 @@ import org.apache.activemq.command.*; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * Test case for the OpenWire marshalling for JournalTopicAck * @@ -36,6 +38,8 @@ * * */ +@Category(ParallelTest.class) + public class JournalTopicAckTest extends DataFileGeneratorTestSupport { diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v4/JournalTraceTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v4/JournalTraceTest.java index 125d9844ee4..bdd39e0607d 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v4/JournalTraceTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v4/JournalTraceTest.java @@ -25,6 +25,8 @@ import org.apache.activemq.command.*; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * Test case for the OpenWire marshalling for JournalTrace * @@ -36,6 +38,8 @@ * * */ +@Category(ParallelTest.class) + public class JournalTraceTest extends DataFileGeneratorTestSupport { diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v4/JournalTransactionTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v4/JournalTransactionTest.java index 3dc47ab73b2..04e7350ebf6 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v4/JournalTransactionTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v4/JournalTransactionTest.java @@ -25,6 +25,8 @@ import org.apache.activemq.command.*; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * Test case for the OpenWire marshalling for JournalTransaction * @@ -36,6 +38,8 @@ * * */ +@Category(ParallelTest.class) + public class JournalTransactionTest extends DataFileGeneratorTestSupport { diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v4/KeepAliveInfoTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v4/KeepAliveInfoTest.java index d804f5006f4..12bfedc9582 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v4/KeepAliveInfoTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v4/KeepAliveInfoTest.java @@ -25,6 +25,8 @@ import org.apache.activemq.command.*; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * Test case for the OpenWire marshalling for KeepAliveInfo * @@ -36,6 +38,8 @@ * * */ +@Category(ParallelTest.class) + public class KeepAliveInfoTest extends BaseCommandTestSupport { diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v4/LastPartialCommandTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v4/LastPartialCommandTest.java index 81c1eb31013..5b527a048a8 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v4/LastPartialCommandTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v4/LastPartialCommandTest.java @@ -25,6 +25,8 @@ import org.apache.activemq.command.*; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * Test case for the OpenWire marshalling for LastPartialCommand * @@ -36,6 +38,8 @@ * * */ +@Category(ParallelTest.class) + public class LastPartialCommandTest extends PartialCommandTest { diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v4/LocalTransactionIdTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v4/LocalTransactionIdTest.java index 544220b6dcf..31532cfde53 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v4/LocalTransactionIdTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v4/LocalTransactionIdTest.java @@ -25,6 +25,8 @@ import org.apache.activemq.command.*; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * Test case for the OpenWire marshalling for LocalTransactionId * @@ -36,6 +38,8 @@ * * */ +@Category(ParallelTest.class) + public class LocalTransactionIdTest extends TransactionIdTestSupport { diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v4/MessageAckTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v4/MessageAckTest.java index 440bfdf0922..9a87e21471b 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v4/MessageAckTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v4/MessageAckTest.java @@ -25,6 +25,8 @@ import org.apache.activemq.command.*; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * Test case for the OpenWire marshalling for MessageAck * @@ -36,6 +38,8 @@ * * */ +@Category(ParallelTest.class) + public class MessageAckTest extends BaseCommandTestSupport { diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v4/MessageDispatchNotificationTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v4/MessageDispatchNotificationTest.java index bfa23002c1f..177aa2f55d7 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v4/MessageDispatchNotificationTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v4/MessageDispatchNotificationTest.java @@ -25,6 +25,8 @@ import org.apache.activemq.command.*; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * Test case for the OpenWire marshalling for MessageDispatchNotification * @@ -36,6 +38,8 @@ * * */ +@Category(ParallelTest.class) + public class MessageDispatchNotificationTest extends BaseCommandTestSupport { diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v4/MessageDispatchTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v4/MessageDispatchTest.java index 41e40f7982b..480d94cf751 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v4/MessageDispatchTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v4/MessageDispatchTest.java @@ -25,6 +25,8 @@ import org.apache.activemq.command.*; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * Test case for the OpenWire marshalling for MessageDispatch * @@ -36,6 +38,8 @@ * * */ +@Category(ParallelTest.class) + public class MessageDispatchTest extends BaseCommandTestSupport { diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v4/MessageIdTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v4/MessageIdTest.java index fcdc62f728e..c159a5c3739 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v4/MessageIdTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v4/MessageIdTest.java @@ -25,6 +25,8 @@ import org.apache.activemq.command.*; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * Test case for the OpenWire marshalling for MessageId * @@ -36,6 +38,8 @@ * * */ +@Category(ParallelTest.class) + public class MessageIdTest extends DataFileGeneratorTestSupport { diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v4/MessagePullTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v4/MessagePullTest.java index f07f82774f7..5d8715e8081 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v4/MessagePullTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v4/MessagePullTest.java @@ -25,6 +25,8 @@ import org.apache.activemq.command.*; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * Test case for the OpenWire marshalling for MessagePull * @@ -36,6 +38,8 @@ * * */ +@Category(ParallelTest.class) + public class MessagePullTest extends BaseCommandTestSupport { diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v4/MessageTestSupport.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v4/MessageTestSupport.java index f45b80c7d47..e22cbc426b7 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v4/MessageTestSupport.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v4/MessageTestSupport.java @@ -18,8 +18,6 @@ package org.apache.activemq.openwire.v4; import org.apache.activemq.command.*; - - /** * Test case for the OpenWire marshalling for Message * @@ -31,6 +29,8 @@ * * */ + + public abstract class MessageTestSupport extends BaseCommandTestSupport { diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v4/NetworkBridgeFilterTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v4/NetworkBridgeFilterTest.java index e07dc530ebe..8f93c636a39 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v4/NetworkBridgeFilterTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v4/NetworkBridgeFilterTest.java @@ -25,6 +25,8 @@ import org.apache.activemq.command.*; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * Test case for the OpenWire marshalling for NetworkBridgeFilter * @@ -36,6 +38,8 @@ * * */ +@Category(ParallelTest.class) + public class NetworkBridgeFilterTest extends DataFileGeneratorTestSupport { diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v4/PartialCommandTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v4/PartialCommandTest.java index a6e1f4790db..b02211a6c0a 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v4/PartialCommandTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v4/PartialCommandTest.java @@ -25,6 +25,8 @@ import org.apache.activemq.command.*; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * Test case for the OpenWire marshalling for PartialCommand * @@ -36,6 +38,8 @@ * * */ +@Category(ParallelTest.class) + public class PartialCommandTest extends DataFileGeneratorTestSupport { diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v4/ProducerAckTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v4/ProducerAckTest.java index c2de9581c0f..f0e84bf9dbd 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v4/ProducerAckTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v4/ProducerAckTest.java @@ -25,6 +25,8 @@ import org.apache.activemq.command.*; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * Test case for the OpenWire marshalling for ProducerAck * @@ -36,6 +38,8 @@ * * */ +@Category(ParallelTest.class) + public class ProducerAckTest extends BaseCommandTestSupport { diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v4/ProducerIdTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v4/ProducerIdTest.java index a75953df782..9edc86a467c 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v4/ProducerIdTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v4/ProducerIdTest.java @@ -25,6 +25,8 @@ import org.apache.activemq.command.*; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * Test case for the OpenWire marshalling for ProducerId * @@ -36,6 +38,8 @@ * * */ +@Category(ParallelTest.class) + public class ProducerIdTest extends DataFileGeneratorTestSupport { diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v4/ProducerInfoTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v4/ProducerInfoTest.java index d6bafb6e449..8a7a9bb45b4 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v4/ProducerInfoTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v4/ProducerInfoTest.java @@ -25,6 +25,8 @@ import org.apache.activemq.command.*; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * Test case for the OpenWire marshalling for ProducerInfo * @@ -36,6 +38,8 @@ * * */ +@Category(ParallelTest.class) + public class ProducerInfoTest extends BaseCommandTestSupport { diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v4/RemoveInfoTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v4/RemoveInfoTest.java index 45f05a3e168..0d9ff6945ba 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v4/RemoveInfoTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v4/RemoveInfoTest.java @@ -25,6 +25,8 @@ import org.apache.activemq.command.*; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * Test case for the OpenWire marshalling for RemoveInfo * @@ -36,6 +38,8 @@ * * */ +@Category(ParallelTest.class) + public class RemoveInfoTest extends BaseCommandTestSupport { diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v4/RemoveSubscriptionInfoTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v4/RemoveSubscriptionInfoTest.java index f2e0fd09536..b0681704431 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v4/RemoveSubscriptionInfoTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v4/RemoveSubscriptionInfoTest.java @@ -25,6 +25,8 @@ import org.apache.activemq.command.*; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * Test case for the OpenWire marshalling for RemoveSubscriptionInfo * @@ -36,6 +38,8 @@ * * */ +@Category(ParallelTest.class) + public class RemoveSubscriptionInfoTest extends BaseCommandTestSupport { diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v4/ReplayCommandTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v4/ReplayCommandTest.java index 81028a7290d..dcb1e7e2e83 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v4/ReplayCommandTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v4/ReplayCommandTest.java @@ -25,6 +25,8 @@ import org.apache.activemq.command.*; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * Test case for the OpenWire marshalling for ReplayCommand * @@ -36,6 +38,8 @@ * * */ +@Category(ParallelTest.class) + public class ReplayCommandTest extends BaseCommandTestSupport { diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v4/ResponseTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v4/ResponseTest.java index f757031c4fc..9484e2e77bf 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v4/ResponseTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v4/ResponseTest.java @@ -25,6 +25,8 @@ import org.apache.activemq.command.*; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * Test case for the OpenWire marshalling for Response * @@ -36,6 +38,8 @@ * * */ +@Category(ParallelTest.class) + public class ResponseTest extends BaseCommandTestSupport { diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v4/SessionIdTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v4/SessionIdTest.java index 923f49b0b5e..522c12c3ff8 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v4/SessionIdTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v4/SessionIdTest.java @@ -25,6 +25,8 @@ import org.apache.activemq.command.*; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * Test case for the OpenWire marshalling for SessionId * @@ -36,6 +38,8 @@ * * */ +@Category(ParallelTest.class) + public class SessionIdTest extends DataFileGeneratorTestSupport { diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v4/SessionInfoTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v4/SessionInfoTest.java index ed897c64c4f..96547de854c 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v4/SessionInfoTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v4/SessionInfoTest.java @@ -25,6 +25,8 @@ import org.apache.activemq.command.*; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * Test case for the OpenWire marshalling for SessionInfo * @@ -36,6 +38,8 @@ * * */ +@Category(ParallelTest.class) + public class SessionInfoTest extends BaseCommandTestSupport { diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v4/ShutdownInfoTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v4/ShutdownInfoTest.java index 411d3927201..37c220018f7 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v4/ShutdownInfoTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v4/ShutdownInfoTest.java @@ -25,6 +25,8 @@ import org.apache.activemq.command.*; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * Test case for the OpenWire marshalling for ShutdownInfo * @@ -36,6 +38,8 @@ * * */ +@Category(ParallelTest.class) + public class ShutdownInfoTest extends BaseCommandTestSupport { diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v4/SubscriptionInfoTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v4/SubscriptionInfoTest.java index 1724bee3511..80bc659567c 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v4/SubscriptionInfoTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v4/SubscriptionInfoTest.java @@ -25,6 +25,8 @@ import org.apache.activemq.command.*; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * Test case for the OpenWire marshalling for SubscriptionInfo * @@ -36,6 +38,8 @@ * * */ +@Category(ParallelTest.class) + public class SubscriptionInfoTest extends DataFileGeneratorTestSupport { diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v4/TransactionIdTestSupport.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v4/TransactionIdTestSupport.java index 6172e4d942f..5ccf7dc0da2 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v4/TransactionIdTestSupport.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v4/TransactionIdTestSupport.java @@ -23,8 +23,6 @@ import org.apache.activemq.openwire.*; import org.apache.activemq.command.*; - - /** * Test case for the OpenWire marshalling for TransactionId * @@ -36,6 +34,8 @@ * * */ + + public abstract class TransactionIdTestSupport extends DataFileGeneratorTestSupport { diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v4/TransactionInfoTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v4/TransactionInfoTest.java index 26e2f41b2f0..24c1bdd71e4 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v4/TransactionInfoTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v4/TransactionInfoTest.java @@ -25,6 +25,8 @@ import org.apache.activemq.command.*; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * Test case for the OpenWire marshalling for TransactionInfo * @@ -36,6 +38,8 @@ * * */ +@Category(ParallelTest.class) + public class TransactionInfoTest extends BaseCommandTestSupport { diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v4/XATransactionIdTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v4/XATransactionIdTest.java index d79de31ff5e..40bf8c679df 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v4/XATransactionIdTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v4/XATransactionIdTest.java @@ -25,6 +25,8 @@ import org.apache.activemq.command.*; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * Test case for the OpenWire marshalling for XATransactionId * @@ -36,6 +38,8 @@ * * */ +@Category(ParallelTest.class) + public class XATransactionIdTest extends TransactionIdTestSupport { diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v5/BaseCommandTestSupport.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v5/BaseCommandTestSupport.java index 55bfd64f78b..7680f659d7d 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v5/BaseCommandTestSupport.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v5/BaseCommandTestSupport.java @@ -18,7 +18,6 @@ import org.apache.activemq.command.BaseCommand; import org.apache.activemq.openwire.DataFileGeneratorTestSupport; - /** * Test case for the OpenWire marshalling for BaseCommand NOTE!: This file is * auto generated - do not modify! if you need to make a change, please see the @@ -26,6 +25,8 @@ * openwire:generate to regenerate this file. * */ + + public abstract class BaseCommandTestSupport extends DataFileGeneratorTestSupport { protected void populateObject(Object object) throws Exception { diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v5/BrokerIdTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v5/BrokerIdTest.java index d5ebc11b017..c0fa4613b8d 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v5/BrokerIdTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v5/BrokerIdTest.java @@ -25,6 +25,8 @@ import org.apache.activemq.command.*; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * Test case for the OpenWire marshalling for BrokerId * @@ -36,6 +38,8 @@ * * */ +@Category(ParallelTest.class) + public class BrokerIdTest extends DataFileGeneratorTestSupport { diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v5/BrokerInfoTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v5/BrokerInfoTest.java index 26186f17e2b..64e5d57fa09 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v5/BrokerInfoTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v5/BrokerInfoTest.java @@ -25,6 +25,8 @@ import org.apache.activemq.command.*; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * Test case for the OpenWire marshalling for BrokerInfo * @@ -36,6 +38,8 @@ * * */ +@Category(ParallelTest.class) + public class BrokerInfoTest extends BaseCommandTestSupport { diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v5/ConnectionControlTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v5/ConnectionControlTest.java index fa2e0cc082c..d88e1f8a52a 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v5/ConnectionControlTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v5/ConnectionControlTest.java @@ -25,6 +25,8 @@ import org.apache.activemq.command.*; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * Test case for the OpenWire marshalling for ConnectionControl * @@ -36,6 +38,8 @@ * * */ +@Category(ParallelTest.class) + public class ConnectionControlTest extends BaseCommandTestSupport { diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v5/ConnectionErrorTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v5/ConnectionErrorTest.java index 52420e21479..269c44eec1d 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v5/ConnectionErrorTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v5/ConnectionErrorTest.java @@ -25,6 +25,8 @@ import org.apache.activemq.command.*; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * Test case for the OpenWire marshalling for ConnectionError * @@ -36,6 +38,8 @@ * * */ +@Category(ParallelTest.class) + public class ConnectionErrorTest extends BaseCommandTestSupport { diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v5/ConnectionIdTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v5/ConnectionIdTest.java index e69d6741745..2be03be7500 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v5/ConnectionIdTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v5/ConnectionIdTest.java @@ -25,6 +25,8 @@ import org.apache.activemq.command.*; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * Test case for the OpenWire marshalling for ConnectionId * @@ -36,6 +38,8 @@ * * */ +@Category(ParallelTest.class) + public class ConnectionIdTest extends DataFileGeneratorTestSupport { diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v5/ConnectionInfoTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v5/ConnectionInfoTest.java index 776b2d20292..646468fc8b8 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v5/ConnectionInfoTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v5/ConnectionInfoTest.java @@ -25,6 +25,8 @@ import org.apache.activemq.command.*; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * Test case for the OpenWire marshalling for ConnectionInfo * @@ -36,6 +38,8 @@ * * */ +@Category(ParallelTest.class) + public class ConnectionInfoTest extends BaseCommandTestSupport { diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v5/ConsumerControlTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v5/ConsumerControlTest.java index 546f3cb4f5c..9fd88aea078 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v5/ConsumerControlTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v5/ConsumerControlTest.java @@ -25,6 +25,8 @@ import org.apache.activemq.command.*; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * Test case for the OpenWire marshalling for ConsumerControl * @@ -36,6 +38,8 @@ * * */ +@Category(ParallelTest.class) + public class ConsumerControlTest extends BaseCommandTestSupport { diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v5/ConsumerIdTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v5/ConsumerIdTest.java index cfcac6a707c..82d9deab2ae 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v5/ConsumerIdTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v5/ConsumerIdTest.java @@ -25,6 +25,8 @@ import org.apache.activemq.command.*; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * Test case for the OpenWire marshalling for ConsumerId * @@ -36,6 +38,8 @@ * * */ +@Category(ParallelTest.class) + public class ConsumerIdTest extends DataFileGeneratorTestSupport { diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v5/ConsumerInfoTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v5/ConsumerInfoTest.java index 3316d2083ac..fbacb17d3c4 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v5/ConsumerInfoTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v5/ConsumerInfoTest.java @@ -25,6 +25,8 @@ import org.apache.activemq.command.*; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * Test case for the OpenWire marshalling for ConsumerInfo * @@ -36,6 +38,8 @@ * * */ +@Category(ParallelTest.class) + public class ConsumerInfoTest extends BaseCommandTestSupport { diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v5/ControlCommandTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v5/ControlCommandTest.java index 04c41d3ee5d..9a4cbbe0b2b 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v5/ControlCommandTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v5/ControlCommandTest.java @@ -25,6 +25,8 @@ import org.apache.activemq.command.*; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * Test case for the OpenWire marshalling for ControlCommand * @@ -36,6 +38,8 @@ * * */ +@Category(ParallelTest.class) + public class ControlCommandTest extends BaseCommandTestSupport { diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v5/DataArrayResponseTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v5/DataArrayResponseTest.java index 52d2dfd277e..c08d099e50b 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v5/DataArrayResponseTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v5/DataArrayResponseTest.java @@ -25,6 +25,8 @@ import org.apache.activemq.command.*; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * Test case for the OpenWire marshalling for DataArrayResponse * @@ -36,6 +38,8 @@ * * */ +@Category(ParallelTest.class) + public class DataArrayResponseTest extends ResponseTest { diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v5/DataResponseTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v5/DataResponseTest.java index d1047de6ac9..d1208719621 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v5/DataResponseTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v5/DataResponseTest.java @@ -25,6 +25,8 @@ import org.apache.activemq.command.*; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * Test case for the OpenWire marshalling for DataResponse * @@ -36,6 +38,8 @@ * * */ +@Category(ParallelTest.class) + public class DataResponseTest extends ResponseTest { diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v5/DestinationInfoTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v5/DestinationInfoTest.java index 45ef248c9bb..19aad671815 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v5/DestinationInfoTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v5/DestinationInfoTest.java @@ -25,6 +25,8 @@ import org.apache.activemq.command.*; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * Test case for the OpenWire marshalling for DestinationInfo * @@ -36,6 +38,8 @@ * * */ +@Category(ParallelTest.class) + public class DestinationInfoTest extends BaseCommandTestSupport { diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v5/DiscoveryEventTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v5/DiscoveryEventTest.java index 2c2cbabbcef..0349fd7090f 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v5/DiscoveryEventTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v5/DiscoveryEventTest.java @@ -25,6 +25,8 @@ import org.apache.activemq.command.*; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * Test case for the OpenWire marshalling for DiscoveryEvent * @@ -36,6 +38,8 @@ * * */ +@Category(ParallelTest.class) + public class DiscoveryEventTest extends DataFileGeneratorTestSupport { diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v5/ExceptionResponseTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v5/ExceptionResponseTest.java index 41d60e2d5bc..8a341c0c127 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v5/ExceptionResponseTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v5/ExceptionResponseTest.java @@ -25,6 +25,8 @@ import org.apache.activemq.command.*; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * Test case for the OpenWire marshalling for ExceptionResponse * @@ -36,6 +38,8 @@ * * */ +@Category(ParallelTest.class) + public class ExceptionResponseTest extends ResponseTest { diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v5/FlushCommandTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v5/FlushCommandTest.java index c48a679b268..6dbbfe2b64b 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v5/FlushCommandTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v5/FlushCommandTest.java @@ -25,6 +25,8 @@ import org.apache.activemq.command.*; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * Test case for the OpenWire marshalling for FlushCommand * @@ -36,6 +38,8 @@ * * */ +@Category(ParallelTest.class) + public class FlushCommandTest extends BaseCommandTestSupport { diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v5/IntegerResponseTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v5/IntegerResponseTest.java index 77377692890..051308e2e9c 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v5/IntegerResponseTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v5/IntegerResponseTest.java @@ -25,6 +25,8 @@ import org.apache.activemq.command.*; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * Test case for the OpenWire marshalling for IntegerResponse * @@ -36,6 +38,8 @@ * * */ +@Category(ParallelTest.class) + public class IntegerResponseTest extends ResponseTest { diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v5/JournalQueueAckTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v5/JournalQueueAckTest.java index 0f1de7eb818..61a292bd420 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v5/JournalQueueAckTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v5/JournalQueueAckTest.java @@ -25,6 +25,8 @@ import org.apache.activemq.command.*; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * Test case for the OpenWire marshalling for JournalQueueAck * @@ -36,6 +38,8 @@ * * */ +@Category(ParallelTest.class) + public class JournalQueueAckTest extends DataFileGeneratorTestSupport { diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v5/JournalTopicAckTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v5/JournalTopicAckTest.java index d0856f8ef5d..3d76a33bc3d 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v5/JournalTopicAckTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v5/JournalTopicAckTest.java @@ -25,6 +25,8 @@ import org.apache.activemq.command.*; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * Test case for the OpenWire marshalling for JournalTopicAck * @@ -36,6 +38,8 @@ * * */ +@Category(ParallelTest.class) + public class JournalTopicAckTest extends DataFileGeneratorTestSupport { diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v5/JournalTraceTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v5/JournalTraceTest.java index 530f2ad945b..800918a1d0a 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v5/JournalTraceTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v5/JournalTraceTest.java @@ -25,6 +25,8 @@ import org.apache.activemq.command.*; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * Test case for the OpenWire marshalling for JournalTrace * @@ -36,6 +38,8 @@ * * */ +@Category(ParallelTest.class) + public class JournalTraceTest extends DataFileGeneratorTestSupport { diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v5/JournalTransactionTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v5/JournalTransactionTest.java index 4348e23a4b2..4d679fe2206 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v5/JournalTransactionTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v5/JournalTransactionTest.java @@ -25,6 +25,8 @@ import org.apache.activemq.command.*; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * Test case for the OpenWire marshalling for JournalTransaction * @@ -36,6 +38,8 @@ * * */ +@Category(ParallelTest.class) + public class JournalTransactionTest extends DataFileGeneratorTestSupport { diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v5/KeepAliveInfoTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v5/KeepAliveInfoTest.java index 48610fa4a6a..ec381cae24b 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v5/KeepAliveInfoTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v5/KeepAliveInfoTest.java @@ -25,6 +25,8 @@ import org.apache.activemq.command.*; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * Test case for the OpenWire marshalling for KeepAliveInfo * @@ -36,6 +38,8 @@ * * */ +@Category(ParallelTest.class) + public class KeepAliveInfoTest extends BaseCommandTestSupport { diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v5/LastPartialCommandTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v5/LastPartialCommandTest.java index edef39aea54..558865f259e 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v5/LastPartialCommandTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v5/LastPartialCommandTest.java @@ -25,6 +25,8 @@ import org.apache.activemq.command.*; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * Test case for the OpenWire marshalling for LastPartialCommand * @@ -36,6 +38,8 @@ * * */ +@Category(ParallelTest.class) + public class LastPartialCommandTest extends PartialCommandTest { diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v5/LocalTransactionIdTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v5/LocalTransactionIdTest.java index ba1f7c8752b..e9bfaa8d1ff 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v5/LocalTransactionIdTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v5/LocalTransactionIdTest.java @@ -25,6 +25,8 @@ import org.apache.activemq.command.*; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * Test case for the OpenWire marshalling for LocalTransactionId * @@ -36,6 +38,8 @@ * * */ +@Category(ParallelTest.class) + public class LocalTransactionIdTest extends TransactionIdTestSupport { diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v5/MessageAckTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v5/MessageAckTest.java index 3185c7945b5..4331bec8eea 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v5/MessageAckTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v5/MessageAckTest.java @@ -25,6 +25,8 @@ import org.apache.activemq.command.*; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * Test case for the OpenWire marshalling for MessageAck * @@ -36,6 +38,8 @@ * * */ +@Category(ParallelTest.class) + public class MessageAckTest extends BaseCommandTestSupport { diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v5/MessageDispatchNotificationTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v5/MessageDispatchNotificationTest.java index 296aba735b5..86ba2fd7ea2 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v5/MessageDispatchNotificationTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v5/MessageDispatchNotificationTest.java @@ -25,6 +25,8 @@ import org.apache.activemq.command.*; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * Test case for the OpenWire marshalling for MessageDispatchNotification * @@ -36,6 +38,8 @@ * * */ +@Category(ParallelTest.class) + public class MessageDispatchNotificationTest extends BaseCommandTestSupport { diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v5/MessageDispatchTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v5/MessageDispatchTest.java index a8c69871f2e..a855a7c5722 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v5/MessageDispatchTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v5/MessageDispatchTest.java @@ -25,6 +25,8 @@ import org.apache.activemq.command.*; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * Test case for the OpenWire marshalling for MessageDispatch * @@ -36,6 +38,8 @@ * * */ +@Category(ParallelTest.class) + public class MessageDispatchTest extends BaseCommandTestSupport { diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v5/MessageIdTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v5/MessageIdTest.java index 78e8029bf06..b64f22ca27d 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v5/MessageIdTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v5/MessageIdTest.java @@ -25,6 +25,8 @@ import org.apache.activemq.command.*; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * Test case for the OpenWire marshalling for MessageId * @@ -36,6 +38,8 @@ * * */ +@Category(ParallelTest.class) + public class MessageIdTest extends DataFileGeneratorTestSupport { diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v5/MessagePullTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v5/MessagePullTest.java index f23fa67b1fb..3ae5b9afdcc 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v5/MessagePullTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v5/MessagePullTest.java @@ -25,6 +25,8 @@ import org.apache.activemq.command.*; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * Test case for the OpenWire marshalling for MessagePull * @@ -36,6 +38,8 @@ * * */ +@Category(ParallelTest.class) + public class MessagePullTest extends BaseCommandTestSupport { diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v5/MessageTestSupport.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v5/MessageTestSupport.java index e5bfe057285..6b3be39f180 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v5/MessageTestSupport.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v5/MessageTestSupport.java @@ -18,8 +18,6 @@ package org.apache.activemq.openwire.v5; import org.apache.activemq.command.*; - - /** * Test case for the OpenWire marshalling for Message * @@ -31,6 +29,8 @@ * * */ + + public abstract class MessageTestSupport extends BaseCommandTestSupport { diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v5/NetworkBridgeFilterTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v5/NetworkBridgeFilterTest.java index e2e8fef56b0..ef23bb3e8af 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v5/NetworkBridgeFilterTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v5/NetworkBridgeFilterTest.java @@ -25,6 +25,8 @@ import org.apache.activemq.command.*; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * Test case for the OpenWire marshalling for NetworkBridgeFilter * @@ -36,6 +38,8 @@ * * */ +@Category(ParallelTest.class) + public class NetworkBridgeFilterTest extends DataFileGeneratorTestSupport { diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v5/PartialCommandTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v5/PartialCommandTest.java index c234eaf1f3c..e8945146ec9 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v5/PartialCommandTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v5/PartialCommandTest.java @@ -25,6 +25,8 @@ import org.apache.activemq.command.*; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * Test case for the OpenWire marshalling for PartialCommand * @@ -36,6 +38,8 @@ * * */ +@Category(ParallelTest.class) + public class PartialCommandTest extends DataFileGeneratorTestSupport { diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v5/ProducerAckTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v5/ProducerAckTest.java index 48fd0c7ff39..9af23cbbe46 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v5/ProducerAckTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v5/ProducerAckTest.java @@ -25,6 +25,8 @@ import org.apache.activemq.command.*; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * Test case for the OpenWire marshalling for ProducerAck * @@ -36,6 +38,8 @@ * * */ +@Category(ParallelTest.class) + public class ProducerAckTest extends BaseCommandTestSupport { diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v5/ProducerIdTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v5/ProducerIdTest.java index e4994ff06f9..e6f5608bda4 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v5/ProducerIdTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v5/ProducerIdTest.java @@ -25,6 +25,8 @@ import org.apache.activemq.command.*; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * Test case for the OpenWire marshalling for ProducerId * @@ -36,6 +38,8 @@ * * */ +@Category(ParallelTest.class) + public class ProducerIdTest extends DataFileGeneratorTestSupport { diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v5/ProducerInfoTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v5/ProducerInfoTest.java index 1dc0633083b..017c0abe09d 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v5/ProducerInfoTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v5/ProducerInfoTest.java @@ -25,6 +25,8 @@ import org.apache.activemq.command.*; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * Test case for the OpenWire marshalling for ProducerInfo * @@ -36,6 +38,8 @@ * * */ +@Category(ParallelTest.class) + public class ProducerInfoTest extends BaseCommandTestSupport { diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v5/RemoveInfoTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v5/RemoveInfoTest.java index e083079adf5..cf7dc0a4e59 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v5/RemoveInfoTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v5/RemoveInfoTest.java @@ -25,6 +25,8 @@ import org.apache.activemq.command.*; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * Test case for the OpenWire marshalling for RemoveInfo * @@ -36,6 +38,8 @@ * * */ +@Category(ParallelTest.class) + public class RemoveInfoTest extends BaseCommandTestSupport { diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v5/RemoveSubscriptionInfoTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v5/RemoveSubscriptionInfoTest.java index 8c6c05698ec..43a6a7a20d1 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v5/RemoveSubscriptionInfoTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v5/RemoveSubscriptionInfoTest.java @@ -25,6 +25,8 @@ import org.apache.activemq.command.*; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * Test case for the OpenWire marshalling for RemoveSubscriptionInfo * @@ -36,6 +38,8 @@ * * */ +@Category(ParallelTest.class) + public class RemoveSubscriptionInfoTest extends BaseCommandTestSupport { diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v5/ReplayCommandTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v5/ReplayCommandTest.java index c4a8879f93f..882778ffb5c 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v5/ReplayCommandTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v5/ReplayCommandTest.java @@ -25,6 +25,8 @@ import org.apache.activemq.command.*; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * Test case for the OpenWire marshalling for ReplayCommand * @@ -36,6 +38,8 @@ * * */ +@Category(ParallelTest.class) + public class ReplayCommandTest extends BaseCommandTestSupport { diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v5/ResponseTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v5/ResponseTest.java index 4732749ba4b..341557525b2 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v5/ResponseTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v5/ResponseTest.java @@ -25,6 +25,8 @@ import org.apache.activemq.command.*; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * Test case for the OpenWire marshalling for Response * @@ -36,6 +38,8 @@ * * */ +@Category(ParallelTest.class) + public class ResponseTest extends BaseCommandTestSupport { diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v5/SessionIdTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v5/SessionIdTest.java index c38b4464205..58aaefe953a 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v5/SessionIdTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v5/SessionIdTest.java @@ -25,6 +25,8 @@ import org.apache.activemq.command.*; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * Test case for the OpenWire marshalling for SessionId * @@ -36,6 +38,8 @@ * * */ +@Category(ParallelTest.class) + public class SessionIdTest extends DataFileGeneratorTestSupport { diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v5/SessionInfoTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v5/SessionInfoTest.java index 852a0d77b44..329da9d8d90 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v5/SessionInfoTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v5/SessionInfoTest.java @@ -25,6 +25,8 @@ import org.apache.activemq.command.*; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * Test case for the OpenWire marshalling for SessionInfo * @@ -36,6 +38,8 @@ * * */ +@Category(ParallelTest.class) + public class SessionInfoTest extends BaseCommandTestSupport { diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v5/ShutdownInfoTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v5/ShutdownInfoTest.java index af6e21a79be..a100fd19602 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v5/ShutdownInfoTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v5/ShutdownInfoTest.java @@ -25,6 +25,8 @@ import org.apache.activemq.command.*; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * Test case for the OpenWire marshalling for ShutdownInfo * @@ -36,6 +38,8 @@ * * */ +@Category(ParallelTest.class) + public class ShutdownInfoTest extends BaseCommandTestSupport { diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v5/SubscriptionInfoTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v5/SubscriptionInfoTest.java index 5740f3e6f4e..34c5a1de923 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v5/SubscriptionInfoTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v5/SubscriptionInfoTest.java @@ -25,6 +25,8 @@ import org.apache.activemq.command.*; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * Test case for the OpenWire marshalling for SubscriptionInfo * @@ -36,6 +38,8 @@ * * */ +@Category(ParallelTest.class) + public class SubscriptionInfoTest extends DataFileGeneratorTestSupport { diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v5/TransactionIdTestSupport.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v5/TransactionIdTestSupport.java index 25c5f5a43f7..2c136fbddc9 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v5/TransactionIdTestSupport.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v5/TransactionIdTestSupport.java @@ -23,8 +23,6 @@ import org.apache.activemq.openwire.*; import org.apache.activemq.command.*; - - /** * Test case for the OpenWire marshalling for TransactionId * @@ -36,6 +34,8 @@ * * */ + + public abstract class TransactionIdTestSupport extends DataFileGeneratorTestSupport { diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v5/TransactionInfoTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v5/TransactionInfoTest.java index ab4a1535725..c7652b6282a 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v5/TransactionInfoTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v5/TransactionInfoTest.java @@ -25,6 +25,8 @@ import org.apache.activemq.command.*; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * Test case for the OpenWire marshalling for TransactionInfo * @@ -36,6 +38,8 @@ * * */ +@Category(ParallelTest.class) + public class TransactionInfoTest extends BaseCommandTestSupport { diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v5/XATransactionIdTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v5/XATransactionIdTest.java index 742a8bdcc32..168e18b5dc7 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v5/XATransactionIdTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v5/XATransactionIdTest.java @@ -25,6 +25,8 @@ import org.apache.activemq.command.*; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * Test case for the OpenWire marshalling for XATransactionId * @@ -36,6 +38,8 @@ * * */ +@Category(ParallelTest.class) + public class XATransactionIdTest extends TransactionIdTestSupport { diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v6/BaseCommandTestSupport.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v6/BaseCommandTestSupport.java index 8c16b553e50..8942fe8735c 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v6/BaseCommandTestSupport.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v6/BaseCommandTestSupport.java @@ -18,7 +18,6 @@ import org.apache.activemq.command.BaseCommand; import org.apache.activemq.openwire.DataFileGeneratorTestSupport; - /** * Test case for the OpenWire marshalling for BaseCommand NOTE!: This file is * auto generated - do not modify! if you need to make a change, please see the @@ -26,6 +25,8 @@ * openwire:generate to regenerate this file. * */ + + public abstract class BaseCommandTestSupport extends DataFileGeneratorTestSupport { protected void populateObject(Object object) throws Exception { diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v6/BrokerIdTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v6/BrokerIdTest.java index 0f5ed87301b..e0c37a6c6ff 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v6/BrokerIdTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v6/BrokerIdTest.java @@ -25,6 +25,8 @@ import org.apache.activemq.command.*; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * Test case for the OpenWire marshalling for BrokerId * @@ -36,6 +38,8 @@ * * */ +@Category(ParallelTest.class) + public class BrokerIdTest extends DataFileGeneratorTestSupport { diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v6/BrokerInfoTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v6/BrokerInfoTest.java index 8c7f26d13f2..0f9a5dd89e5 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v6/BrokerInfoTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v6/BrokerInfoTest.java @@ -25,6 +25,8 @@ import org.apache.activemq.command.*; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * Test case for the OpenWire marshalling for BrokerInfo * @@ -36,6 +38,8 @@ * * */ +@Category(ParallelTest.class) + public class BrokerInfoTest extends BaseCommandTestSupport { diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v6/ConnectionControlTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v6/ConnectionControlTest.java index f5aa0ca476d..87e891c5563 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v6/ConnectionControlTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v6/ConnectionControlTest.java @@ -25,6 +25,8 @@ import org.apache.activemq.command.*; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * Test case for the OpenWire marshalling for ConnectionControl * @@ -36,6 +38,8 @@ * * */ +@Category(ParallelTest.class) + public class ConnectionControlTest extends BaseCommandTestSupport { diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v6/ConnectionErrorTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v6/ConnectionErrorTest.java index 156ff9f3fb8..58e08d79ad1 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v6/ConnectionErrorTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v6/ConnectionErrorTest.java @@ -25,6 +25,8 @@ import org.apache.activemq.command.*; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * Test case for the OpenWire marshalling for ConnectionError * @@ -36,6 +38,8 @@ * * */ +@Category(ParallelTest.class) + public class ConnectionErrorTest extends BaseCommandTestSupport { diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v6/ConnectionIdTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v6/ConnectionIdTest.java index 8fa7559a9e3..ba2afa43d24 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v6/ConnectionIdTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v6/ConnectionIdTest.java @@ -25,6 +25,8 @@ import org.apache.activemq.command.*; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * Test case for the OpenWire marshalling for ConnectionId * @@ -36,6 +38,8 @@ * * */ +@Category(ParallelTest.class) + public class ConnectionIdTest extends DataFileGeneratorTestSupport { diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v6/ConnectionInfoTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v6/ConnectionInfoTest.java index fb3ecdb8ede..8f4c4949781 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v6/ConnectionInfoTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v6/ConnectionInfoTest.java @@ -25,6 +25,8 @@ import org.apache.activemq.command.*; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * Test case for the OpenWire marshalling for ConnectionInfo * @@ -36,6 +38,8 @@ * * */ +@Category(ParallelTest.class) + public class ConnectionInfoTest extends BaseCommandTestSupport { diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v6/ConsumerControlTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v6/ConsumerControlTest.java index 275ce117192..b1084665370 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v6/ConsumerControlTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v6/ConsumerControlTest.java @@ -25,6 +25,8 @@ import org.apache.activemq.command.*; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * Test case for the OpenWire marshalling for ConsumerControl * @@ -36,6 +38,8 @@ * * */ +@Category(ParallelTest.class) + public class ConsumerControlTest extends BaseCommandTestSupport { diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v6/ConsumerIdTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v6/ConsumerIdTest.java index d322dfbfce9..1c9d71cb1fb 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v6/ConsumerIdTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v6/ConsumerIdTest.java @@ -25,6 +25,8 @@ import org.apache.activemq.command.*; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * Test case for the OpenWire marshalling for ConsumerId * @@ -36,6 +38,8 @@ * * */ +@Category(ParallelTest.class) + public class ConsumerIdTest extends DataFileGeneratorTestSupport { diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v6/ConsumerInfoTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v6/ConsumerInfoTest.java index d8d1d0c4033..30c985b9a5b 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v6/ConsumerInfoTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v6/ConsumerInfoTest.java @@ -25,6 +25,8 @@ import org.apache.activemq.command.*; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * Test case for the OpenWire marshalling for ConsumerInfo * @@ -36,6 +38,8 @@ * * */ +@Category(ParallelTest.class) + public class ConsumerInfoTest extends BaseCommandTestSupport { diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v6/ControlCommandTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v6/ControlCommandTest.java index 8b48365186a..f04e71f86b3 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v6/ControlCommandTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v6/ControlCommandTest.java @@ -25,6 +25,8 @@ import org.apache.activemq.command.*; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * Test case for the OpenWire marshalling for ControlCommand * @@ -36,6 +38,8 @@ * * */ +@Category(ParallelTest.class) + public class ControlCommandTest extends BaseCommandTestSupport { diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v6/DataArrayResponseTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v6/DataArrayResponseTest.java index 1fe80fd5e76..2261f94407c 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v6/DataArrayResponseTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v6/DataArrayResponseTest.java @@ -25,6 +25,8 @@ import org.apache.activemq.command.*; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * Test case for the OpenWire marshalling for DataArrayResponse * @@ -36,6 +38,8 @@ * * */ +@Category(ParallelTest.class) + public class DataArrayResponseTest extends ResponseTest { diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v6/DataResponseTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v6/DataResponseTest.java index e7728ea0b1c..2b5a5ce2fae 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v6/DataResponseTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v6/DataResponseTest.java @@ -25,6 +25,8 @@ import org.apache.activemq.command.*; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * Test case for the OpenWire marshalling for DataResponse * @@ -36,6 +38,8 @@ * * */ +@Category(ParallelTest.class) + public class DataResponseTest extends ResponseTest { diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v6/DestinationInfoTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v6/DestinationInfoTest.java index ac065e2fa92..42d08571646 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v6/DestinationInfoTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v6/DestinationInfoTest.java @@ -25,6 +25,8 @@ import org.apache.activemq.command.*; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * Test case for the OpenWire marshalling for DestinationInfo * @@ -36,6 +38,8 @@ * * */ +@Category(ParallelTest.class) + public class DestinationInfoTest extends BaseCommandTestSupport { diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v6/DiscoveryEventTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v6/DiscoveryEventTest.java index de87bd95b8a..d9233c1ff05 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v6/DiscoveryEventTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v6/DiscoveryEventTest.java @@ -25,6 +25,8 @@ import org.apache.activemq.command.*; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * Test case for the OpenWire marshalling for DiscoveryEvent * @@ -36,6 +38,8 @@ * * */ +@Category(ParallelTest.class) + public class DiscoveryEventTest extends DataFileGeneratorTestSupport { diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v6/ExceptionResponseTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v6/ExceptionResponseTest.java index 9471dfd96d2..02e01104cec 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v6/ExceptionResponseTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v6/ExceptionResponseTest.java @@ -25,6 +25,8 @@ import org.apache.activemq.command.*; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * Test case for the OpenWire marshalling for ExceptionResponse * @@ -36,6 +38,8 @@ * * */ +@Category(ParallelTest.class) + public class ExceptionResponseTest extends ResponseTest { diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v6/FlushCommandTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v6/FlushCommandTest.java index 46f4bb403ff..333ba3cb76d 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v6/FlushCommandTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v6/FlushCommandTest.java @@ -25,6 +25,8 @@ import org.apache.activemq.command.*; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * Test case for the OpenWire marshalling for FlushCommand * @@ -36,6 +38,8 @@ * * */ +@Category(ParallelTest.class) + public class FlushCommandTest extends BaseCommandTestSupport { diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v6/IntegerResponseTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v6/IntegerResponseTest.java index 999b047b814..38688879431 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v6/IntegerResponseTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v6/IntegerResponseTest.java @@ -25,6 +25,8 @@ import org.apache.activemq.command.*; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * Test case for the OpenWire marshalling for IntegerResponse * @@ -36,6 +38,8 @@ * * */ +@Category(ParallelTest.class) + public class IntegerResponseTest extends ResponseTest { diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v6/JournalQueueAckTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v6/JournalQueueAckTest.java index 7757277fa0f..f4a403b47fb 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v6/JournalQueueAckTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v6/JournalQueueAckTest.java @@ -25,6 +25,8 @@ import org.apache.activemq.command.*; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * Test case for the OpenWire marshalling for JournalQueueAck * @@ -36,6 +38,8 @@ * * */ +@Category(ParallelTest.class) + public class JournalQueueAckTest extends DataFileGeneratorTestSupport { diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v6/JournalTopicAckTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v6/JournalTopicAckTest.java index dfcb65858e0..c0418f0cd5c 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v6/JournalTopicAckTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v6/JournalTopicAckTest.java @@ -25,6 +25,8 @@ import org.apache.activemq.command.*; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * Test case for the OpenWire marshalling for JournalTopicAck * @@ -36,6 +38,8 @@ * * */ +@Category(ParallelTest.class) + public class JournalTopicAckTest extends DataFileGeneratorTestSupport { diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v6/JournalTraceTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v6/JournalTraceTest.java index 9406aeb0304..8de0a331ad2 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v6/JournalTraceTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v6/JournalTraceTest.java @@ -25,6 +25,8 @@ import org.apache.activemq.command.*; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * Test case for the OpenWire marshalling for JournalTrace * @@ -36,6 +38,8 @@ * * */ +@Category(ParallelTest.class) + public class JournalTraceTest extends DataFileGeneratorTestSupport { diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v6/JournalTransactionTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v6/JournalTransactionTest.java index d61fe9f2a55..a6515c75ac2 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v6/JournalTransactionTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v6/JournalTransactionTest.java @@ -25,6 +25,8 @@ import org.apache.activemq.command.*; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * Test case for the OpenWire marshalling for JournalTransaction * @@ -36,6 +38,8 @@ * * */ +@Category(ParallelTest.class) + public class JournalTransactionTest extends DataFileGeneratorTestSupport { diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v6/KeepAliveInfoTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v6/KeepAliveInfoTest.java index 67d61f08505..42e1a65598d 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v6/KeepAliveInfoTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v6/KeepAliveInfoTest.java @@ -25,6 +25,8 @@ import org.apache.activemq.command.*; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * Test case for the OpenWire marshalling for KeepAliveInfo * @@ -36,6 +38,8 @@ * * */ +@Category(ParallelTest.class) + public class KeepAliveInfoTest extends BaseCommandTestSupport { diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v6/LastPartialCommandTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v6/LastPartialCommandTest.java index 4ede0f51b57..5a63821fb7b 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v6/LastPartialCommandTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v6/LastPartialCommandTest.java @@ -25,6 +25,8 @@ import org.apache.activemq.command.*; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * Test case for the OpenWire marshalling for LastPartialCommand * @@ -36,6 +38,8 @@ * * */ +@Category(ParallelTest.class) + public class LastPartialCommandTest extends PartialCommandTest { diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v6/LocalTransactionIdTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v6/LocalTransactionIdTest.java index 02ea10d0bb7..8bb6986aa84 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v6/LocalTransactionIdTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v6/LocalTransactionIdTest.java @@ -25,6 +25,8 @@ import org.apache.activemq.command.*; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * Test case for the OpenWire marshalling for LocalTransactionId * @@ -36,6 +38,8 @@ * * */ +@Category(ParallelTest.class) + public class LocalTransactionIdTest extends TransactionIdTestSupport { diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v6/MessageAckTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v6/MessageAckTest.java index b66c6ce1068..17d01051540 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v6/MessageAckTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v6/MessageAckTest.java @@ -25,6 +25,8 @@ import org.apache.activemq.command.*; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * Test case for the OpenWire marshalling for MessageAck * @@ -36,6 +38,8 @@ * * */ +@Category(ParallelTest.class) + public class MessageAckTest extends BaseCommandTestSupport { diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v6/MessageDispatchNotificationTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v6/MessageDispatchNotificationTest.java index aa805cadca3..5be214c0561 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v6/MessageDispatchNotificationTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v6/MessageDispatchNotificationTest.java @@ -25,6 +25,8 @@ import org.apache.activemq.command.*; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * Test case for the OpenWire marshalling for MessageDispatchNotification * @@ -36,6 +38,8 @@ * * */ +@Category(ParallelTest.class) + public class MessageDispatchNotificationTest extends BaseCommandTestSupport { diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v6/MessageDispatchTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v6/MessageDispatchTest.java index bbc04591749..6e93998060a 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v6/MessageDispatchTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v6/MessageDispatchTest.java @@ -25,6 +25,8 @@ import org.apache.activemq.command.*; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * Test case for the OpenWire marshalling for MessageDispatch * @@ -36,6 +38,8 @@ * * */ +@Category(ParallelTest.class) + public class MessageDispatchTest extends BaseCommandTestSupport { diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v6/MessageIdTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v6/MessageIdTest.java index 1f61361d57e..ac797b738ce 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v6/MessageIdTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v6/MessageIdTest.java @@ -25,6 +25,8 @@ import org.apache.activemq.command.*; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * Test case for the OpenWire marshalling for MessageId * @@ -36,6 +38,8 @@ * * */ +@Category(ParallelTest.class) + public class MessageIdTest extends DataFileGeneratorTestSupport { diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v6/MessagePullTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v6/MessagePullTest.java index f0d48a62695..0ff865800f2 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v6/MessagePullTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v6/MessagePullTest.java @@ -25,6 +25,8 @@ import org.apache.activemq.command.*; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * Test case for the OpenWire marshalling for MessagePull * @@ -36,6 +38,8 @@ * * */ +@Category(ParallelTest.class) + public class MessagePullTest extends BaseCommandTestSupport { diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v6/MessageTestSupport.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v6/MessageTestSupport.java index 863ee595c3c..d41f2cbceed 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v6/MessageTestSupport.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v6/MessageTestSupport.java @@ -18,8 +18,6 @@ package org.apache.activemq.openwire.v6; import org.apache.activemq.command.*; - - /** * Test case for the OpenWire marshalling for Message * @@ -31,6 +29,8 @@ * * */ + + public abstract class MessageTestSupport extends BaseCommandTestSupport { diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v6/NetworkBridgeFilterTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v6/NetworkBridgeFilterTest.java index e6bcf5433d9..62d170f3d80 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v6/NetworkBridgeFilterTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v6/NetworkBridgeFilterTest.java @@ -25,6 +25,8 @@ import org.apache.activemq.command.*; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * Test case for the OpenWire marshalling for NetworkBridgeFilter * @@ -36,6 +38,8 @@ * * */ +@Category(ParallelTest.class) + public class NetworkBridgeFilterTest extends DataFileGeneratorTestSupport { diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v6/PartialCommandTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v6/PartialCommandTest.java index 2f0e8ee92a1..330f4205594 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v6/PartialCommandTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v6/PartialCommandTest.java @@ -25,6 +25,8 @@ import org.apache.activemq.command.*; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * Test case for the OpenWire marshalling for PartialCommand * @@ -36,6 +38,8 @@ * * */ +@Category(ParallelTest.class) + public class PartialCommandTest extends DataFileGeneratorTestSupport { diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v6/ProducerAckTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v6/ProducerAckTest.java index f4db4a95b0d..0de9a226acc 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v6/ProducerAckTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v6/ProducerAckTest.java @@ -25,6 +25,8 @@ import org.apache.activemq.command.*; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * Test case for the OpenWire marshalling for ProducerAck * @@ -36,6 +38,8 @@ * * */ +@Category(ParallelTest.class) + public class ProducerAckTest extends BaseCommandTestSupport { diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v6/ProducerIdTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v6/ProducerIdTest.java index 17c88d32dc5..7566245eaca 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v6/ProducerIdTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v6/ProducerIdTest.java @@ -25,6 +25,8 @@ import org.apache.activemq.command.*; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * Test case for the OpenWire marshalling for ProducerId * @@ -36,6 +38,8 @@ * * */ +@Category(ParallelTest.class) + public class ProducerIdTest extends DataFileGeneratorTestSupport { diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v6/ProducerInfoTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v6/ProducerInfoTest.java index d9609805961..56f7627bf0a 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v6/ProducerInfoTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v6/ProducerInfoTest.java @@ -25,6 +25,8 @@ import org.apache.activemq.command.*; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * Test case for the OpenWire marshalling for ProducerInfo * @@ -36,6 +38,8 @@ * * */ +@Category(ParallelTest.class) + public class ProducerInfoTest extends BaseCommandTestSupport { diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v6/RemoveInfoTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v6/RemoveInfoTest.java index 503393589b2..60d85b42f9c 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v6/RemoveInfoTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v6/RemoveInfoTest.java @@ -25,6 +25,8 @@ import org.apache.activemq.command.*; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * Test case for the OpenWire marshalling for RemoveInfo * @@ -36,6 +38,8 @@ * * */ +@Category(ParallelTest.class) + public class RemoveInfoTest extends BaseCommandTestSupport { diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v6/RemoveSubscriptionInfoTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v6/RemoveSubscriptionInfoTest.java index 9b86af573e9..38311ef95ff 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v6/RemoveSubscriptionInfoTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v6/RemoveSubscriptionInfoTest.java @@ -25,6 +25,8 @@ import org.apache.activemq.command.*; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * Test case for the OpenWire marshalling for RemoveSubscriptionInfo * @@ -36,6 +38,8 @@ * * */ +@Category(ParallelTest.class) + public class RemoveSubscriptionInfoTest extends BaseCommandTestSupport { diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v6/ReplayCommandTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v6/ReplayCommandTest.java index d26de2529c5..ebabb1f3901 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v6/ReplayCommandTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v6/ReplayCommandTest.java @@ -25,6 +25,8 @@ import org.apache.activemq.command.*; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * Test case for the OpenWire marshalling for ReplayCommand * @@ -36,6 +38,8 @@ * * */ +@Category(ParallelTest.class) + public class ReplayCommandTest extends BaseCommandTestSupport { diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v6/ResponseTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v6/ResponseTest.java index 8153f23ed55..59301af097e 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v6/ResponseTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v6/ResponseTest.java @@ -25,6 +25,8 @@ import org.apache.activemq.command.*; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * Test case for the OpenWire marshalling for Response * @@ -36,6 +38,8 @@ * * */ +@Category(ParallelTest.class) + public class ResponseTest extends BaseCommandTestSupport { diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v6/SessionIdTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v6/SessionIdTest.java index 404fb200d38..1849996b6bf 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v6/SessionIdTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v6/SessionIdTest.java @@ -25,6 +25,8 @@ import org.apache.activemq.command.*; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * Test case for the OpenWire marshalling for SessionId * @@ -36,6 +38,8 @@ * * */ +@Category(ParallelTest.class) + public class SessionIdTest extends DataFileGeneratorTestSupport { diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v6/SessionInfoTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v6/SessionInfoTest.java index 2d695685428..bf7691739ee 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v6/SessionInfoTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v6/SessionInfoTest.java @@ -25,6 +25,8 @@ import org.apache.activemq.command.*; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * Test case for the OpenWire marshalling for SessionInfo * @@ -36,6 +38,8 @@ * * */ +@Category(ParallelTest.class) + public class SessionInfoTest extends BaseCommandTestSupport { diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v6/ShutdownInfoTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v6/ShutdownInfoTest.java index 5a90219b32a..7f56c3d8042 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v6/ShutdownInfoTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v6/ShutdownInfoTest.java @@ -25,6 +25,8 @@ import org.apache.activemq.command.*; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * Test case for the OpenWire marshalling for ShutdownInfo * @@ -36,6 +38,8 @@ * * */ +@Category(ParallelTest.class) + public class ShutdownInfoTest extends BaseCommandTestSupport { diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v6/SubscriptionInfoTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v6/SubscriptionInfoTest.java index df5e24ee730..fe55f3ac65a 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v6/SubscriptionInfoTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v6/SubscriptionInfoTest.java @@ -25,6 +25,8 @@ import org.apache.activemq.command.*; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * Test case for the OpenWire marshalling for SubscriptionInfo * @@ -36,6 +38,8 @@ * * */ +@Category(ParallelTest.class) + public class SubscriptionInfoTest extends DataFileGeneratorTestSupport { diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v6/TransactionIdTestSupport.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v6/TransactionIdTestSupport.java index f2f0ec967ef..f612356d202 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v6/TransactionIdTestSupport.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v6/TransactionIdTestSupport.java @@ -23,8 +23,6 @@ import org.apache.activemq.openwire.*; import org.apache.activemq.command.*; - - /** * Test case for the OpenWire marshalling for TransactionId * @@ -36,6 +34,8 @@ * * */ + + public abstract class TransactionIdTestSupport extends DataFileGeneratorTestSupport { diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v6/TransactionInfoTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v6/TransactionInfoTest.java index fb4e5ca54e0..45532a191b8 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v6/TransactionInfoTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v6/TransactionInfoTest.java @@ -25,6 +25,8 @@ import org.apache.activemq.command.*; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * Test case for the OpenWire marshalling for TransactionInfo * @@ -36,6 +38,8 @@ * * */ +@Category(ParallelTest.class) + public class TransactionInfoTest extends BaseCommandTestSupport { diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v6/XATransactionIdTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v6/XATransactionIdTest.java index c4e1c04c88b..591e22ccd33 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v6/XATransactionIdTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v6/XATransactionIdTest.java @@ -25,6 +25,8 @@ import org.apache.activemq.command.*; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * Test case for the OpenWire marshalling for XATransactionId * @@ -36,6 +38,8 @@ * * */ +@Category(ParallelTest.class) + public class XATransactionIdTest extends TransactionIdTestSupport { diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v7/BaseCommandTestSupport.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v7/BaseCommandTestSupport.java index f741fba52a5..df7c62ef1aa 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v7/BaseCommandTestSupport.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v7/BaseCommandTestSupport.java @@ -18,7 +18,6 @@ import org.apache.activemq.command.BaseCommand; import org.apache.activemq.openwire.DataFileGeneratorTestSupport; - /** * Test case for the OpenWire marshalling for BaseCommand NOTE!: This file is * auto generated - do not modify! if you need to make a change, please see the @@ -26,6 +25,8 @@ * openwire:generate to regenerate this file. * */ + + public abstract class BaseCommandTestSupport extends DataFileGeneratorTestSupport { protected void populateObject(Object object) throws Exception { diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v7/BrokerIdTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v7/BrokerIdTest.java index b701693dee8..4b67193e15e 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v7/BrokerIdTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v7/BrokerIdTest.java @@ -1 +1,60 @@ -/** * * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.activemq.openwire.v7; import java.io.DataInputStream; import java.io.DataOutputStream; import java.io.IOException; import org.apache.activemq.openwire.*; import org.apache.activemq.command.*; /** * Test case for the OpenWire marshalling for BrokerId * * * NOTE!: This file is auto generated - do not modify! * if you need to make a change, please see the modify the groovy scripts in the * under src/gram/script and then use maven openwire:generate to regenerate * this file. * * */ public class BrokerIdTest extends DataFileGeneratorTestSupport { public static BrokerIdTest SINGLETON = new BrokerIdTest(); public Object createObject() throws Exception { BrokerId info = new BrokerId(); populateObject(info); return info; } protected void populateObject(Object object) throws Exception { super.populateObject(object); BrokerId info = (BrokerId) object; info.setValue("Value:1"); } } \ No newline at end of file +/** + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.apache.activemq.openwire.v7; + +import java.io.DataInputStream; +import java.io.DataOutputStream; +import java.io.IOException; + +import org.apache.activemq.openwire.*; +import org.apache.activemq.command.*; + + +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; +/** + * Test case for the OpenWire marshalling for BrokerId + * + * + * NOTE!: This file is auto generated - do not modify! + * if you need to make a change, please see the modify the groovy scripts in the + * under src/gram/script and then use maven openwire:generate to regenerate + * this file. + * + * + */ +@Category(ParallelTest.class) + +public class BrokerIdTest extends DataFileGeneratorTestSupport { + + + public static BrokerIdTest SINGLETON = new BrokerIdTest(); + + public Object createObject() throws Exception { + BrokerId info = new BrokerId(); + populateObject(info); + return info; + } + + protected void populateObject(Object object) throws Exception { + super.populateObject(object); + BrokerId info = (BrokerId) object; + + info.setValue("Value:1"); + } +} diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v7/BrokerInfoTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v7/BrokerInfoTest.java index 657e60f8962..99d62eb8d64 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v7/BrokerInfoTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v7/BrokerInfoTest.java @@ -1 +1,77 @@ -/** * * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.activemq.openwire.v7; import java.io.DataInputStream; import java.io.DataOutputStream; import java.io.IOException; import org.apache.activemq.openwire.*; import org.apache.activemq.command.*; /** * Test case for the OpenWire marshalling for BrokerInfo * * * NOTE!: This file is auto generated - do not modify! * if you need to make a change, please see the modify the groovy scripts in the * under src/gram/script and then use maven openwire:generate to regenerate * this file. * * */ public class BrokerInfoTest extends BaseCommandTestSupport { public static BrokerInfoTest SINGLETON = new BrokerInfoTest(); public Object createObject() throws Exception { BrokerInfo info = new BrokerInfo(); populateObject(info); return info; } protected void populateObject(Object object) throws Exception { super.populateObject(object); BrokerInfo info = (BrokerInfo) object; info.setBrokerId(createBrokerId("BrokerId:1")); info.setBrokerURL("BrokerURL:2"); { BrokerInfo value[] = new BrokerInfo[0]; for( int i=0; i < 0; i++ ) { value[i] = createBrokerInfo("PeerBrokerInfos:3"); } info.setPeerBrokerInfos(value); } info.setBrokerName("BrokerName:4"); info.setSlaveBroker(true); info.setMasterBroker(false); info.setFaultTolerantConfiguration(true); info.setDuplexConnection(false); info.setNetworkConnection(true); info.setConnectionId(1); info.setBrokerUploadUrl("BrokerUploadUrl:5"); info.setNetworkProperties("NetworkProperties:6"); } } \ No newline at end of file +/** + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.apache.activemq.openwire.v7; + +import java.io.DataInputStream; +import java.io.DataOutputStream; +import java.io.IOException; + +import org.apache.activemq.openwire.*; +import org.apache.activemq.command.*; + + +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; +/** + * Test case for the OpenWire marshalling for BrokerInfo + * + * + * NOTE!: This file is auto generated - do not modify! + * if you need to make a change, please see the modify the groovy scripts in the + * under src/gram/script and then use maven openwire:generate to regenerate + * this file. + * + * + */ +@Category(ParallelTest.class) + +public class BrokerInfoTest extends BaseCommandTestSupport { + + + public static BrokerInfoTest SINGLETON = new BrokerInfoTest(); + + public Object createObject() throws Exception { + BrokerInfo info = new BrokerInfo(); + populateObject(info); + return info; + } + + protected void populateObject(Object object) throws Exception { + super.populateObject(object); + BrokerInfo info = (BrokerInfo) object; + + info.setBrokerId(createBrokerId("BrokerId:1")); + info.setBrokerURL("BrokerURL:2"); + { + BrokerInfo value[] = new BrokerInfo[0]; + for( int i=0; i < 0; i++ ) { + value[i] = createBrokerInfo("PeerBrokerInfos:3"); + } + info.setPeerBrokerInfos(value); + } + info.setBrokerName("BrokerName:4"); + info.setSlaveBroker(true); + info.setMasterBroker(false); + info.setFaultTolerantConfiguration(true); + info.setDuplexConnection(false); + info.setNetworkConnection(true); + info.setConnectionId(1); + info.setBrokerUploadUrl("BrokerUploadUrl:5"); + info.setNetworkProperties("NetworkProperties:6"); + } +} diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v7/ConnectionControlTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v7/ConnectionControlTest.java index cff204ea600..ba3dc257fa2 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v7/ConnectionControlTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v7/ConnectionControlTest.java @@ -1 +1,67 @@ -/** * * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.activemq.openwire.v7; import java.io.DataInputStream; import java.io.DataOutputStream; import java.io.IOException; import org.apache.activemq.openwire.*; import org.apache.activemq.command.*; /** * Test case for the OpenWire marshalling for ConnectionControl * * * NOTE!: This file is auto generated - do not modify! * if you need to make a change, please see the modify the groovy scripts in the * under src/gram/script and then use maven openwire:generate to regenerate * this file. * * */ public class ConnectionControlTest extends BaseCommandTestSupport { public static ConnectionControlTest SINGLETON = new ConnectionControlTest(); public Object createObject() throws Exception { ConnectionControl info = new ConnectionControl(); populateObject(info); return info; } protected void populateObject(Object object) throws Exception { super.populateObject(object); ConnectionControl info = (ConnectionControl) object; info.setClose(true); info.setExit(false); info.setFaultTolerant(true); info.setResume(false); info.setSuspend(true); info.setConnectedBrokers("ConnectedBrokers:1"); info.setReconnectTo("ReconnectTo:2"); info.setRebalanceConnection(false); } } \ No newline at end of file +/** + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.apache.activemq.openwire.v7; + +import java.io.DataInputStream; +import java.io.DataOutputStream; +import java.io.IOException; + +import org.apache.activemq.openwire.*; +import org.apache.activemq.command.*; + + +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; +/** + * Test case for the OpenWire marshalling for ConnectionControl + * + * + * NOTE!: This file is auto generated - do not modify! + * if you need to make a change, please see the modify the groovy scripts in the + * under src/gram/script and then use maven openwire:generate to regenerate + * this file. + * + * + */ +@Category(ParallelTest.class) + +public class ConnectionControlTest extends BaseCommandTestSupport { + + + public static ConnectionControlTest SINGLETON = new ConnectionControlTest(); + + public Object createObject() throws Exception { + ConnectionControl info = new ConnectionControl(); + populateObject(info); + return info; + } + + protected void populateObject(Object object) throws Exception { + super.populateObject(object); + ConnectionControl info = (ConnectionControl) object; + + info.setClose(true); + info.setExit(false); + info.setFaultTolerant(true); + info.setResume(false); + info.setSuspend(true); + info.setConnectedBrokers("ConnectedBrokers:1"); + info.setReconnectTo("ReconnectTo:2"); + info.setRebalanceConnection(false); + } +} diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v7/ConnectionErrorTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v7/ConnectionErrorTest.java index 46cfa3c8915..f3c92678fad 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v7/ConnectionErrorTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v7/ConnectionErrorTest.java @@ -1 +1,61 @@ -/** * * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.activemq.openwire.v7; import java.io.DataInputStream; import java.io.DataOutputStream; import java.io.IOException; import org.apache.activemq.openwire.*; import org.apache.activemq.command.*; /** * Test case for the OpenWire marshalling for ConnectionError * * * NOTE!: This file is auto generated - do not modify! * if you need to make a change, please see the modify the groovy scripts in the * under src/gram/script and then use maven openwire:generate to regenerate * this file. * * */ public class ConnectionErrorTest extends BaseCommandTestSupport { public static ConnectionErrorTest SINGLETON = new ConnectionErrorTest(); public Object createObject() throws Exception { ConnectionError info = new ConnectionError(); populateObject(info); return info; } protected void populateObject(Object object) throws Exception { super.populateObject(object); ConnectionError info = (ConnectionError) object; info.setException(createThrowable("Exception:1")); info.setConnectionId(createConnectionId("ConnectionId:2")); } } \ No newline at end of file +/** + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.apache.activemq.openwire.v7; + +import java.io.DataInputStream; +import java.io.DataOutputStream; +import java.io.IOException; + +import org.apache.activemq.openwire.*; +import org.apache.activemq.command.*; + + +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; +/** + * Test case for the OpenWire marshalling for ConnectionError + * + * + * NOTE!: This file is auto generated - do not modify! + * if you need to make a change, please see the modify the groovy scripts in the + * under src/gram/script and then use maven openwire:generate to regenerate + * this file. + * + * + */ +@Category(ParallelTest.class) + +public class ConnectionErrorTest extends BaseCommandTestSupport { + + + public static ConnectionErrorTest SINGLETON = new ConnectionErrorTest(); + + public Object createObject() throws Exception { + ConnectionError info = new ConnectionError(); + populateObject(info); + return info; + } + + protected void populateObject(Object object) throws Exception { + super.populateObject(object); + ConnectionError info = (ConnectionError) object; + + info.setException(createThrowable("Exception:1")); + info.setConnectionId(createConnectionId("ConnectionId:2")); + } +} diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v7/ConnectionIdTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v7/ConnectionIdTest.java index 54fc16ce439..5b9da5f6435 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v7/ConnectionIdTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v7/ConnectionIdTest.java @@ -1 +1,60 @@ -/** * * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.activemq.openwire.v7; import java.io.DataInputStream; import java.io.DataOutputStream; import java.io.IOException; import org.apache.activemq.openwire.*; import org.apache.activemq.command.*; /** * Test case for the OpenWire marshalling for ConnectionId * * * NOTE!: This file is auto generated - do not modify! * if you need to make a change, please see the modify the groovy scripts in the * under src/gram/script and then use maven openwire:generate to regenerate * this file. * * */ public class ConnectionIdTest extends DataFileGeneratorTestSupport { public static ConnectionIdTest SINGLETON = new ConnectionIdTest(); public Object createObject() throws Exception { ConnectionId info = new ConnectionId(); populateObject(info); return info; } protected void populateObject(Object object) throws Exception { super.populateObject(object); ConnectionId info = (ConnectionId) object; info.setValue("Value:1"); } } \ No newline at end of file +/** + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.apache.activemq.openwire.v7; + +import java.io.DataInputStream; +import java.io.DataOutputStream; +import java.io.IOException; + +import org.apache.activemq.openwire.*; +import org.apache.activemq.command.*; + + +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; +/** + * Test case for the OpenWire marshalling for ConnectionId + * + * + * NOTE!: This file is auto generated - do not modify! + * if you need to make a change, please see the modify the groovy scripts in the + * under src/gram/script and then use maven openwire:generate to regenerate + * this file. + * + * + */ +@Category(ParallelTest.class) + +public class ConnectionIdTest extends DataFileGeneratorTestSupport { + + + public static ConnectionIdTest SINGLETON = new ConnectionIdTest(); + + public Object createObject() throws Exception { + ConnectionId info = new ConnectionId(); + populateObject(info); + return info; + } + + protected void populateObject(Object object) throws Exception { + super.populateObject(object); + ConnectionId info = (ConnectionId) object; + + info.setValue("Value:1"); + } +} diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v7/ConnectionInfoTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v7/ConnectionInfoTest.java index c059052b7ce..12aac677d7e 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v7/ConnectionInfoTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v7/ConnectionInfoTest.java @@ -1 +1,75 @@ -/** * * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.activemq.openwire.v7; import java.io.DataInputStream; import java.io.DataOutputStream; import java.io.IOException; import org.apache.activemq.openwire.*; import org.apache.activemq.command.*; /** * Test case for the OpenWire marshalling for ConnectionInfo * * * NOTE!: This file is auto generated - do not modify! * if you need to make a change, please see the modify the groovy scripts in the * under src/gram/script and then use maven openwire:generate to regenerate * this file. * * */ public class ConnectionInfoTest extends BaseCommandTestSupport { public static ConnectionInfoTest SINGLETON = new ConnectionInfoTest(); public Object createObject() throws Exception { ConnectionInfo info = new ConnectionInfo(); populateObject(info); return info; } protected void populateObject(Object object) throws Exception { super.populateObject(object); ConnectionInfo info = (ConnectionInfo) object; info.setConnectionId(createConnectionId("ConnectionId:1")); info.setClientId("ClientId:2"); info.setPassword("Password:3"); info.setUserName("UserName:4"); { BrokerId value[] = new BrokerId[2]; for( int i=0; i < 2; i++ ) { value[i] = createBrokerId("BrokerPath:5"); } info.setBrokerPath(value); } info.setBrokerMasterConnector(true); info.setManageable(false); info.setClientMaster(true); info.setFaultTolerant(false); info.setFailoverReconnect(true); } } \ No newline at end of file +/** + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.apache.activemq.openwire.v7; + +import java.io.DataInputStream; +import java.io.DataOutputStream; +import java.io.IOException; + +import org.apache.activemq.openwire.*; +import org.apache.activemq.command.*; + + +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; +/** + * Test case for the OpenWire marshalling for ConnectionInfo + * + * + * NOTE!: This file is auto generated - do not modify! + * if you need to make a change, please see the modify the groovy scripts in the + * under src/gram/script and then use maven openwire:generate to regenerate + * this file. + * + * + */ +@Category(ParallelTest.class) + +public class ConnectionInfoTest extends BaseCommandTestSupport { + + + public static ConnectionInfoTest SINGLETON = new ConnectionInfoTest(); + + public Object createObject() throws Exception { + ConnectionInfo info = new ConnectionInfo(); + populateObject(info); + return info; + } + + protected void populateObject(Object object) throws Exception { + super.populateObject(object); + ConnectionInfo info = (ConnectionInfo) object; + + info.setConnectionId(createConnectionId("ConnectionId:1")); + info.setClientId("ClientId:2"); + info.setPassword("Password:3"); + info.setUserName("UserName:4"); + { + BrokerId value[] = new BrokerId[2]; + for( int i=0; i < 2; i++ ) { + value[i] = createBrokerId("BrokerPath:5"); + } + info.setBrokerPath(value); + } + info.setBrokerMasterConnector(true); + info.setManageable(false); + info.setClientMaster(true); + info.setFaultTolerant(false); + info.setFailoverReconnect(true); + } +} diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v7/ConsumerControlTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v7/ConsumerControlTest.java index df1b48089d2..28ec4eb31b0 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v7/ConsumerControlTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v7/ConsumerControlTest.java @@ -1 +1,66 @@ -/** * * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.activemq.openwire.v7; import java.io.DataInputStream; import java.io.DataOutputStream; import java.io.IOException; import org.apache.activemq.openwire.*; import org.apache.activemq.command.*; /** * Test case for the OpenWire marshalling for ConsumerControl * * * NOTE!: This file is auto generated - do not modify! * if you need to make a change, please see the modify the groovy scripts in the * under src/gram/script and then use maven openwire:generate to regenerate * this file. * * */ public class ConsumerControlTest extends BaseCommandTestSupport { public static ConsumerControlTest SINGLETON = new ConsumerControlTest(); public Object createObject() throws Exception { ConsumerControl info = new ConsumerControl(); populateObject(info); return info; } protected void populateObject(Object object) throws Exception { super.populateObject(object); ConsumerControl info = (ConsumerControl) object; info.setDestination(createActiveMQDestination("Destination:1")); info.setClose(true); info.setConsumerId(createConsumerId("ConsumerId:2")); info.setPrefetch(1); info.setFlush(false); info.setStart(true); info.setStop(false); } } \ No newline at end of file +/** + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.apache.activemq.openwire.v7; + +import java.io.DataInputStream; +import java.io.DataOutputStream; +import java.io.IOException; + +import org.apache.activemq.openwire.*; +import org.apache.activemq.command.*; + + +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; +/** + * Test case for the OpenWire marshalling for ConsumerControl + * + * + * NOTE!: This file is auto generated - do not modify! + * if you need to make a change, please see the modify the groovy scripts in the + * under src/gram/script and then use maven openwire:generate to regenerate + * this file. + * + * + */ +@Category(ParallelTest.class) + +public class ConsumerControlTest extends BaseCommandTestSupport { + + + public static ConsumerControlTest SINGLETON = new ConsumerControlTest(); + + public Object createObject() throws Exception { + ConsumerControl info = new ConsumerControl(); + populateObject(info); + return info; + } + + protected void populateObject(Object object) throws Exception { + super.populateObject(object); + ConsumerControl info = (ConsumerControl) object; + + info.setDestination(createActiveMQDestination("Destination:1")); + info.setClose(true); + info.setConsumerId(createConsumerId("ConsumerId:2")); + info.setPrefetch(1); + info.setFlush(false); + info.setStart(true); + info.setStop(false); + } +} diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v7/ConsumerIdTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v7/ConsumerIdTest.java index 32db0ac4ce9..86bca8334b8 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v7/ConsumerIdTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v7/ConsumerIdTest.java @@ -1 +1,62 @@ -/** * * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.activemq.openwire.v7; import java.io.DataInputStream; import java.io.DataOutputStream; import java.io.IOException; import org.apache.activemq.openwire.*; import org.apache.activemq.command.*; /** * Test case for the OpenWire marshalling for ConsumerId * * * NOTE!: This file is auto generated - do not modify! * if you need to make a change, please see the modify the groovy scripts in the * under src/gram/script and then use maven openwire:generate to regenerate * this file. * * */ public class ConsumerIdTest extends DataFileGeneratorTestSupport { public static ConsumerIdTest SINGLETON = new ConsumerIdTest(); public Object createObject() throws Exception { ConsumerId info = new ConsumerId(); populateObject(info); return info; } protected void populateObject(Object object) throws Exception { super.populateObject(object); ConsumerId info = (ConsumerId) object; info.setConnectionId("ConnectionId:1"); info.setSessionId(1); info.setValue(2); } } \ No newline at end of file +/** + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.apache.activemq.openwire.v7; + +import java.io.DataInputStream; +import java.io.DataOutputStream; +import java.io.IOException; + +import org.apache.activemq.openwire.*; +import org.apache.activemq.command.*; + + +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; +/** + * Test case for the OpenWire marshalling for ConsumerId + * + * + * NOTE!: This file is auto generated - do not modify! + * if you need to make a change, please see the modify the groovy scripts in the + * under src/gram/script and then use maven openwire:generate to regenerate + * this file. + * + * + */ +@Category(ParallelTest.class) + +public class ConsumerIdTest extends DataFileGeneratorTestSupport { + + + public static ConsumerIdTest SINGLETON = new ConsumerIdTest(); + + public Object createObject() throws Exception { + ConsumerId info = new ConsumerId(); + populateObject(info); + return info; + } + + protected void populateObject(Object object) throws Exception { + super.populateObject(object); + ConsumerId info = (ConsumerId) object; + + info.setConnectionId("ConnectionId:1"); + info.setSessionId(1); + info.setValue(2); + } +} diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v7/ConsumerInfoTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v7/ConsumerInfoTest.java index e3a120712e8..71873105864 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v7/ConsumerInfoTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v7/ConsumerInfoTest.java @@ -1 +1,89 @@ -/** * * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.activemq.openwire.v7; import java.io.DataInputStream; import java.io.DataOutputStream; import java.io.IOException; import org.apache.activemq.openwire.*; import org.apache.activemq.command.*; /** * Test case for the OpenWire marshalling for ConsumerInfo * * * NOTE!: This file is auto generated - do not modify! * if you need to make a change, please see the modify the groovy scripts in the * under src/gram/script and then use maven openwire:generate to regenerate * this file. * * */ public class ConsumerInfoTest extends BaseCommandTestSupport { public static ConsumerInfoTest SINGLETON = new ConsumerInfoTest(); public Object createObject() throws Exception { ConsumerInfo info = new ConsumerInfo(); populateObject(info); return info; } protected void populateObject(Object object) throws Exception { super.populateObject(object); ConsumerInfo info = (ConsumerInfo) object; info.setConsumerId(createConsumerId("ConsumerId:1")); info.setBrowser(true); info.setDestination(createActiveMQDestination("Destination:2")); info.setPrefetchSize(1); info.setMaximumPendingMessageLimit(2); info.setDispatchAsync(false); info.setSelector("Selector:3"); info.setSubscriptionName("SubscriptionName:4"); info.setNoLocal(true); info.setExclusive(false); info.setRetroactive(true); info.setPriority((byte) 1); { BrokerId value[] = new BrokerId[2]; for( int i=0; i < 2; i++ ) { value[i] = createBrokerId("BrokerPath:5"); } info.setBrokerPath(value); } info.setAdditionalPredicate(createBooleanExpression("AdditionalPredicate:6")); info.setNetworkSubscription(false); info.setOptimizedAcknowledge(true); info.setNoRangeAcks(false); { ConsumerId value[] = new ConsumerId[2]; for( int i=0; i < 2; i++ ) { value[i] = createConsumerId("NetworkConsumerPath:7"); } info.setNetworkConsumerPath(value); } } } \ No newline at end of file +/** + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.apache.activemq.openwire.v7; + +import java.io.DataInputStream; +import java.io.DataOutputStream; +import java.io.IOException; + +import org.apache.activemq.openwire.*; +import org.apache.activemq.command.*; + + +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; +/** + * Test case for the OpenWire marshalling for ConsumerInfo + * + * + * NOTE!: This file is auto generated - do not modify! + * if you need to make a change, please see the modify the groovy scripts in the + * under src/gram/script and then use maven openwire:generate to regenerate + * this file. + * + * + */ +@Category(ParallelTest.class) + +public class ConsumerInfoTest extends BaseCommandTestSupport { + + + public static ConsumerInfoTest SINGLETON = new ConsumerInfoTest(); + + public Object createObject() throws Exception { + ConsumerInfo info = new ConsumerInfo(); + populateObject(info); + return info; + } + + protected void populateObject(Object object) throws Exception { + super.populateObject(object); + ConsumerInfo info = (ConsumerInfo) object; + + info.setConsumerId(createConsumerId("ConsumerId:1")); + info.setBrowser(true); + info.setDestination(createActiveMQDestination("Destination:2")); + info.setPrefetchSize(1); + info.setMaximumPendingMessageLimit(2); + info.setDispatchAsync(false); + info.setSelector("Selector:3"); + info.setSubscriptionName("SubscriptionName:4"); + info.setNoLocal(true); + info.setExclusive(false); + info.setRetroactive(true); + info.setPriority((byte) 1); + { + BrokerId value[] = new BrokerId[2]; + for( int i=0; i < 2; i++ ) { + value[i] = createBrokerId("BrokerPath:5"); + } + info.setBrokerPath(value); + } + info.setAdditionalPredicate(createBooleanExpression("AdditionalPredicate:6")); + info.setNetworkSubscription(false); + info.setOptimizedAcknowledge(true); + info.setNoRangeAcks(false); + { + ConsumerId value[] = new ConsumerId[2]; + for( int i=0; i < 2; i++ ) { + value[i] = createConsumerId("NetworkConsumerPath:7"); + } + info.setNetworkConsumerPath(value); + } + } +} diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v7/ControlCommandTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v7/ControlCommandTest.java index ca402e634ee..4552fa5b074 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v7/ControlCommandTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v7/ControlCommandTest.java @@ -1 +1,60 @@ -/** * * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.activemq.openwire.v7; import java.io.DataInputStream; import java.io.DataOutputStream; import java.io.IOException; import org.apache.activemq.openwire.*; import org.apache.activemq.command.*; /** * Test case for the OpenWire marshalling for ControlCommand * * * NOTE!: This file is auto generated - do not modify! * if you need to make a change, please see the modify the groovy scripts in the * under src/gram/script and then use maven openwire:generate to regenerate * this file. * * */ public class ControlCommandTest extends BaseCommandTestSupport { public static ControlCommandTest SINGLETON = new ControlCommandTest(); public Object createObject() throws Exception { ControlCommand info = new ControlCommand(); populateObject(info); return info; } protected void populateObject(Object object) throws Exception { super.populateObject(object); ControlCommand info = (ControlCommand) object; info.setCommand("Command:1"); } } \ No newline at end of file +/** + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.apache.activemq.openwire.v7; + +import java.io.DataInputStream; +import java.io.DataOutputStream; +import java.io.IOException; + +import org.apache.activemq.openwire.*; +import org.apache.activemq.command.*; + + +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; +/** + * Test case for the OpenWire marshalling for ControlCommand + * + * + * NOTE!: This file is auto generated - do not modify! + * if you need to make a change, please see the modify the groovy scripts in the + * under src/gram/script and then use maven openwire:generate to regenerate + * this file. + * + * + */ +@Category(ParallelTest.class) + +public class ControlCommandTest extends BaseCommandTestSupport { + + + public static ControlCommandTest SINGLETON = new ControlCommandTest(); + + public Object createObject() throws Exception { + ControlCommand info = new ControlCommand(); + populateObject(info); + return info; + } + + protected void populateObject(Object object) throws Exception { + super.populateObject(object); + ControlCommand info = (ControlCommand) object; + + info.setCommand("Command:1"); + } +} diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v7/DataArrayResponseTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v7/DataArrayResponseTest.java index 67e23c6a1ee..264e6beccaa 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v7/DataArrayResponseTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v7/DataArrayResponseTest.java @@ -1 +1,66 @@ -/** * * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.activemq.openwire.v7; import java.io.DataInputStream; import java.io.DataOutputStream; import java.io.IOException; import org.apache.activemq.openwire.*; import org.apache.activemq.command.*; /** * Test case for the OpenWire marshalling for DataArrayResponse * * * NOTE!: This file is auto generated - do not modify! * if you need to make a change, please see the modify the groovy scripts in the * under src/gram/script and then use maven openwire:generate to regenerate * this file. * * */ public class DataArrayResponseTest extends ResponseTest { public static DataArrayResponseTest SINGLETON = new DataArrayResponseTest(); public Object createObject() throws Exception { DataArrayResponse info = new DataArrayResponse(); populateObject(info); return info; } protected void populateObject(Object object) throws Exception { super.populateObject(object); DataArrayResponse info = (DataArrayResponse) object; { DataStructure value[] = new DataStructure[2]; for( int i=0; i < 2; i++ ) { value[i] = createDataStructure("Data:1"); } info.setData(value); } } } \ No newline at end of file +/** + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.apache.activemq.openwire.v7; + +import java.io.DataInputStream; +import java.io.DataOutputStream; +import java.io.IOException; + +import org.apache.activemq.openwire.*; +import org.apache.activemq.command.*; + + +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; +/** + * Test case for the OpenWire marshalling for DataArrayResponse + * + * + * NOTE!: This file is auto generated - do not modify! + * if you need to make a change, please see the modify the groovy scripts in the + * under src/gram/script and then use maven openwire:generate to regenerate + * this file. + * + * + */ +@Category(ParallelTest.class) + +public class DataArrayResponseTest extends ResponseTest { + + + public static DataArrayResponseTest SINGLETON = new DataArrayResponseTest(); + + public Object createObject() throws Exception { + DataArrayResponse info = new DataArrayResponse(); + populateObject(info); + return info; + } + + protected void populateObject(Object object) throws Exception { + super.populateObject(object); + DataArrayResponse info = (DataArrayResponse) object; + + { + DataStructure value[] = new DataStructure[2]; + for( int i=0; i < 2; i++ ) { + value[i] = createDataStructure("Data:1"); + } + info.setData(value); + } + } +} diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v7/DataResponseTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v7/DataResponseTest.java index ef239cebc52..ecd8e6de308 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v7/DataResponseTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v7/DataResponseTest.java @@ -1 +1,60 @@ -/** * * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.activemq.openwire.v7; import java.io.DataInputStream; import java.io.DataOutputStream; import java.io.IOException; import org.apache.activemq.openwire.*; import org.apache.activemq.command.*; /** * Test case for the OpenWire marshalling for DataResponse * * * NOTE!: This file is auto generated - do not modify! * if you need to make a change, please see the modify the groovy scripts in the * under src/gram/script and then use maven openwire:generate to regenerate * this file. * * */ public class DataResponseTest extends ResponseTest { public static DataResponseTest SINGLETON = new DataResponseTest(); public Object createObject() throws Exception { DataResponse info = new DataResponse(); populateObject(info); return info; } protected void populateObject(Object object) throws Exception { super.populateObject(object); DataResponse info = (DataResponse) object; info.setData(createDataStructure("Data:1")); } } \ No newline at end of file +/** + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.apache.activemq.openwire.v7; + +import java.io.DataInputStream; +import java.io.DataOutputStream; +import java.io.IOException; + +import org.apache.activemq.openwire.*; +import org.apache.activemq.command.*; + + +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; +/** + * Test case for the OpenWire marshalling for DataResponse + * + * + * NOTE!: This file is auto generated - do not modify! + * if you need to make a change, please see the modify the groovy scripts in the + * under src/gram/script and then use maven openwire:generate to regenerate + * this file. + * + * + */ +@Category(ParallelTest.class) + +public class DataResponseTest extends ResponseTest { + + + public static DataResponseTest SINGLETON = new DataResponseTest(); + + public Object createObject() throws Exception { + DataResponse info = new DataResponse(); + populateObject(info); + return info; + } + + protected void populateObject(Object object) throws Exception { + super.populateObject(object); + DataResponse info = (DataResponse) object; + + info.setData(createDataStructure("Data:1")); + } +} diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v7/DestinationInfoTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v7/DestinationInfoTest.java index 3d36583e0ea..52ec53cc652 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v7/DestinationInfoTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v7/DestinationInfoTest.java @@ -1 +1,70 @@ -/** * * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.activemq.openwire.v7; import java.io.DataInputStream; import java.io.DataOutputStream; import java.io.IOException; import org.apache.activemq.openwire.*; import org.apache.activemq.command.*; /** * Test case for the OpenWire marshalling for DestinationInfo * * * NOTE!: This file is auto generated - do not modify! * if you need to make a change, please see the modify the groovy scripts in the * under src/gram/script and then use maven openwire:generate to regenerate * this file. * * */ public class DestinationInfoTest extends BaseCommandTestSupport { public static DestinationInfoTest SINGLETON = new DestinationInfoTest(); public Object createObject() throws Exception { DestinationInfo info = new DestinationInfo(); populateObject(info); return info; } protected void populateObject(Object object) throws Exception { super.populateObject(object); DestinationInfo info = (DestinationInfo) object; info.setConnectionId(createConnectionId("ConnectionId:1")); info.setDestination(createActiveMQDestination("Destination:2")); info.setOperationType((byte) 1); info.setTimeout(1); { BrokerId value[] = new BrokerId[2]; for( int i=0; i < 2; i++ ) { value[i] = createBrokerId("BrokerPath:3"); } info.setBrokerPath(value); } } } \ No newline at end of file +/** + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.apache.activemq.openwire.v7; + +import java.io.DataInputStream; +import java.io.DataOutputStream; +import java.io.IOException; + +import org.apache.activemq.openwire.*; +import org.apache.activemq.command.*; + + +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; +/** + * Test case for the OpenWire marshalling for DestinationInfo + * + * + * NOTE!: This file is auto generated - do not modify! + * if you need to make a change, please see the modify the groovy scripts in the + * under src/gram/script and then use maven openwire:generate to regenerate + * this file. + * + * + */ +@Category(ParallelTest.class) + +public class DestinationInfoTest extends BaseCommandTestSupport { + + + public static DestinationInfoTest SINGLETON = new DestinationInfoTest(); + + public Object createObject() throws Exception { + DestinationInfo info = new DestinationInfo(); + populateObject(info); + return info; + } + + protected void populateObject(Object object) throws Exception { + super.populateObject(object); + DestinationInfo info = (DestinationInfo) object; + + info.setConnectionId(createConnectionId("ConnectionId:1")); + info.setDestination(createActiveMQDestination("Destination:2")); + info.setOperationType((byte) 1); + info.setTimeout(1); + { + BrokerId value[] = new BrokerId[2]; + for( int i=0; i < 2; i++ ) { + value[i] = createBrokerId("BrokerPath:3"); + } + info.setBrokerPath(value); + } + } +} diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v7/DiscoveryEventTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v7/DiscoveryEventTest.java index 939ed8ca0cb..7d1fbaf05ed 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v7/DiscoveryEventTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v7/DiscoveryEventTest.java @@ -1 +1,61 @@ -/** * * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.activemq.openwire.v7; import java.io.DataInputStream; import java.io.DataOutputStream; import java.io.IOException; import org.apache.activemq.openwire.*; import org.apache.activemq.command.*; /** * Test case for the OpenWire marshalling for DiscoveryEvent * * * NOTE!: This file is auto generated - do not modify! * if you need to make a change, please see the modify the groovy scripts in the * under src/gram/script and then use maven openwire:generate to regenerate * this file. * * */ public class DiscoveryEventTest extends DataFileGeneratorTestSupport { public static DiscoveryEventTest SINGLETON = new DiscoveryEventTest(); public Object createObject() throws Exception { DiscoveryEvent info = new DiscoveryEvent(); populateObject(info); return info; } protected void populateObject(Object object) throws Exception { super.populateObject(object); DiscoveryEvent info = (DiscoveryEvent) object; info.setServiceName("ServiceName:1"); info.setBrokerName("BrokerName:2"); } } \ No newline at end of file +/** + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.apache.activemq.openwire.v7; + +import java.io.DataInputStream; +import java.io.DataOutputStream; +import java.io.IOException; + +import org.apache.activemq.openwire.*; +import org.apache.activemq.command.*; + + +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; +/** + * Test case for the OpenWire marshalling for DiscoveryEvent + * + * + * NOTE!: This file is auto generated - do not modify! + * if you need to make a change, please see the modify the groovy scripts in the + * under src/gram/script and then use maven openwire:generate to regenerate + * this file. + * + * + */ +@Category(ParallelTest.class) + +public class DiscoveryEventTest extends DataFileGeneratorTestSupport { + + + public static DiscoveryEventTest SINGLETON = new DiscoveryEventTest(); + + public Object createObject() throws Exception { + DiscoveryEvent info = new DiscoveryEvent(); + populateObject(info); + return info; + } + + protected void populateObject(Object object) throws Exception { + super.populateObject(object); + DiscoveryEvent info = (DiscoveryEvent) object; + + info.setServiceName("ServiceName:1"); + info.setBrokerName("BrokerName:2"); + } +} diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v7/ExceptionResponseTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v7/ExceptionResponseTest.java index d05f91867d5..5f12352cbd4 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v7/ExceptionResponseTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v7/ExceptionResponseTest.java @@ -1 +1,60 @@ -/** * * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.activemq.openwire.v7; import java.io.DataInputStream; import java.io.DataOutputStream; import java.io.IOException; import org.apache.activemq.openwire.*; import org.apache.activemq.command.*; /** * Test case for the OpenWire marshalling for ExceptionResponse * * * NOTE!: This file is auto generated - do not modify! * if you need to make a change, please see the modify the groovy scripts in the * under src/gram/script and then use maven openwire:generate to regenerate * this file. * * */ public class ExceptionResponseTest extends ResponseTest { public static ExceptionResponseTest SINGLETON = new ExceptionResponseTest(); public Object createObject() throws Exception { ExceptionResponse info = new ExceptionResponse(); populateObject(info); return info; } protected void populateObject(Object object) throws Exception { super.populateObject(object); ExceptionResponse info = (ExceptionResponse) object; info.setException(createThrowable("Exception:1")); } } \ No newline at end of file +/** + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.apache.activemq.openwire.v7; + +import java.io.DataInputStream; +import java.io.DataOutputStream; +import java.io.IOException; + +import org.apache.activemq.openwire.*; +import org.apache.activemq.command.*; + + +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; +/** + * Test case for the OpenWire marshalling for ExceptionResponse + * + * + * NOTE!: This file is auto generated - do not modify! + * if you need to make a change, please see the modify the groovy scripts in the + * under src/gram/script and then use maven openwire:generate to regenerate + * this file. + * + * + */ +@Category(ParallelTest.class) + +public class ExceptionResponseTest extends ResponseTest { + + + public static ExceptionResponseTest SINGLETON = new ExceptionResponseTest(); + + public Object createObject() throws Exception { + ExceptionResponse info = new ExceptionResponse(); + populateObject(info); + return info; + } + + protected void populateObject(Object object) throws Exception { + super.populateObject(object); + ExceptionResponse info = (ExceptionResponse) object; + + info.setException(createThrowable("Exception:1")); + } +} diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v7/FlushCommandTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v7/FlushCommandTest.java index 21275c7ec86..b98d0892506 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v7/FlushCommandTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v7/FlushCommandTest.java @@ -1 +1,59 @@ -/** * * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.activemq.openwire.v7; import java.io.DataInputStream; import java.io.DataOutputStream; import java.io.IOException; import org.apache.activemq.openwire.*; import org.apache.activemq.command.*; /** * Test case for the OpenWire marshalling for FlushCommand * * * NOTE!: This file is auto generated - do not modify! * if you need to make a change, please see the modify the groovy scripts in the * under src/gram/script and then use maven openwire:generate to regenerate * this file. * * */ public class FlushCommandTest extends BaseCommandTestSupport { public static FlushCommandTest SINGLETON = new FlushCommandTest(); public Object createObject() throws Exception { FlushCommand info = new FlushCommand(); populateObject(info); return info; } protected void populateObject(Object object) throws Exception { super.populateObject(object); FlushCommand info = (FlushCommand) object; } } \ No newline at end of file +/** + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.apache.activemq.openwire.v7; + +import java.io.DataInputStream; +import java.io.DataOutputStream; +import java.io.IOException; + +import org.apache.activemq.openwire.*; +import org.apache.activemq.command.*; + + +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; +/** + * Test case for the OpenWire marshalling for FlushCommand + * + * + * NOTE!: This file is auto generated - do not modify! + * if you need to make a change, please see the modify the groovy scripts in the + * under src/gram/script and then use maven openwire:generate to regenerate + * this file. + * + * + */ +@Category(ParallelTest.class) + +public class FlushCommandTest extends BaseCommandTestSupport { + + + public static FlushCommandTest SINGLETON = new FlushCommandTest(); + + public Object createObject() throws Exception { + FlushCommand info = new FlushCommand(); + populateObject(info); + return info; + } + + protected void populateObject(Object object) throws Exception { + super.populateObject(object); + FlushCommand info = (FlushCommand) object; + + } +} diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v7/IntegerResponseTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v7/IntegerResponseTest.java index 88c6e33f90a..98fe9c8260b 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v7/IntegerResponseTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v7/IntegerResponseTest.java @@ -1 +1,60 @@ -/** * * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.activemq.openwire.v7; import java.io.DataInputStream; import java.io.DataOutputStream; import java.io.IOException; import org.apache.activemq.openwire.*; import org.apache.activemq.command.*; /** * Test case for the OpenWire marshalling for IntegerResponse * * * NOTE!: This file is auto generated - do not modify! * if you need to make a change, please see the modify the groovy scripts in the * under src/gram/script and then use maven openwire:generate to regenerate * this file. * * */ public class IntegerResponseTest extends ResponseTest { public static IntegerResponseTest SINGLETON = new IntegerResponseTest(); public Object createObject() throws Exception { IntegerResponse info = new IntegerResponse(); populateObject(info); return info; } protected void populateObject(Object object) throws Exception { super.populateObject(object); IntegerResponse info = (IntegerResponse) object; info.setResult(1); } } \ No newline at end of file +/** + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.apache.activemq.openwire.v7; + +import java.io.DataInputStream; +import java.io.DataOutputStream; +import java.io.IOException; + +import org.apache.activemq.openwire.*; +import org.apache.activemq.command.*; + + +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; +/** + * Test case for the OpenWire marshalling for IntegerResponse + * + * + * NOTE!: This file is auto generated - do not modify! + * if you need to make a change, please see the modify the groovy scripts in the + * under src/gram/script and then use maven openwire:generate to regenerate + * this file. + * + * + */ +@Category(ParallelTest.class) + +public class IntegerResponseTest extends ResponseTest { + + + public static IntegerResponseTest SINGLETON = new IntegerResponseTest(); + + public Object createObject() throws Exception { + IntegerResponse info = new IntegerResponse(); + populateObject(info); + return info; + } + + protected void populateObject(Object object) throws Exception { + super.populateObject(object); + IntegerResponse info = (IntegerResponse) object; + + info.setResult(1); + } +} diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v7/JournalQueueAckTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v7/JournalQueueAckTest.java index f12c69cd556..ebaae0b2bf2 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v7/JournalQueueAckTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v7/JournalQueueAckTest.java @@ -1 +1,61 @@ -/** * * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.activemq.openwire.v7; import java.io.DataInputStream; import java.io.DataOutputStream; import java.io.IOException; import org.apache.activemq.openwire.*; import org.apache.activemq.command.*; /** * Test case for the OpenWire marshalling for JournalQueueAck * * * NOTE!: This file is auto generated - do not modify! * if you need to make a change, please see the modify the groovy scripts in the * under src/gram/script and then use maven openwire:generate to regenerate * this file. * * */ public class JournalQueueAckTest extends DataFileGeneratorTestSupport { public static JournalQueueAckTest SINGLETON = new JournalQueueAckTest(); public Object createObject() throws Exception { JournalQueueAck info = new JournalQueueAck(); populateObject(info); return info; } protected void populateObject(Object object) throws Exception { super.populateObject(object); JournalQueueAck info = (JournalQueueAck) object; info.setDestination(createActiveMQDestination("Destination:1")); info.setMessageAck(createMessageAck("MessageAck:2")); } } \ No newline at end of file +/** + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.apache.activemq.openwire.v7; + +import java.io.DataInputStream; +import java.io.DataOutputStream; +import java.io.IOException; + +import org.apache.activemq.openwire.*; +import org.apache.activemq.command.*; + + +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; +/** + * Test case for the OpenWire marshalling for JournalQueueAck + * + * + * NOTE!: This file is auto generated - do not modify! + * if you need to make a change, please see the modify the groovy scripts in the + * under src/gram/script and then use maven openwire:generate to regenerate + * this file. + * + * + */ +@Category(ParallelTest.class) + +public class JournalQueueAckTest extends DataFileGeneratorTestSupport { + + + public static JournalQueueAckTest SINGLETON = new JournalQueueAckTest(); + + public Object createObject() throws Exception { + JournalQueueAck info = new JournalQueueAck(); + populateObject(info); + return info; + } + + protected void populateObject(Object object) throws Exception { + super.populateObject(object); + JournalQueueAck info = (JournalQueueAck) object; + + info.setDestination(createActiveMQDestination("Destination:1")); + info.setMessageAck(createMessageAck("MessageAck:2")); + } +} diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v7/JournalTopicAckTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v7/JournalTopicAckTest.java index fe48a8d3147..2b2ffc9846e 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v7/JournalTopicAckTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v7/JournalTopicAckTest.java @@ -1 +1,65 @@ -/** * * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.activemq.openwire.v7; import java.io.DataInputStream; import java.io.DataOutputStream; import java.io.IOException; import org.apache.activemq.openwire.*; import org.apache.activemq.command.*; /** * Test case for the OpenWire marshalling for JournalTopicAck * * * NOTE!: This file is auto generated - do not modify! * if you need to make a change, please see the modify the groovy scripts in the * under src/gram/script and then use maven openwire:generate to regenerate * this file. * * */ public class JournalTopicAckTest extends DataFileGeneratorTestSupport { public static JournalTopicAckTest SINGLETON = new JournalTopicAckTest(); public Object createObject() throws Exception { JournalTopicAck info = new JournalTopicAck(); populateObject(info); return info; } protected void populateObject(Object object) throws Exception { super.populateObject(object); JournalTopicAck info = (JournalTopicAck) object; info.setDestination(createActiveMQDestination("Destination:1")); info.setMessageId(createMessageId("MessageId:2")); info.setMessageSequenceId(1); info.setSubscritionName("SubscritionName:3"); info.setClientId("ClientId:4"); info.setTransactionId(createTransactionId("TransactionId:5")); } } \ No newline at end of file +/** + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.apache.activemq.openwire.v7; + +import java.io.DataInputStream; +import java.io.DataOutputStream; +import java.io.IOException; + +import org.apache.activemq.openwire.*; +import org.apache.activemq.command.*; + + +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; +/** + * Test case for the OpenWire marshalling for JournalTopicAck + * + * + * NOTE!: This file is auto generated - do not modify! + * if you need to make a change, please see the modify the groovy scripts in the + * under src/gram/script and then use maven openwire:generate to regenerate + * this file. + * + * + */ +@Category(ParallelTest.class) + +public class JournalTopicAckTest extends DataFileGeneratorTestSupport { + + + public static JournalTopicAckTest SINGLETON = new JournalTopicAckTest(); + + public Object createObject() throws Exception { + JournalTopicAck info = new JournalTopicAck(); + populateObject(info); + return info; + } + + protected void populateObject(Object object) throws Exception { + super.populateObject(object); + JournalTopicAck info = (JournalTopicAck) object; + + info.setDestination(createActiveMQDestination("Destination:1")); + info.setMessageId(createMessageId("MessageId:2")); + info.setMessageSequenceId(1); + info.setSubscritionName("SubscritionName:3"); + info.setClientId("ClientId:4"); + info.setTransactionId(createTransactionId("TransactionId:5")); + } +} diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v7/JournalTraceTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v7/JournalTraceTest.java index fce7d59d9af..16b7c05d06b 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v7/JournalTraceTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v7/JournalTraceTest.java @@ -1 +1,60 @@ -/** * * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.activemq.openwire.v7; import java.io.DataInputStream; import java.io.DataOutputStream; import java.io.IOException; import org.apache.activemq.openwire.*; import org.apache.activemq.command.*; /** * Test case for the OpenWire marshalling for JournalTrace * * * NOTE!: This file is auto generated - do not modify! * if you need to make a change, please see the modify the groovy scripts in the * under src/gram/script and then use maven openwire:generate to regenerate * this file. * * */ public class JournalTraceTest extends DataFileGeneratorTestSupport { public static JournalTraceTest SINGLETON = new JournalTraceTest(); public Object createObject() throws Exception { JournalTrace info = new JournalTrace(); populateObject(info); return info; } protected void populateObject(Object object) throws Exception { super.populateObject(object); JournalTrace info = (JournalTrace) object; info.setMessage("Message:1"); } } \ No newline at end of file +/** + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.apache.activemq.openwire.v7; + +import java.io.DataInputStream; +import java.io.DataOutputStream; +import java.io.IOException; + +import org.apache.activemq.openwire.*; +import org.apache.activemq.command.*; + + +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; +/** + * Test case for the OpenWire marshalling for JournalTrace + * + * + * NOTE!: This file is auto generated - do not modify! + * if you need to make a change, please see the modify the groovy scripts in the + * under src/gram/script and then use maven openwire:generate to regenerate + * this file. + * + * + */ +@Category(ParallelTest.class) + +public class JournalTraceTest extends DataFileGeneratorTestSupport { + + + public static JournalTraceTest SINGLETON = new JournalTraceTest(); + + public Object createObject() throws Exception { + JournalTrace info = new JournalTrace(); + populateObject(info); + return info; + } + + protected void populateObject(Object object) throws Exception { + super.populateObject(object); + JournalTrace info = (JournalTrace) object; + + info.setMessage("Message:1"); + } +} diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v7/JournalTransactionTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v7/JournalTransactionTest.java index 8b9bd07c0ce..944146ee20f 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v7/JournalTransactionTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v7/JournalTransactionTest.java @@ -1 +1,62 @@ -/** * * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.activemq.openwire.v7; import java.io.DataInputStream; import java.io.DataOutputStream; import java.io.IOException; import org.apache.activemq.openwire.*; import org.apache.activemq.command.*; /** * Test case for the OpenWire marshalling for JournalTransaction * * * NOTE!: This file is auto generated - do not modify! * if you need to make a change, please see the modify the groovy scripts in the * under src/gram/script and then use maven openwire:generate to regenerate * this file. * * */ public class JournalTransactionTest extends DataFileGeneratorTestSupport { public static JournalTransactionTest SINGLETON = new JournalTransactionTest(); public Object createObject() throws Exception { JournalTransaction info = new JournalTransaction(); populateObject(info); return info; } protected void populateObject(Object object) throws Exception { super.populateObject(object); JournalTransaction info = (JournalTransaction) object; info.setTransactionId(createTransactionId("TransactionId:1")); info.setType((byte) 1); info.setWasPrepared(true); } } \ No newline at end of file +/** + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.apache.activemq.openwire.v7; + +import java.io.DataInputStream; +import java.io.DataOutputStream; +import java.io.IOException; + +import org.apache.activemq.openwire.*; +import org.apache.activemq.command.*; + + +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; +/** + * Test case for the OpenWire marshalling for JournalTransaction + * + * + * NOTE!: This file is auto generated - do not modify! + * if you need to make a change, please see the modify the groovy scripts in the + * under src/gram/script and then use maven openwire:generate to regenerate + * this file. + * + * + */ +@Category(ParallelTest.class) + +public class JournalTransactionTest extends DataFileGeneratorTestSupport { + + + public static JournalTransactionTest SINGLETON = new JournalTransactionTest(); + + public Object createObject() throws Exception { + JournalTransaction info = new JournalTransaction(); + populateObject(info); + return info; + } + + protected void populateObject(Object object) throws Exception { + super.populateObject(object); + JournalTransaction info = (JournalTransaction) object; + + info.setTransactionId(createTransactionId("TransactionId:1")); + info.setType((byte) 1); + info.setWasPrepared(true); + } +} diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v7/KeepAliveInfoTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v7/KeepAliveInfoTest.java index ba6a23afb21..c2087fffdce 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v7/KeepAliveInfoTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v7/KeepAliveInfoTest.java @@ -1 +1,59 @@ -/** * * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.activemq.openwire.v7; import java.io.DataInputStream; import java.io.DataOutputStream; import java.io.IOException; import org.apache.activemq.openwire.*; import org.apache.activemq.command.*; /** * Test case for the OpenWire marshalling for KeepAliveInfo * * * NOTE!: This file is auto generated - do not modify! * if you need to make a change, please see the modify the groovy scripts in the * under src/gram/script and then use maven openwire:generate to regenerate * this file. * * */ public class KeepAliveInfoTest extends BaseCommandTestSupport { public static KeepAliveInfoTest SINGLETON = new KeepAliveInfoTest(); public Object createObject() throws Exception { KeepAliveInfo info = new KeepAliveInfo(); populateObject(info); return info; } protected void populateObject(Object object) throws Exception { super.populateObject(object); KeepAliveInfo info = (KeepAliveInfo) object; } } \ No newline at end of file +/** + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.apache.activemq.openwire.v7; + +import java.io.DataInputStream; +import java.io.DataOutputStream; +import java.io.IOException; + +import org.apache.activemq.openwire.*; +import org.apache.activemq.command.*; + + +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; +/** + * Test case for the OpenWire marshalling for KeepAliveInfo + * + * + * NOTE!: This file is auto generated - do not modify! + * if you need to make a change, please see the modify the groovy scripts in the + * under src/gram/script and then use maven openwire:generate to regenerate + * this file. + * + * + */ +@Category(ParallelTest.class) + +public class KeepAliveInfoTest extends BaseCommandTestSupport { + + + public static KeepAliveInfoTest SINGLETON = new KeepAliveInfoTest(); + + public Object createObject() throws Exception { + KeepAliveInfo info = new KeepAliveInfo(); + populateObject(info); + return info; + } + + protected void populateObject(Object object) throws Exception { + super.populateObject(object); + KeepAliveInfo info = (KeepAliveInfo) object; + + } +} diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v7/LastPartialCommandTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v7/LastPartialCommandTest.java index 9e5922dca2d..845f6c0aa00 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v7/LastPartialCommandTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v7/LastPartialCommandTest.java @@ -1 +1,59 @@ -/** * * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.activemq.openwire.v7; import java.io.DataInputStream; import java.io.DataOutputStream; import java.io.IOException; import org.apache.activemq.openwire.*; import org.apache.activemq.command.*; /** * Test case for the OpenWire marshalling for LastPartialCommand * * * NOTE!: This file is auto generated - do not modify! * if you need to make a change, please see the modify the groovy scripts in the * under src/gram/script and then use maven openwire:generate to regenerate * this file. * * */ public class LastPartialCommandTest extends PartialCommandTest { public static LastPartialCommandTest SINGLETON = new LastPartialCommandTest(); public Object createObject() throws Exception { LastPartialCommand info = new LastPartialCommand(); populateObject(info); return info; } protected void populateObject(Object object) throws Exception { super.populateObject(object); LastPartialCommand info = (LastPartialCommand) object; } } \ No newline at end of file +/** + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.apache.activemq.openwire.v7; + +import java.io.DataInputStream; +import java.io.DataOutputStream; +import java.io.IOException; + +import org.apache.activemq.openwire.*; +import org.apache.activemq.command.*; + + +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; +/** + * Test case for the OpenWire marshalling for LastPartialCommand + * + * + * NOTE!: This file is auto generated - do not modify! + * if you need to make a change, please see the modify the groovy scripts in the + * under src/gram/script and then use maven openwire:generate to regenerate + * this file. + * + * + */ +@Category(ParallelTest.class) + +public class LastPartialCommandTest extends PartialCommandTest { + + + public static LastPartialCommandTest SINGLETON = new LastPartialCommandTest(); + + public Object createObject() throws Exception { + LastPartialCommand info = new LastPartialCommand(); + populateObject(info); + return info; + } + + protected void populateObject(Object object) throws Exception { + super.populateObject(object); + LastPartialCommand info = (LastPartialCommand) object; + + } +} diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v7/LocalTransactionIdTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v7/LocalTransactionIdTest.java index c70c948f1ec..d2f4f363714 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v7/LocalTransactionIdTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v7/LocalTransactionIdTest.java @@ -1 +1,61 @@ -/** * * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.activemq.openwire.v7; import java.io.DataInputStream; import java.io.DataOutputStream; import java.io.IOException; import org.apache.activemq.openwire.*; import org.apache.activemq.command.*; /** * Test case for the OpenWire marshalling for LocalTransactionId * * * NOTE!: This file is auto generated - do not modify! * if you need to make a change, please see the modify the groovy scripts in the * under src/gram/script and then use maven openwire:generate to regenerate * this file. * * */ public class LocalTransactionIdTest extends TransactionIdTestSupport { public static LocalTransactionIdTest SINGLETON = new LocalTransactionIdTest(); public Object createObject() throws Exception { LocalTransactionId info = new LocalTransactionId(); populateObject(info); return info; } protected void populateObject(Object object) throws Exception { super.populateObject(object); LocalTransactionId info = (LocalTransactionId) object; info.setValue(1); info.setConnectionId(createConnectionId("ConnectionId:1")); } } \ No newline at end of file +/** + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.apache.activemq.openwire.v7; + +import java.io.DataInputStream; +import java.io.DataOutputStream; +import java.io.IOException; + +import org.apache.activemq.openwire.*; +import org.apache.activemq.command.*; + + +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; +/** + * Test case for the OpenWire marshalling for LocalTransactionId + * + * + * NOTE!: This file is auto generated - do not modify! + * if you need to make a change, please see the modify the groovy scripts in the + * under src/gram/script and then use maven openwire:generate to regenerate + * this file. + * + * + */ +@Category(ParallelTest.class) + +public class LocalTransactionIdTest extends TransactionIdTestSupport { + + + public static LocalTransactionIdTest SINGLETON = new LocalTransactionIdTest(); + + public Object createObject() throws Exception { + LocalTransactionId info = new LocalTransactionId(); + populateObject(info); + return info; + } + + protected void populateObject(Object object) throws Exception { + super.populateObject(object); + LocalTransactionId info = (LocalTransactionId) object; + + info.setValue(1); + info.setConnectionId(createConnectionId("ConnectionId:1")); + } +} diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v7/MessageAckTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v7/MessageAckTest.java index 8a00f6e3f71..4fa886fa3b6 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v7/MessageAckTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v7/MessageAckTest.java @@ -1 +1,67 @@ -/** * * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.activemq.openwire.v7; import java.io.DataInputStream; import java.io.DataOutputStream; import java.io.IOException; import org.apache.activemq.openwire.*; import org.apache.activemq.command.*; /** * Test case for the OpenWire marshalling for MessageAck * * * NOTE!: This file is auto generated - do not modify! * if you need to make a change, please see the modify the groovy scripts in the * under src/gram/script and then use maven openwire:generate to regenerate * this file. * * */ public class MessageAckTest extends BaseCommandTestSupport { public static MessageAckTest SINGLETON = new MessageAckTest(); public Object createObject() throws Exception { MessageAck info = new MessageAck(); populateObject(info); return info; } protected void populateObject(Object object) throws Exception { super.populateObject(object); MessageAck info = (MessageAck) object; info.setDestination(createActiveMQDestination("Destination:1")); info.setTransactionId(createTransactionId("TransactionId:2")); info.setConsumerId(createConsumerId("ConsumerId:3")); info.setAckType((byte) 1); info.setFirstMessageId(createMessageId("FirstMessageId:4")); info.setLastMessageId(createMessageId("LastMessageId:5")); info.setMessageCount(1); info.setPoisonCause(createThrowable("PoisonCause:6")); } } \ No newline at end of file +/** + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.apache.activemq.openwire.v7; + +import java.io.DataInputStream; +import java.io.DataOutputStream; +import java.io.IOException; + +import org.apache.activemq.openwire.*; +import org.apache.activemq.command.*; + + +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; +/** + * Test case for the OpenWire marshalling for MessageAck + * + * + * NOTE!: This file is auto generated - do not modify! + * if you need to make a change, please see the modify the groovy scripts in the + * under src/gram/script and then use maven openwire:generate to regenerate + * this file. + * + * + */ +@Category(ParallelTest.class) + +public class MessageAckTest extends BaseCommandTestSupport { + + + public static MessageAckTest SINGLETON = new MessageAckTest(); + + public Object createObject() throws Exception { + MessageAck info = new MessageAck(); + populateObject(info); + return info; + } + + protected void populateObject(Object object) throws Exception { + super.populateObject(object); + MessageAck info = (MessageAck) object; + + info.setDestination(createActiveMQDestination("Destination:1")); + info.setTransactionId(createTransactionId("TransactionId:2")); + info.setConsumerId(createConsumerId("ConsumerId:3")); + info.setAckType((byte) 1); + info.setFirstMessageId(createMessageId("FirstMessageId:4")); + info.setLastMessageId(createMessageId("LastMessageId:5")); + info.setMessageCount(1); + info.setPoisonCause(createThrowable("PoisonCause:6")); + } +} diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v7/MessageDispatchNotificationTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v7/MessageDispatchNotificationTest.java index b661a2362a5..1e60600409f 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v7/MessageDispatchNotificationTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v7/MessageDispatchNotificationTest.java @@ -1 +1,63 @@ -/** * * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.activemq.openwire.v7; import java.io.DataInputStream; import java.io.DataOutputStream; import java.io.IOException; import org.apache.activemq.openwire.*; import org.apache.activemq.command.*; /** * Test case for the OpenWire marshalling for MessageDispatchNotification * * * NOTE!: This file is auto generated - do not modify! * if you need to make a change, please see the modify the groovy scripts in the * under src/gram/script and then use maven openwire:generate to regenerate * this file. * * */ public class MessageDispatchNotificationTest extends BaseCommandTestSupport { public static MessageDispatchNotificationTest SINGLETON = new MessageDispatchNotificationTest(); public Object createObject() throws Exception { MessageDispatchNotification info = new MessageDispatchNotification(); populateObject(info); return info; } protected void populateObject(Object object) throws Exception { super.populateObject(object); MessageDispatchNotification info = (MessageDispatchNotification) object; info.setConsumerId(createConsumerId("ConsumerId:1")); info.setDestination(createActiveMQDestination("Destination:2")); info.setDeliverySequenceId(1); info.setMessageId(createMessageId("MessageId:3")); } } \ No newline at end of file +/** + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.apache.activemq.openwire.v7; + +import java.io.DataInputStream; +import java.io.DataOutputStream; +import java.io.IOException; + +import org.apache.activemq.openwire.*; +import org.apache.activemq.command.*; + + +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; +/** + * Test case for the OpenWire marshalling for MessageDispatchNotification + * + * + * NOTE!: This file is auto generated - do not modify! + * if you need to make a change, please see the modify the groovy scripts in the + * under src/gram/script and then use maven openwire:generate to regenerate + * this file. + * + * + */ +@Category(ParallelTest.class) + +public class MessageDispatchNotificationTest extends BaseCommandTestSupport { + + + public static MessageDispatchNotificationTest SINGLETON = new MessageDispatchNotificationTest(); + + public Object createObject() throws Exception { + MessageDispatchNotification info = new MessageDispatchNotification(); + populateObject(info); + return info; + } + + protected void populateObject(Object object) throws Exception { + super.populateObject(object); + MessageDispatchNotification info = (MessageDispatchNotification) object; + + info.setConsumerId(createConsumerId("ConsumerId:1")); + info.setDestination(createActiveMQDestination("Destination:2")); + info.setDeliverySequenceId(1); + info.setMessageId(createMessageId("MessageId:3")); + } +} diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v7/MessageDispatchTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v7/MessageDispatchTest.java index 05a038494f2..1fc9c67b890 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v7/MessageDispatchTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v7/MessageDispatchTest.java @@ -1 +1,63 @@ -/** * * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.activemq.openwire.v7; import java.io.DataInputStream; import java.io.DataOutputStream; import java.io.IOException; import org.apache.activemq.openwire.*; import org.apache.activemq.command.*; /** * Test case for the OpenWire marshalling for MessageDispatch * * * NOTE!: This file is auto generated - do not modify! * if you need to make a change, please see the modify the groovy scripts in the * under src/gram/script and then use maven openwire:generate to regenerate * this file. * * */ public class MessageDispatchTest extends BaseCommandTestSupport { public static MessageDispatchTest SINGLETON = new MessageDispatchTest(); public Object createObject() throws Exception { MessageDispatch info = new MessageDispatch(); populateObject(info); return info; } protected void populateObject(Object object) throws Exception { super.populateObject(object); MessageDispatch info = (MessageDispatch) object; info.setConsumerId(createConsumerId("ConsumerId:1")); info.setDestination(createActiveMQDestination("Destination:2")); info.setMessage(createMessage("Message:3")); info.setRedeliveryCounter(1); } } \ No newline at end of file +/** + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.apache.activemq.openwire.v7; + +import java.io.DataInputStream; +import java.io.DataOutputStream; +import java.io.IOException; + +import org.apache.activemq.openwire.*; +import org.apache.activemq.command.*; + + +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; +/** + * Test case for the OpenWire marshalling for MessageDispatch + * + * + * NOTE!: This file is auto generated - do not modify! + * if you need to make a change, please see the modify the groovy scripts in the + * under src/gram/script and then use maven openwire:generate to regenerate + * this file. + * + * + */ +@Category(ParallelTest.class) + +public class MessageDispatchTest extends BaseCommandTestSupport { + + + public static MessageDispatchTest SINGLETON = new MessageDispatchTest(); + + public Object createObject() throws Exception { + MessageDispatch info = new MessageDispatch(); + populateObject(info); + return info; + } + + protected void populateObject(Object object) throws Exception { + super.populateObject(object); + MessageDispatch info = (MessageDispatch) object; + + info.setConsumerId(createConsumerId("ConsumerId:1")); + info.setDestination(createActiveMQDestination("Destination:2")); + info.setMessage(createMessage("Message:3")); + info.setRedeliveryCounter(1); + } +} diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v7/MessageIdTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v7/MessageIdTest.java index 484b0377e16..79276e6dfad 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v7/MessageIdTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v7/MessageIdTest.java @@ -1 +1,62 @@ -/** * * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.activemq.openwire.v7; import java.io.DataInputStream; import java.io.DataOutputStream; import java.io.IOException; import org.apache.activemq.openwire.*; import org.apache.activemq.command.*; /** * Test case for the OpenWire marshalling for MessageId * * * NOTE!: This file is auto generated - do not modify! * if you need to make a change, please see the modify the groovy scripts in the * under src/gram/script and then use maven openwire:generate to regenerate * this file. * * */ public class MessageIdTest extends DataFileGeneratorTestSupport { public static MessageIdTest SINGLETON = new MessageIdTest(); public Object createObject() throws Exception { MessageId info = new MessageId(); populateObject(info); return info; } protected void populateObject(Object object) throws Exception { super.populateObject(object); MessageId info = (MessageId) object; info.setProducerId(createProducerId("ProducerId:1")); info.setProducerSequenceId(1); info.setBrokerSequenceId(2); } } \ No newline at end of file +/** + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.apache.activemq.openwire.v7; + +import java.io.DataInputStream; +import java.io.DataOutputStream; +import java.io.IOException; + +import org.apache.activemq.openwire.*; +import org.apache.activemq.command.*; + + +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; +/** + * Test case for the OpenWire marshalling for MessageId + * + * + * NOTE!: This file is auto generated - do not modify! + * if you need to make a change, please see the modify the groovy scripts in the + * under src/gram/script and then use maven openwire:generate to regenerate + * this file. + * + * + */ +@Category(ParallelTest.class) + +public class MessageIdTest extends DataFileGeneratorTestSupport { + + + public static MessageIdTest SINGLETON = new MessageIdTest(); + + public Object createObject() throws Exception { + MessageId info = new MessageId(); + populateObject(info); + return info; + } + + protected void populateObject(Object object) throws Exception { + super.populateObject(object); + MessageId info = (MessageId) object; + + info.setProducerId(createProducerId("ProducerId:1")); + info.setProducerSequenceId(1); + info.setBrokerSequenceId(2); + } +} diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v7/MessagePullTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v7/MessagePullTest.java index 279c0898367..f8063cd3e8c 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v7/MessagePullTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v7/MessagePullTest.java @@ -1 +1,64 @@ -/** * * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.activemq.openwire.v7; import java.io.DataInputStream; import java.io.DataOutputStream; import java.io.IOException; import org.apache.activemq.openwire.*; import org.apache.activemq.command.*; /** * Test case for the OpenWire marshalling for MessagePull * * * NOTE!: This file is auto generated - do not modify! * if you need to make a change, please see the modify the groovy scripts in the * under src/gram/script and then use maven openwire:generate to regenerate * this file. * * */ public class MessagePullTest extends BaseCommandTestSupport { public static MessagePullTest SINGLETON = new MessagePullTest(); public Object createObject() throws Exception { MessagePull info = new MessagePull(); populateObject(info); return info; } protected void populateObject(Object object) throws Exception { super.populateObject(object); MessagePull info = (MessagePull) object; info.setConsumerId(createConsumerId("ConsumerId:1")); info.setDestination(createActiveMQDestination("Destination:2")); info.setTimeout(1); info.setCorrelationId("CorrelationId:3"); info.setMessageId(createMessageId("MessageId:4")); } } \ No newline at end of file +/** + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.apache.activemq.openwire.v7; + +import java.io.DataInputStream; +import java.io.DataOutputStream; +import java.io.IOException; + +import org.apache.activemq.openwire.*; +import org.apache.activemq.command.*; + + +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; +/** + * Test case for the OpenWire marshalling for MessagePull + * + * + * NOTE!: This file is auto generated - do not modify! + * if you need to make a change, please see the modify the groovy scripts in the + * under src/gram/script and then use maven openwire:generate to regenerate + * this file. + * + * + */ +@Category(ParallelTest.class) + +public class MessagePullTest extends BaseCommandTestSupport { + + + public static MessagePullTest SINGLETON = new MessagePullTest(); + + public Object createObject() throws Exception { + MessagePull info = new MessagePull(); + populateObject(info); + return info; + } + + protected void populateObject(Object object) throws Exception { + super.populateObject(object); + MessagePull info = (MessagePull) object; + + info.setConsumerId(createConsumerId("ConsumerId:1")); + info.setDestination(createActiveMQDestination("Destination:2")); + info.setTimeout(1); + info.setCorrelationId("CorrelationId:3"); + info.setMessageId(createMessageId("MessageId:4")); + } +} diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v7/MessageTestSupport.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v7/MessageTestSupport.java index a5d4f3b52c4..dafbe90a047 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v7/MessageTestSupport.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v7/MessageTestSupport.java @@ -1 +1,89 @@ -/** * * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.activemq.openwire.v7; import org.apache.activemq.command.*; /** * Test case for the OpenWire marshalling for Message * * * NOTE!: This file is auto generated - do not modify! * if you need to make a change, please see the modify the groovy scripts in the * under src/gram/script and then use maven openwire:generate to regenerate * this file. * * */ public abstract class MessageTestSupport extends BaseCommandTestSupport { protected void populateObject(Object object) throws Exception { super.populateObject(object); Message info = (Message) object; info.setProducerId(createProducerId("ProducerId:1")); info.setDestination(createActiveMQDestination("Destination:2")); info.setTransactionId(createTransactionId("TransactionId:3")); info.setOriginalDestination(createActiveMQDestination("OriginalDestination:4")); info.setMessageId(createMessageId("MessageId:5")); info.setOriginalTransactionId(createTransactionId("OriginalTransactionId:6")); info.setGroupID("GroupID:7"); info.setGroupSequence(1); info.setCorrelationId("CorrelationId:8"); info.setPersistent(true); info.setExpiration(1); info.setPriority((byte) 1); info.setReplyTo(createActiveMQDestination("ReplyTo:9")); info.setTimestamp(2); info.setType("Type:10"); { byte data[] = "Content:11".getBytes(); info.setContent(new org.apache.activemq.util.ByteSequence(data,0,data.length)); } { byte data[] = "MarshalledProperties:12".getBytes(); info.setMarshalledProperties(new org.apache.activemq.util.ByteSequence(data,0,data.length)); } info.setDataStructure(createDataStructure("DataStructure:13")); info.setTargetConsumerId(createConsumerId("TargetConsumerId:14")); info.setCompressed(false); info.setRedeliveryCounter(2); { BrokerId value[] = new BrokerId[2]; for( int i=0; i < 2; i++ ) { value[i] = createBrokerId("BrokerPath:15"); } info.setBrokerPath(value); } info.setArrival(3); info.setUserID("UserID:16"); info.setRecievedByDFBridge(true); info.setDroppable(false); { BrokerId value[] = new BrokerId[2]; for( int i=0; i < 2; i++ ) { value[i] = createBrokerId("Cluster:17"); } info.setCluster(value); } info.setBrokerInTime(4); info.setBrokerOutTime(5); } } \ No newline at end of file +/** + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.apache.activemq.openwire.v7; + +import org.apache.activemq.command.*; +/** + * Test case for the OpenWire marshalling for Message + * + * + * NOTE!: This file is auto generated - do not modify! + * if you need to make a change, please see the modify the groovy scripts in the + * under src/gram/script and then use maven openwire:generate to regenerate + * this file. + * + * + */ + + +public abstract class MessageTestSupport extends BaseCommandTestSupport { + + + protected void populateObject(Object object) throws Exception { + super.populateObject(object); + Message info = (Message) object; + + info.setProducerId(createProducerId("ProducerId:1")); + info.setDestination(createActiveMQDestination("Destination:2")); + info.setTransactionId(createTransactionId("TransactionId:3")); + info.setOriginalDestination(createActiveMQDestination("OriginalDestination:4")); + info.setMessageId(createMessageId("MessageId:5")); + info.setOriginalTransactionId(createTransactionId("OriginalTransactionId:6")); + info.setGroupID("GroupID:7"); + info.setGroupSequence(1); + info.setCorrelationId("CorrelationId:8"); + info.setPersistent(true); + info.setExpiration(1); + info.setPriority((byte) 1); + info.setReplyTo(createActiveMQDestination("ReplyTo:9")); + info.setTimestamp(2); + info.setType("Type:10"); + { + byte data[] = "Content:11".getBytes(); + info.setContent(new org.apache.activemq.util.ByteSequence(data,0,data.length)); +} + { + byte data[] = "MarshalledProperties:12".getBytes(); + info.setMarshalledProperties(new org.apache.activemq.util.ByteSequence(data,0,data.length)); +} + info.setDataStructure(createDataStructure("DataStructure:13")); + info.setTargetConsumerId(createConsumerId("TargetConsumerId:14")); + info.setCompressed(false); + info.setRedeliveryCounter(2); + { + BrokerId value[] = new BrokerId[2]; + for( int i=0; i < 2; i++ ) { + value[i] = createBrokerId("BrokerPath:15"); + } + info.setBrokerPath(value); + } + info.setArrival(3); + info.setUserID("UserID:16"); + info.setRecievedByDFBridge(true); + info.setDroppable(false); + { + BrokerId value[] = new BrokerId[2]; + for( int i=0; i < 2; i++ ) { + value[i] = createBrokerId("Cluster:17"); + } + info.setCluster(value); + } + info.setBrokerInTime(4); + info.setBrokerOutTime(5); + } +} diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v7/NetworkBridgeFilterTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v7/NetworkBridgeFilterTest.java index 3cb5e249c8e..7b18ce40c36 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v7/NetworkBridgeFilterTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v7/NetworkBridgeFilterTest.java @@ -1 +1,61 @@ -/** * * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.activemq.openwire.v7; import java.io.DataInputStream; import java.io.DataOutputStream; import java.io.IOException; import org.apache.activemq.openwire.*; import org.apache.activemq.command.*; /** * Test case for the OpenWire marshalling for NetworkBridgeFilter * * * NOTE!: This file is auto generated - do not modify! * if you need to make a change, please see the modify the groovy scripts in the * under src/gram/script and then use maven openwire:generate to regenerate * this file. * * */ public class NetworkBridgeFilterTest extends DataFileGeneratorTestSupport { public static NetworkBridgeFilterTest SINGLETON = new NetworkBridgeFilterTest(); public Object createObject() throws Exception { NetworkBridgeFilter info = new NetworkBridgeFilter(); populateObject(info); return info; } protected void populateObject(Object object) throws Exception { super.populateObject(object); NetworkBridgeFilter info = (NetworkBridgeFilter) object; info.setNetworkTTL(1); info.setNetworkBrokerId(createBrokerId("NetworkBrokerId:1")); } } \ No newline at end of file +/** + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.apache.activemq.openwire.v7; + +import java.io.DataInputStream; +import java.io.DataOutputStream; +import java.io.IOException; + +import org.apache.activemq.openwire.*; +import org.apache.activemq.command.*; + + +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; +/** + * Test case for the OpenWire marshalling for NetworkBridgeFilter + * + * + * NOTE!: This file is auto generated - do not modify! + * if you need to make a change, please see the modify the groovy scripts in the + * under src/gram/script and then use maven openwire:generate to regenerate + * this file. + * + * + */ +@Category(ParallelTest.class) + +public class NetworkBridgeFilterTest extends DataFileGeneratorTestSupport { + + + public static NetworkBridgeFilterTest SINGLETON = new NetworkBridgeFilterTest(); + + public Object createObject() throws Exception { + NetworkBridgeFilter info = new NetworkBridgeFilter(); + populateObject(info); + return info; + } + + protected void populateObject(Object object) throws Exception { + super.populateObject(object); + NetworkBridgeFilter info = (NetworkBridgeFilter) object; + + info.setNetworkTTL(1); + info.setNetworkBrokerId(createBrokerId("NetworkBrokerId:1")); + } +} diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v7/PartialCommandTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v7/PartialCommandTest.java index dceac8370dc..47f72d0b8e0 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v7/PartialCommandTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v7/PartialCommandTest.java @@ -1 +1,61 @@ -/** * * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.activemq.openwire.v7; import java.io.DataInputStream; import java.io.DataOutputStream; import java.io.IOException; import org.apache.activemq.openwire.*; import org.apache.activemq.command.*; /** * Test case for the OpenWire marshalling for PartialCommand * * * NOTE!: This file is auto generated - do not modify! * if you need to make a change, please see the modify the groovy scripts in the * under src/gram/script and then use maven openwire:generate to regenerate * this file. * * */ public class PartialCommandTest extends DataFileGeneratorTestSupport { public static PartialCommandTest SINGLETON = new PartialCommandTest(); public Object createObject() throws Exception { PartialCommand info = new PartialCommand(); populateObject(info); return info; } protected void populateObject(Object object) throws Exception { super.populateObject(object); PartialCommand info = (PartialCommand) object; info.setCommandId(1); info.setData("Data:1".getBytes()); } } \ No newline at end of file +/** + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.apache.activemq.openwire.v7; + +import java.io.DataInputStream; +import java.io.DataOutputStream; +import java.io.IOException; + +import org.apache.activemq.openwire.*; +import org.apache.activemq.command.*; + + +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; +/** + * Test case for the OpenWire marshalling for PartialCommand + * + * + * NOTE!: This file is auto generated - do not modify! + * if you need to make a change, please see the modify the groovy scripts in the + * under src/gram/script and then use maven openwire:generate to regenerate + * this file. + * + * + */ +@Category(ParallelTest.class) + +public class PartialCommandTest extends DataFileGeneratorTestSupport { + + + public static PartialCommandTest SINGLETON = new PartialCommandTest(); + + public Object createObject() throws Exception { + PartialCommand info = new PartialCommand(); + populateObject(info); + return info; + } + + protected void populateObject(Object object) throws Exception { + super.populateObject(object); + PartialCommand info = (PartialCommand) object; + + info.setCommandId(1); + info.setData("Data:1".getBytes()); + } +} diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v7/ProducerAckTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v7/ProducerAckTest.java index 73104563e70..672c307f226 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v7/ProducerAckTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v7/ProducerAckTest.java @@ -1 +1,61 @@ -/** * * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.activemq.openwire.v7; import java.io.DataInputStream; import java.io.DataOutputStream; import java.io.IOException; import org.apache.activemq.openwire.*; import org.apache.activemq.command.*; /** * Test case for the OpenWire marshalling for ProducerAck * * * NOTE!: This file is auto generated - do not modify! * if you need to make a change, please see the modify the groovy scripts in the * under src/gram/script and then use maven openwire:generate to regenerate * this file. * * */ public class ProducerAckTest extends BaseCommandTestSupport { public static ProducerAckTest SINGLETON = new ProducerAckTest(); public Object createObject() throws Exception { ProducerAck info = new ProducerAck(); populateObject(info); return info; } protected void populateObject(Object object) throws Exception { super.populateObject(object); ProducerAck info = (ProducerAck) object; info.setProducerId(createProducerId("ProducerId:1")); info.setSize(1); } } \ No newline at end of file +/** + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.apache.activemq.openwire.v7; + +import java.io.DataInputStream; +import java.io.DataOutputStream; +import java.io.IOException; + +import org.apache.activemq.openwire.*; +import org.apache.activemq.command.*; + + +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; +/** + * Test case for the OpenWire marshalling for ProducerAck + * + * + * NOTE!: This file is auto generated - do not modify! + * if you need to make a change, please see the modify the groovy scripts in the + * under src/gram/script and then use maven openwire:generate to regenerate + * this file. + * + * + */ +@Category(ParallelTest.class) + +public class ProducerAckTest extends BaseCommandTestSupport { + + + public static ProducerAckTest SINGLETON = new ProducerAckTest(); + + public Object createObject() throws Exception { + ProducerAck info = new ProducerAck(); + populateObject(info); + return info; + } + + protected void populateObject(Object object) throws Exception { + super.populateObject(object); + ProducerAck info = (ProducerAck) object; + + info.setProducerId(createProducerId("ProducerId:1")); + info.setSize(1); + } +} diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v7/ProducerIdTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v7/ProducerIdTest.java index 2a8c13ba18b..85facd39df2 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v7/ProducerIdTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v7/ProducerIdTest.java @@ -1 +1,62 @@ -/** * * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.activemq.openwire.v7; import java.io.DataInputStream; import java.io.DataOutputStream; import java.io.IOException; import org.apache.activemq.openwire.*; import org.apache.activemq.command.*; /** * Test case for the OpenWire marshalling for ProducerId * * * NOTE!: This file is auto generated - do not modify! * if you need to make a change, please see the modify the groovy scripts in the * under src/gram/script and then use maven openwire:generate to regenerate * this file. * * */ public class ProducerIdTest extends DataFileGeneratorTestSupport { public static ProducerIdTest SINGLETON = new ProducerIdTest(); public Object createObject() throws Exception { ProducerId info = new ProducerId(); populateObject(info); return info; } protected void populateObject(Object object) throws Exception { super.populateObject(object); ProducerId info = (ProducerId) object; info.setConnectionId("ConnectionId:1"); info.setValue(1); info.setSessionId(2); } } \ No newline at end of file +/** + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.apache.activemq.openwire.v7; + +import java.io.DataInputStream; +import java.io.DataOutputStream; +import java.io.IOException; + +import org.apache.activemq.openwire.*; +import org.apache.activemq.command.*; + + +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; +/** + * Test case for the OpenWire marshalling for ProducerId + * + * + * NOTE!: This file is auto generated - do not modify! + * if you need to make a change, please see the modify the groovy scripts in the + * under src/gram/script and then use maven openwire:generate to regenerate + * this file. + * + * + */ +@Category(ParallelTest.class) + +public class ProducerIdTest extends DataFileGeneratorTestSupport { + + + public static ProducerIdTest SINGLETON = new ProducerIdTest(); + + public Object createObject() throws Exception { + ProducerId info = new ProducerId(); + populateObject(info); + return info; + } + + protected void populateObject(Object object) throws Exception { + super.populateObject(object); + ProducerId info = (ProducerId) object; + + info.setConnectionId("ConnectionId:1"); + info.setValue(1); + info.setSessionId(2); + } +} diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v7/ProducerInfoTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v7/ProducerInfoTest.java index 474a55eaa24..c35a17c2dc8 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v7/ProducerInfoTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v7/ProducerInfoTest.java @@ -1 +1,70 @@ -/** * * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.activemq.openwire.v7; import java.io.DataInputStream; import java.io.DataOutputStream; import java.io.IOException; import org.apache.activemq.openwire.*; import org.apache.activemq.command.*; /** * Test case for the OpenWire marshalling for ProducerInfo * * * NOTE!: This file is auto generated - do not modify! * if you need to make a change, please see the modify the groovy scripts in the * under src/gram/script and then use maven openwire:generate to regenerate * this file. * * */ public class ProducerInfoTest extends BaseCommandTestSupport { public static ProducerInfoTest SINGLETON = new ProducerInfoTest(); public Object createObject() throws Exception { ProducerInfo info = new ProducerInfo(); populateObject(info); return info; } protected void populateObject(Object object) throws Exception { super.populateObject(object); ProducerInfo info = (ProducerInfo) object; info.setProducerId(createProducerId("ProducerId:1")); info.setDestination(createActiveMQDestination("Destination:2")); { BrokerId value[] = new BrokerId[2]; for( int i=0; i < 2; i++ ) { value[i] = createBrokerId("BrokerPath:3"); } info.setBrokerPath(value); } info.setDispatchAsync(true); info.setWindowSize(1); } } \ No newline at end of file +/** + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.apache.activemq.openwire.v7; + +import java.io.DataInputStream; +import java.io.DataOutputStream; +import java.io.IOException; + +import org.apache.activemq.openwire.*; +import org.apache.activemq.command.*; + + +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; +/** + * Test case for the OpenWire marshalling for ProducerInfo + * + * + * NOTE!: This file is auto generated - do not modify! + * if you need to make a change, please see the modify the groovy scripts in the + * under src/gram/script and then use maven openwire:generate to regenerate + * this file. + * + * + */ +@Category(ParallelTest.class) + +public class ProducerInfoTest extends BaseCommandTestSupport { + + + public static ProducerInfoTest SINGLETON = new ProducerInfoTest(); + + public Object createObject() throws Exception { + ProducerInfo info = new ProducerInfo(); + populateObject(info); + return info; + } + + protected void populateObject(Object object) throws Exception { + super.populateObject(object); + ProducerInfo info = (ProducerInfo) object; + + info.setProducerId(createProducerId("ProducerId:1")); + info.setDestination(createActiveMQDestination("Destination:2")); + { + BrokerId value[] = new BrokerId[2]; + for( int i=0; i < 2; i++ ) { + value[i] = createBrokerId("BrokerPath:3"); + } + info.setBrokerPath(value); + } + info.setDispatchAsync(true); + info.setWindowSize(1); + } +} diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v7/RemoveInfoTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v7/RemoveInfoTest.java index 01b2639acf0..b0792d4d116 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v7/RemoveInfoTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v7/RemoveInfoTest.java @@ -1 +1,61 @@ -/** * * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.activemq.openwire.v7; import java.io.DataInputStream; import java.io.DataOutputStream; import java.io.IOException; import org.apache.activemq.openwire.*; import org.apache.activemq.command.*; /** * Test case for the OpenWire marshalling for RemoveInfo * * * NOTE!: This file is auto generated - do not modify! * if you need to make a change, please see the modify the groovy scripts in the * under src/gram/script and then use maven openwire:generate to regenerate * this file. * * */ public class RemoveInfoTest extends BaseCommandTestSupport { public static RemoveInfoTest SINGLETON = new RemoveInfoTest(); public Object createObject() throws Exception { RemoveInfo info = new RemoveInfo(); populateObject(info); return info; } protected void populateObject(Object object) throws Exception { super.populateObject(object); RemoveInfo info = (RemoveInfo) object; info.setObjectId(createDataStructure("ObjectId:1")); info.setLastDeliveredSequenceId(1); } } \ No newline at end of file +/** + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.apache.activemq.openwire.v7; + +import java.io.DataInputStream; +import java.io.DataOutputStream; +import java.io.IOException; + +import org.apache.activemq.openwire.*; +import org.apache.activemq.command.*; + + +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; +/** + * Test case for the OpenWire marshalling for RemoveInfo + * + * + * NOTE!: This file is auto generated - do not modify! + * if you need to make a change, please see the modify the groovy scripts in the + * under src/gram/script and then use maven openwire:generate to regenerate + * this file. + * + * + */ +@Category(ParallelTest.class) + +public class RemoveInfoTest extends BaseCommandTestSupport { + + + public static RemoveInfoTest SINGLETON = new RemoveInfoTest(); + + public Object createObject() throws Exception { + RemoveInfo info = new RemoveInfo(); + populateObject(info); + return info; + } + + protected void populateObject(Object object) throws Exception { + super.populateObject(object); + RemoveInfo info = (RemoveInfo) object; + + info.setObjectId(createDataStructure("ObjectId:1")); + info.setLastDeliveredSequenceId(1); + } +} diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v7/RemoveSubscriptionInfoTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v7/RemoveSubscriptionInfoTest.java index 4159ee6e150..a9444c1cf6f 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v7/RemoveSubscriptionInfoTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v7/RemoveSubscriptionInfoTest.java @@ -1 +1,62 @@ -/** * * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.activemq.openwire.v7; import java.io.DataInputStream; import java.io.DataOutputStream; import java.io.IOException; import org.apache.activemq.openwire.*; import org.apache.activemq.command.*; /** * Test case for the OpenWire marshalling for RemoveSubscriptionInfo * * * NOTE!: This file is auto generated - do not modify! * if you need to make a change, please see the modify the groovy scripts in the * under src/gram/script and then use maven openwire:generate to regenerate * this file. * * */ public class RemoveSubscriptionInfoTest extends BaseCommandTestSupport { public static RemoveSubscriptionInfoTest SINGLETON = new RemoveSubscriptionInfoTest(); public Object createObject() throws Exception { RemoveSubscriptionInfo info = new RemoveSubscriptionInfo(); populateObject(info); return info; } protected void populateObject(Object object) throws Exception { super.populateObject(object); RemoveSubscriptionInfo info = (RemoveSubscriptionInfo) object; info.setConnectionId(createConnectionId("ConnectionId:1")); info.setSubcriptionName("SubcriptionName:2"); info.setClientId("ClientId:3"); } } \ No newline at end of file +/** + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.apache.activemq.openwire.v7; + +import java.io.DataInputStream; +import java.io.DataOutputStream; +import java.io.IOException; + +import org.apache.activemq.openwire.*; +import org.apache.activemq.command.*; + + +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; +/** + * Test case for the OpenWire marshalling for RemoveSubscriptionInfo + * + * + * NOTE!: This file is auto generated - do not modify! + * if you need to make a change, please see the modify the groovy scripts in the + * under src/gram/script and then use maven openwire:generate to regenerate + * this file. + * + * + */ +@Category(ParallelTest.class) + +public class RemoveSubscriptionInfoTest extends BaseCommandTestSupport { + + + public static RemoveSubscriptionInfoTest SINGLETON = new RemoveSubscriptionInfoTest(); + + public Object createObject() throws Exception { + RemoveSubscriptionInfo info = new RemoveSubscriptionInfo(); + populateObject(info); + return info; + } + + protected void populateObject(Object object) throws Exception { + super.populateObject(object); + RemoveSubscriptionInfo info = (RemoveSubscriptionInfo) object; + + info.setConnectionId(createConnectionId("ConnectionId:1")); + info.setSubcriptionName("SubcriptionName:2"); + info.setClientId("ClientId:3"); + } +} diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v7/ReplayCommandTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v7/ReplayCommandTest.java index 8a1e8e2af6c..1bfab430361 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v7/ReplayCommandTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v7/ReplayCommandTest.java @@ -1 +1,61 @@ -/** * * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.activemq.openwire.v7; import java.io.DataInputStream; import java.io.DataOutputStream; import java.io.IOException; import org.apache.activemq.openwire.*; import org.apache.activemq.command.*; /** * Test case for the OpenWire marshalling for ReplayCommand * * * NOTE!: This file is auto generated - do not modify! * if you need to make a change, please see the modify the groovy scripts in the * under src/gram/script and then use maven openwire:generate to regenerate * this file. * * */ public class ReplayCommandTest extends BaseCommandTestSupport { public static ReplayCommandTest SINGLETON = new ReplayCommandTest(); public Object createObject() throws Exception { ReplayCommand info = new ReplayCommand(); populateObject(info); return info; } protected void populateObject(Object object) throws Exception { super.populateObject(object); ReplayCommand info = (ReplayCommand) object; info.setFirstNakNumber(1); info.setLastNakNumber(2); } } \ No newline at end of file +/** + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.apache.activemq.openwire.v7; + +import java.io.DataInputStream; +import java.io.DataOutputStream; +import java.io.IOException; + +import org.apache.activemq.openwire.*; +import org.apache.activemq.command.*; + + +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; +/** + * Test case for the OpenWire marshalling for ReplayCommand + * + * + * NOTE!: This file is auto generated - do not modify! + * if you need to make a change, please see the modify the groovy scripts in the + * under src/gram/script and then use maven openwire:generate to regenerate + * this file. + * + * + */ +@Category(ParallelTest.class) + +public class ReplayCommandTest extends BaseCommandTestSupport { + + + public static ReplayCommandTest SINGLETON = new ReplayCommandTest(); + + public Object createObject() throws Exception { + ReplayCommand info = new ReplayCommand(); + populateObject(info); + return info; + } + + protected void populateObject(Object object) throws Exception { + super.populateObject(object); + ReplayCommand info = (ReplayCommand) object; + + info.setFirstNakNumber(1); + info.setLastNakNumber(2); + } +} diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v7/ResponseTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v7/ResponseTest.java index 1d64767b995..c80aee77e8c 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v7/ResponseTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v7/ResponseTest.java @@ -1 +1,60 @@ -/** * * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.activemq.openwire.v7; import java.io.DataInputStream; import java.io.DataOutputStream; import java.io.IOException; import org.apache.activemq.openwire.*; import org.apache.activemq.command.*; /** * Test case for the OpenWire marshalling for Response * * * NOTE!: This file is auto generated - do not modify! * if you need to make a change, please see the modify the groovy scripts in the * under src/gram/script and then use maven openwire:generate to regenerate * this file. * * */ public class ResponseTest extends BaseCommandTestSupport { public static ResponseTest SINGLETON = new ResponseTest(); public Object createObject() throws Exception { Response info = new Response(); populateObject(info); return info; } protected void populateObject(Object object) throws Exception { super.populateObject(object); Response info = (Response) object; info.setCorrelationId(1); } } \ No newline at end of file +/** + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.apache.activemq.openwire.v7; + +import java.io.DataInputStream; +import java.io.DataOutputStream; +import java.io.IOException; + +import org.apache.activemq.openwire.*; +import org.apache.activemq.command.*; + + +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; +/** + * Test case for the OpenWire marshalling for Response + * + * + * NOTE!: This file is auto generated - do not modify! + * if you need to make a change, please see the modify the groovy scripts in the + * under src/gram/script and then use maven openwire:generate to regenerate + * this file. + * + * + */ +@Category(ParallelTest.class) + +public class ResponseTest extends BaseCommandTestSupport { + + + public static ResponseTest SINGLETON = new ResponseTest(); + + public Object createObject() throws Exception { + Response info = new Response(); + populateObject(info); + return info; + } + + protected void populateObject(Object object) throws Exception { + super.populateObject(object); + Response info = (Response) object; + + info.setCorrelationId(1); + } +} diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v7/SessionIdTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v7/SessionIdTest.java index d12c96478da..3c3676d34b2 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v7/SessionIdTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v7/SessionIdTest.java @@ -1 +1,61 @@ -/** * * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.activemq.openwire.v7; import java.io.DataInputStream; import java.io.DataOutputStream; import java.io.IOException; import org.apache.activemq.openwire.*; import org.apache.activemq.command.*; /** * Test case for the OpenWire marshalling for SessionId * * * NOTE!: This file is auto generated - do not modify! * if you need to make a change, please see the modify the groovy scripts in the * under src/gram/script and then use maven openwire:generate to regenerate * this file. * * */ public class SessionIdTest extends DataFileGeneratorTestSupport { public static SessionIdTest SINGLETON = new SessionIdTest(); public Object createObject() throws Exception { SessionId info = new SessionId(); populateObject(info); return info; } protected void populateObject(Object object) throws Exception { super.populateObject(object); SessionId info = (SessionId) object; info.setConnectionId("ConnectionId:1"); info.setValue(1); } } \ No newline at end of file +/** + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.apache.activemq.openwire.v7; + +import java.io.DataInputStream; +import java.io.DataOutputStream; +import java.io.IOException; + +import org.apache.activemq.openwire.*; +import org.apache.activemq.command.*; + + +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; +/** + * Test case for the OpenWire marshalling for SessionId + * + * + * NOTE!: This file is auto generated - do not modify! + * if you need to make a change, please see the modify the groovy scripts in the + * under src/gram/script and then use maven openwire:generate to regenerate + * this file. + * + * + */ +@Category(ParallelTest.class) + +public class SessionIdTest extends DataFileGeneratorTestSupport { + + + public static SessionIdTest SINGLETON = new SessionIdTest(); + + public Object createObject() throws Exception { + SessionId info = new SessionId(); + populateObject(info); + return info; + } + + protected void populateObject(Object object) throws Exception { + super.populateObject(object); + SessionId info = (SessionId) object; + + info.setConnectionId("ConnectionId:1"); + info.setValue(1); + } +} diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v7/SessionInfoTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v7/SessionInfoTest.java index cee5c070bdf..f264ca92383 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v7/SessionInfoTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v7/SessionInfoTest.java @@ -1 +1,60 @@ -/** * * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.activemq.openwire.v7; import java.io.DataInputStream; import java.io.DataOutputStream; import java.io.IOException; import org.apache.activemq.openwire.*; import org.apache.activemq.command.*; /** * Test case for the OpenWire marshalling for SessionInfo * * * NOTE!: This file is auto generated - do not modify! * if you need to make a change, please see the modify the groovy scripts in the * under src/gram/script and then use maven openwire:generate to regenerate * this file. * * */ public class SessionInfoTest extends BaseCommandTestSupport { public static SessionInfoTest SINGLETON = new SessionInfoTest(); public Object createObject() throws Exception { SessionInfo info = new SessionInfo(); populateObject(info); return info; } protected void populateObject(Object object) throws Exception { super.populateObject(object); SessionInfo info = (SessionInfo) object; info.setSessionId(createSessionId("SessionId:1")); } } \ No newline at end of file +/** + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.apache.activemq.openwire.v7; + +import java.io.DataInputStream; +import java.io.DataOutputStream; +import java.io.IOException; + +import org.apache.activemq.openwire.*; +import org.apache.activemq.command.*; + + +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; +/** + * Test case for the OpenWire marshalling for SessionInfo + * + * + * NOTE!: This file is auto generated - do not modify! + * if you need to make a change, please see the modify the groovy scripts in the + * under src/gram/script and then use maven openwire:generate to regenerate + * this file. + * + * + */ +@Category(ParallelTest.class) + +public class SessionInfoTest extends BaseCommandTestSupport { + + + public static SessionInfoTest SINGLETON = new SessionInfoTest(); + + public Object createObject() throws Exception { + SessionInfo info = new SessionInfo(); + populateObject(info); + return info; + } + + protected void populateObject(Object object) throws Exception { + super.populateObject(object); + SessionInfo info = (SessionInfo) object; + + info.setSessionId(createSessionId("SessionId:1")); + } +} diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v7/ShutdownInfoTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v7/ShutdownInfoTest.java index 66dda57be4b..3dfa7a044f2 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v7/ShutdownInfoTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v7/ShutdownInfoTest.java @@ -1 +1,59 @@ -/** * * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.activemq.openwire.v7; import java.io.DataInputStream; import java.io.DataOutputStream; import java.io.IOException; import org.apache.activemq.openwire.*; import org.apache.activemq.command.*; /** * Test case for the OpenWire marshalling for ShutdownInfo * * * NOTE!: This file is auto generated - do not modify! * if you need to make a change, please see the modify the groovy scripts in the * under src/gram/script and then use maven openwire:generate to regenerate * this file. * * */ public class ShutdownInfoTest extends BaseCommandTestSupport { public static ShutdownInfoTest SINGLETON = new ShutdownInfoTest(); public Object createObject() throws Exception { ShutdownInfo info = new ShutdownInfo(); populateObject(info); return info; } protected void populateObject(Object object) throws Exception { super.populateObject(object); ShutdownInfo info = (ShutdownInfo) object; } } \ No newline at end of file +/** + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.apache.activemq.openwire.v7; + +import java.io.DataInputStream; +import java.io.DataOutputStream; +import java.io.IOException; + +import org.apache.activemq.openwire.*; +import org.apache.activemq.command.*; + + +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; +/** + * Test case for the OpenWire marshalling for ShutdownInfo + * + * + * NOTE!: This file is auto generated - do not modify! + * if you need to make a change, please see the modify the groovy scripts in the + * under src/gram/script and then use maven openwire:generate to regenerate + * this file. + * + * + */ +@Category(ParallelTest.class) + +public class ShutdownInfoTest extends BaseCommandTestSupport { + + + public static ShutdownInfoTest SINGLETON = new ShutdownInfoTest(); + + public Object createObject() throws Exception { + ShutdownInfo info = new ShutdownInfo(); + populateObject(info); + return info; + } + + protected void populateObject(Object object) throws Exception { + super.populateObject(object); + ShutdownInfo info = (ShutdownInfo) object; + + } +} diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v7/SubscriptionInfoTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v7/SubscriptionInfoTest.java index 0a9e9344e51..60691a03205 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v7/SubscriptionInfoTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v7/SubscriptionInfoTest.java @@ -1 +1,64 @@ -/** * * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.activemq.openwire.v7; import java.io.DataInputStream; import java.io.DataOutputStream; import java.io.IOException; import org.apache.activemq.openwire.*; import org.apache.activemq.command.*; /** * Test case for the OpenWire marshalling for SubscriptionInfo * * * NOTE!: This file is auto generated - do not modify! * if you need to make a change, please see the modify the groovy scripts in the * under src/gram/script and then use maven openwire:generate to regenerate * this file. * * */ public class SubscriptionInfoTest extends DataFileGeneratorTestSupport { public static SubscriptionInfoTest SINGLETON = new SubscriptionInfoTest(); public Object createObject() throws Exception { SubscriptionInfo info = new SubscriptionInfo(); populateObject(info); return info; } protected void populateObject(Object object) throws Exception { super.populateObject(object); SubscriptionInfo info = (SubscriptionInfo) object; info.setClientId("ClientId:1"); info.setDestination(createActiveMQDestination("Destination:2")); info.setSelector("Selector:3"); info.setSubcriptionName("SubcriptionName:4"); info.setSubscribedDestination(createActiveMQDestination("SubscribedDestination:5")); } } \ No newline at end of file +/** + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.apache.activemq.openwire.v7; + +import java.io.DataInputStream; +import java.io.DataOutputStream; +import java.io.IOException; + +import org.apache.activemq.openwire.*; +import org.apache.activemq.command.*; + + +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; +/** + * Test case for the OpenWire marshalling for SubscriptionInfo + * + * + * NOTE!: This file is auto generated - do not modify! + * if you need to make a change, please see the modify the groovy scripts in the + * under src/gram/script and then use maven openwire:generate to regenerate + * this file. + * + * + */ +@Category(ParallelTest.class) + +public class SubscriptionInfoTest extends DataFileGeneratorTestSupport { + + + public static SubscriptionInfoTest SINGLETON = new SubscriptionInfoTest(); + + public Object createObject() throws Exception { + SubscriptionInfo info = new SubscriptionInfo(); + populateObject(info); + return info; + } + + protected void populateObject(Object object) throws Exception { + super.populateObject(object); + SubscriptionInfo info = (SubscriptionInfo) object; + + info.setClientId("ClientId:1"); + info.setDestination(createActiveMQDestination("Destination:2")); + info.setSelector("Selector:3"); + info.setSubcriptionName("SubcriptionName:4"); + info.setSubscribedDestination(createActiveMQDestination("SubscribedDestination:5")); + } +} diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v7/TransactionIdTestSupport.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v7/TransactionIdTestSupport.java index 9706f12e275..00e33446363 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v7/TransactionIdTestSupport.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v7/TransactionIdTestSupport.java @@ -1 +1,47 @@ -/** * * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.activemq.openwire.v7; import java.io.DataInputStream; import java.io.DataOutputStream; import java.io.IOException; import org.apache.activemq.openwire.*; import org.apache.activemq.command.*; /** * Test case for the OpenWire marshalling for TransactionId * * * NOTE!: This file is auto generated - do not modify! * if you need to make a change, please see the modify the groovy scripts in the * under src/gram/script and then use maven openwire:generate to regenerate * this file. * * */ public abstract class TransactionIdTestSupport extends DataFileGeneratorTestSupport { protected void populateObject(Object object) throws Exception { super.populateObject(object); TransactionId info = (TransactionId) object; } } \ No newline at end of file +/** + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.apache.activemq.openwire.v7; + +import java.io.DataInputStream; +import java.io.DataOutputStream; +import java.io.IOException; + +import org.apache.activemq.openwire.*; +import org.apache.activemq.command.*; +/** + * Test case for the OpenWire marshalling for TransactionId + * + * + * NOTE!: This file is auto generated - do not modify! + * if you need to make a change, please see the modify the groovy scripts in the + * under src/gram/script and then use maven openwire:generate to regenerate + * this file. + * + * + */ + + +public abstract class TransactionIdTestSupport extends DataFileGeneratorTestSupport { + + + protected void populateObject(Object object) throws Exception { + super.populateObject(object); + TransactionId info = (TransactionId) object; + + } +} diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v7/TransactionInfoTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v7/TransactionInfoTest.java index 3132a2b15ee..86ba69ff7ca 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v7/TransactionInfoTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v7/TransactionInfoTest.java @@ -1 +1,62 @@ -/** * * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.activemq.openwire.v7; import java.io.DataInputStream; import java.io.DataOutputStream; import java.io.IOException; import org.apache.activemq.openwire.*; import org.apache.activemq.command.*; /** * Test case for the OpenWire marshalling for TransactionInfo * * * NOTE!: This file is auto generated - do not modify! * if you need to make a change, please see the modify the groovy scripts in the * under src/gram/script and then use maven openwire:generate to regenerate * this file. * * */ public class TransactionInfoTest extends BaseCommandTestSupport { public static TransactionInfoTest SINGLETON = new TransactionInfoTest(); public Object createObject() throws Exception { TransactionInfo info = new TransactionInfo(); populateObject(info); return info; } protected void populateObject(Object object) throws Exception { super.populateObject(object); TransactionInfo info = (TransactionInfo) object; info.setConnectionId(createConnectionId("ConnectionId:1")); info.setTransactionId(createTransactionId("TransactionId:2")); info.setType((byte) 1); } } \ No newline at end of file +/** + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.apache.activemq.openwire.v7; + +import java.io.DataInputStream; +import java.io.DataOutputStream; +import java.io.IOException; + +import org.apache.activemq.openwire.*; +import org.apache.activemq.command.*; + + +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; +/** + * Test case for the OpenWire marshalling for TransactionInfo + * + * + * NOTE!: This file is auto generated - do not modify! + * if you need to make a change, please see the modify the groovy scripts in the + * under src/gram/script and then use maven openwire:generate to regenerate + * this file. + * + * + */ +@Category(ParallelTest.class) + +public class TransactionInfoTest extends BaseCommandTestSupport { + + + public static TransactionInfoTest SINGLETON = new TransactionInfoTest(); + + public Object createObject() throws Exception { + TransactionInfo info = new TransactionInfo(); + populateObject(info); + return info; + } + + protected void populateObject(Object object) throws Exception { + super.populateObject(object); + TransactionInfo info = (TransactionInfo) object; + + info.setConnectionId(createConnectionId("ConnectionId:1")); + info.setTransactionId(createTransactionId("TransactionId:2")); + info.setType((byte) 1); + } +} diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v7/XATransactionIdTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v7/XATransactionIdTest.java index 79db31688bb..43974e777ea 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v7/XATransactionIdTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v7/XATransactionIdTest.java @@ -1 +1,62 @@ -/** * * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.activemq.openwire.v7; import java.io.DataInputStream; import java.io.DataOutputStream; import java.io.IOException; import org.apache.activemq.openwire.*; import org.apache.activemq.command.*; /** * Test case for the OpenWire marshalling for XATransactionId * * * NOTE!: This file is auto generated - do not modify! * if you need to make a change, please see the modify the groovy scripts in the * under src/gram/script and then use maven openwire:generate to regenerate * this file. * * */ public class XATransactionIdTest extends TransactionIdTestSupport { public static XATransactionIdTest SINGLETON = new XATransactionIdTest(); public Object createObject() throws Exception { XATransactionId info = new XATransactionId(); populateObject(info); return info; } protected void populateObject(Object object) throws Exception { super.populateObject(object); XATransactionId info = (XATransactionId) object; info.setFormatId(1); info.setGlobalTransactionId("GlobalTransactionId:1".getBytes()); info.setBranchQualifier("BranchQualifier:2".getBytes()); } } \ No newline at end of file +/** + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.apache.activemq.openwire.v7; + +import java.io.DataInputStream; +import java.io.DataOutputStream; +import java.io.IOException; + +import org.apache.activemq.openwire.*; +import org.apache.activemq.command.*; + + +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; +/** + * Test case for the OpenWire marshalling for XATransactionId + * + * + * NOTE!: This file is auto generated - do not modify! + * if you need to make a change, please see the modify the groovy scripts in the + * under src/gram/script and then use maven openwire:generate to regenerate + * this file. + * + * + */ +@Category(ParallelTest.class) + +public class XATransactionIdTest extends TransactionIdTestSupport { + + + public static XATransactionIdTest SINGLETON = new XATransactionIdTest(); + + public Object createObject() throws Exception { + XATransactionId info = new XATransactionId(); + populateObject(info); + return info; + } + + protected void populateObject(Object object) throws Exception { + super.populateObject(object); + XATransactionId info = (XATransactionId) object; + + info.setFormatId(1); + info.setGlobalTransactionId("GlobalTransactionId:1".getBytes()); + info.setBranchQualifier("BranchQualifier:2".getBytes()); + } +} diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v8/BaseCommandTestSupport.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v8/BaseCommandTestSupport.java index 478d93d618a..9aa40ab45d2 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v8/BaseCommandTestSupport.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v8/BaseCommandTestSupport.java @@ -18,7 +18,6 @@ import org.apache.activemq.command.BaseCommand; import org.apache.activemq.openwire.DataFileGeneratorTestSupport; - /** * Test case for the OpenWire marshalling for BaseCommand NOTE!: This file is * auto generated - do not modify! if you need to make a change, please see the @@ -26,6 +25,8 @@ * openwire:generate to regenerate this file. * */ + + public abstract class BaseCommandTestSupport extends DataFileGeneratorTestSupport { protected void populateObject(Object object) throws Exception { diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v8/BrokerIdTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v8/BrokerIdTest.java index afa21c97b93..7b04c33581d 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v8/BrokerIdTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v8/BrokerIdTest.java @@ -1 +1,60 @@ -/** * * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.activemq.openwire.v8; import java.io.DataInputStream; import java.io.DataOutputStream; import java.io.IOException; import org.apache.activemq.openwire.*; import org.apache.activemq.command.*; /** * Test case for the OpenWire marshalling for BrokerId * * * NOTE!: This file is auto generated - do not modify! * if you need to make a change, please see the modify the groovy scripts in the * under src/gram/script and then use maven openwire:generate to regenerate * this file. * * */ public class BrokerIdTest extends DataFileGeneratorTestSupport { public static BrokerIdTest SINGLETON = new BrokerIdTest(); public Object createObject() throws Exception { BrokerId info = new BrokerId(); populateObject(info); return info; } protected void populateObject(Object object) throws Exception { super.populateObject(object); BrokerId info = (BrokerId) object; info.setValue("Value:1"); } } \ No newline at end of file +/** + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.apache.activemq.openwire.v8; + +import java.io.DataInputStream; +import java.io.DataOutputStream; +import java.io.IOException; + +import org.apache.activemq.openwire.*; +import org.apache.activemq.command.*; + + +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; +/** + * Test case for the OpenWire marshalling for BrokerId + * + * + * NOTE!: This file is auto generated - do not modify! + * if you need to make a change, please see the modify the groovy scripts in the + * under src/gram/script and then use maven openwire:generate to regenerate + * this file. + * + * + */ +@Category(ParallelTest.class) + +public class BrokerIdTest extends DataFileGeneratorTestSupport { + + + public static BrokerIdTest SINGLETON = new BrokerIdTest(); + + public Object createObject() throws Exception { + BrokerId info = new BrokerId(); + populateObject(info); + return info; + } + + protected void populateObject(Object object) throws Exception { + super.populateObject(object); + BrokerId info = (BrokerId) object; + + info.setValue("Value:1"); + } +} diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v8/BrokerInfoTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v8/BrokerInfoTest.java index acdd9fafe54..37169e897f5 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v8/BrokerInfoTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v8/BrokerInfoTest.java @@ -1 +1,77 @@ -/** * * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.activemq.openwire.v8; import java.io.DataInputStream; import java.io.DataOutputStream; import java.io.IOException; import org.apache.activemq.openwire.*; import org.apache.activemq.command.*; /** * Test case for the OpenWire marshalling for BrokerInfo * * * NOTE!: This file is auto generated - do not modify! * if you need to make a change, please see the modify the groovy scripts in the * under src/gram/script and then use maven openwire:generate to regenerate * this file. * * */ public class BrokerInfoTest extends BaseCommandTestSupport { public static BrokerInfoTest SINGLETON = new BrokerInfoTest(); public Object createObject() throws Exception { BrokerInfo info = new BrokerInfo(); populateObject(info); return info; } protected void populateObject(Object object) throws Exception { super.populateObject(object); BrokerInfo info = (BrokerInfo) object; info.setBrokerId(createBrokerId("BrokerId:1")); info.setBrokerURL("BrokerURL:2"); { BrokerInfo value[] = new BrokerInfo[0]; for( int i=0; i < 0; i++ ) { value[i] = createBrokerInfo("PeerBrokerInfos:3"); } info.setPeerBrokerInfos(value); } info.setBrokerName("BrokerName:4"); info.setSlaveBroker(true); info.setMasterBroker(false); info.setFaultTolerantConfiguration(true); info.setDuplexConnection(false); info.setNetworkConnection(true); info.setConnectionId(1); info.setBrokerUploadUrl("BrokerUploadUrl:5"); info.setNetworkProperties("NetworkProperties:6"); } } \ No newline at end of file +/** + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.apache.activemq.openwire.v8; + +import java.io.DataInputStream; +import java.io.DataOutputStream; +import java.io.IOException; + +import org.apache.activemq.openwire.*; +import org.apache.activemq.command.*; + + +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; +/** + * Test case for the OpenWire marshalling for BrokerInfo + * + * + * NOTE!: This file is auto generated - do not modify! + * if you need to make a change, please see the modify the groovy scripts in the + * under src/gram/script and then use maven openwire:generate to regenerate + * this file. + * + * + */ +@Category(ParallelTest.class) + +public class BrokerInfoTest extends BaseCommandTestSupport { + + + public static BrokerInfoTest SINGLETON = new BrokerInfoTest(); + + public Object createObject() throws Exception { + BrokerInfo info = new BrokerInfo(); + populateObject(info); + return info; + } + + protected void populateObject(Object object) throws Exception { + super.populateObject(object); + BrokerInfo info = (BrokerInfo) object; + + info.setBrokerId(createBrokerId("BrokerId:1")); + info.setBrokerURL("BrokerURL:2"); + { + BrokerInfo value[] = new BrokerInfo[0]; + for( int i=0; i < 0; i++ ) { + value[i] = createBrokerInfo("PeerBrokerInfos:3"); + } + info.setPeerBrokerInfos(value); + } + info.setBrokerName("BrokerName:4"); + info.setSlaveBroker(true); + info.setMasterBroker(false); + info.setFaultTolerantConfiguration(true); + info.setDuplexConnection(false); + info.setNetworkConnection(true); + info.setConnectionId(1); + info.setBrokerUploadUrl("BrokerUploadUrl:5"); + info.setNetworkProperties("NetworkProperties:6"); + } +} diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v8/ConnectionControlTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v8/ConnectionControlTest.java index 64ef24ddc8e..1ddad1f217a 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v8/ConnectionControlTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v8/ConnectionControlTest.java @@ -1 +1,68 @@ -/** * * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.activemq.openwire.v8; import java.io.DataInputStream; import java.io.DataOutputStream; import java.io.IOException; import org.apache.activemq.openwire.*; import org.apache.activemq.command.*; /** * Test case for the OpenWire marshalling for ConnectionControl * * * NOTE!: This file is auto generated - do not modify! * if you need to make a change, please see the modify the groovy scripts in the * under src/gram/script and then use maven openwire:generate to regenerate * this file. * * */ public class ConnectionControlTest extends BaseCommandTestSupport { public static ConnectionControlTest SINGLETON = new ConnectionControlTest(); public Object createObject() throws Exception { ConnectionControl info = new ConnectionControl(); populateObject(info); return info; } protected void populateObject(Object object) throws Exception { super.populateObject(object); ConnectionControl info = (ConnectionControl) object; info.setClose(true); info.setExit(false); info.setFaultTolerant(true); info.setResume(false); info.setSuspend(true); info.setConnectedBrokers("ConnectedBrokers:1"); info.setReconnectTo("ReconnectTo:2"); info.setRebalanceConnection(false); info.setToken("Token:3".getBytes()); } } \ No newline at end of file +/** + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.apache.activemq.openwire.v8; + +import java.io.DataInputStream; +import java.io.DataOutputStream; +import java.io.IOException; + +import org.apache.activemq.openwire.*; +import org.apache.activemq.command.*; + + +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; +/** + * Test case for the OpenWire marshalling for ConnectionControl + * + * + * NOTE!: This file is auto generated - do not modify! + * if you need to make a change, please see the modify the groovy scripts in the + * under src/gram/script and then use maven openwire:generate to regenerate + * this file. + * + * + */ +@Category(ParallelTest.class) + +public class ConnectionControlTest extends BaseCommandTestSupport { + + + public static ConnectionControlTest SINGLETON = new ConnectionControlTest(); + + public Object createObject() throws Exception { + ConnectionControl info = new ConnectionControl(); + populateObject(info); + return info; + } + + protected void populateObject(Object object) throws Exception { + super.populateObject(object); + ConnectionControl info = (ConnectionControl) object; + + info.setClose(true); + info.setExit(false); + info.setFaultTolerant(true); + info.setResume(false); + info.setSuspend(true); + info.setConnectedBrokers("ConnectedBrokers:1"); + info.setReconnectTo("ReconnectTo:2"); + info.setRebalanceConnection(false); + info.setToken("Token:3".getBytes()); + } +} diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v8/ConnectionErrorTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v8/ConnectionErrorTest.java index 857746c2028..1f96d2c2983 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v8/ConnectionErrorTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v8/ConnectionErrorTest.java @@ -1 +1,61 @@ -/** * * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.activemq.openwire.v8; import java.io.DataInputStream; import java.io.DataOutputStream; import java.io.IOException; import org.apache.activemq.openwire.*; import org.apache.activemq.command.*; /** * Test case for the OpenWire marshalling for ConnectionError * * * NOTE!: This file is auto generated - do not modify! * if you need to make a change, please see the modify the groovy scripts in the * under src/gram/script and then use maven openwire:generate to regenerate * this file. * * */ public class ConnectionErrorTest extends BaseCommandTestSupport { public static ConnectionErrorTest SINGLETON = new ConnectionErrorTest(); public Object createObject() throws Exception { ConnectionError info = new ConnectionError(); populateObject(info); return info; } protected void populateObject(Object object) throws Exception { super.populateObject(object); ConnectionError info = (ConnectionError) object; info.setException(createThrowable("Exception:1")); info.setConnectionId(createConnectionId("ConnectionId:2")); } } \ No newline at end of file +/** + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.apache.activemq.openwire.v8; + +import java.io.DataInputStream; +import java.io.DataOutputStream; +import java.io.IOException; + +import org.apache.activemq.openwire.*; +import org.apache.activemq.command.*; + + +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; +/** + * Test case for the OpenWire marshalling for ConnectionError + * + * + * NOTE!: This file is auto generated - do not modify! + * if you need to make a change, please see the modify the groovy scripts in the + * under src/gram/script and then use maven openwire:generate to regenerate + * this file. + * + * + */ +@Category(ParallelTest.class) + +public class ConnectionErrorTest extends BaseCommandTestSupport { + + + public static ConnectionErrorTest SINGLETON = new ConnectionErrorTest(); + + public Object createObject() throws Exception { + ConnectionError info = new ConnectionError(); + populateObject(info); + return info; + } + + protected void populateObject(Object object) throws Exception { + super.populateObject(object); + ConnectionError info = (ConnectionError) object; + + info.setException(createThrowable("Exception:1")); + info.setConnectionId(createConnectionId("ConnectionId:2")); + } +} diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v8/ConnectionIdTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v8/ConnectionIdTest.java index 6c45427cc03..82b87b03237 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v8/ConnectionIdTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v8/ConnectionIdTest.java @@ -1 +1,60 @@ -/** * * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.activemq.openwire.v8; import java.io.DataInputStream; import java.io.DataOutputStream; import java.io.IOException; import org.apache.activemq.openwire.*; import org.apache.activemq.command.*; /** * Test case for the OpenWire marshalling for ConnectionId * * * NOTE!: This file is auto generated - do not modify! * if you need to make a change, please see the modify the groovy scripts in the * under src/gram/script and then use maven openwire:generate to regenerate * this file. * * */ public class ConnectionIdTest extends DataFileGeneratorTestSupport { public static ConnectionIdTest SINGLETON = new ConnectionIdTest(); public Object createObject() throws Exception { ConnectionId info = new ConnectionId(); populateObject(info); return info; } protected void populateObject(Object object) throws Exception { super.populateObject(object); ConnectionId info = (ConnectionId) object; info.setValue("Value:1"); } } \ No newline at end of file +/** + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.apache.activemq.openwire.v8; + +import java.io.DataInputStream; +import java.io.DataOutputStream; +import java.io.IOException; + +import org.apache.activemq.openwire.*; +import org.apache.activemq.command.*; + + +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; +/** + * Test case for the OpenWire marshalling for ConnectionId + * + * + * NOTE!: This file is auto generated - do not modify! + * if you need to make a change, please see the modify the groovy scripts in the + * under src/gram/script and then use maven openwire:generate to regenerate + * this file. + * + * + */ +@Category(ParallelTest.class) + +public class ConnectionIdTest extends DataFileGeneratorTestSupport { + + + public static ConnectionIdTest SINGLETON = new ConnectionIdTest(); + + public Object createObject() throws Exception { + ConnectionId info = new ConnectionId(); + populateObject(info); + return info; + } + + protected void populateObject(Object object) throws Exception { + super.populateObject(object); + ConnectionId info = (ConnectionId) object; + + info.setValue("Value:1"); + } +} diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v8/ConnectionInfoTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v8/ConnectionInfoTest.java index b10259ebde3..2e869e5d22f 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v8/ConnectionInfoTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v8/ConnectionInfoTest.java @@ -1 +1,76 @@ -/** * * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.activemq.openwire.v8; import java.io.DataInputStream; import java.io.DataOutputStream; import java.io.IOException; import org.apache.activemq.openwire.*; import org.apache.activemq.command.*; /** * Test case for the OpenWire marshalling for ConnectionInfo * * * NOTE!: This file is auto generated - do not modify! * if you need to make a change, please see the modify the groovy scripts in the * under src/gram/script and then use maven openwire:generate to regenerate * this file. * * */ public class ConnectionInfoTest extends BaseCommandTestSupport { public static ConnectionInfoTest SINGLETON = new ConnectionInfoTest(); public Object createObject() throws Exception { ConnectionInfo info = new ConnectionInfo(); populateObject(info); return info; } protected void populateObject(Object object) throws Exception { super.populateObject(object); ConnectionInfo info = (ConnectionInfo) object; info.setConnectionId(createConnectionId("ConnectionId:1")); info.setClientId("ClientId:2"); info.setPassword("Password:3"); info.setUserName("UserName:4"); { BrokerId value[] = new BrokerId[2]; for( int i=0; i < 2; i++ ) { value[i] = createBrokerId("BrokerPath:5"); } info.setBrokerPath(value); } info.setBrokerMasterConnector(true); info.setManageable(false); info.setClientMaster(true); info.setFaultTolerant(false); info.setFailoverReconnect(true); info.setClientIp("ClientIp:6"); } } \ No newline at end of file +/** + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.apache.activemq.openwire.v8; + +import java.io.DataInputStream; +import java.io.DataOutputStream; +import java.io.IOException; + +import org.apache.activemq.openwire.*; +import org.apache.activemq.command.*; + + +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; +/** + * Test case for the OpenWire marshalling for ConnectionInfo + * + * + * NOTE!: This file is auto generated - do not modify! + * if you need to make a change, please see the modify the groovy scripts in the + * under src/gram/script and then use maven openwire:generate to regenerate + * this file. + * + * + */ +@Category(ParallelTest.class) + +public class ConnectionInfoTest extends BaseCommandTestSupport { + + + public static ConnectionInfoTest SINGLETON = new ConnectionInfoTest(); + + public Object createObject() throws Exception { + ConnectionInfo info = new ConnectionInfo(); + populateObject(info); + return info; + } + + protected void populateObject(Object object) throws Exception { + super.populateObject(object); + ConnectionInfo info = (ConnectionInfo) object; + + info.setConnectionId(createConnectionId("ConnectionId:1")); + info.setClientId("ClientId:2"); + info.setPassword("Password:3"); + info.setUserName("UserName:4"); + { + BrokerId value[] = new BrokerId[2]; + for( int i=0; i < 2; i++ ) { + value[i] = createBrokerId("BrokerPath:5"); + } + info.setBrokerPath(value); + } + info.setBrokerMasterConnector(true); + info.setManageable(false); + info.setClientMaster(true); + info.setFaultTolerant(false); + info.setFailoverReconnect(true); + info.setClientIp("ClientIp:6"); + } +} diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v8/ConsumerControlTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v8/ConsumerControlTest.java index 7d0917ef91f..0783f3e4b5a 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v8/ConsumerControlTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v8/ConsumerControlTest.java @@ -1 +1,66 @@ -/** * * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.activemq.openwire.v8; import java.io.DataInputStream; import java.io.DataOutputStream; import java.io.IOException; import org.apache.activemq.openwire.*; import org.apache.activemq.command.*; /** * Test case for the OpenWire marshalling for ConsumerControl * * * NOTE!: This file is auto generated - do not modify! * if you need to make a change, please see the modify the groovy scripts in the * under src/gram/script and then use maven openwire:generate to regenerate * this file. * * */ public class ConsumerControlTest extends BaseCommandTestSupport { public static ConsumerControlTest SINGLETON = new ConsumerControlTest(); public Object createObject() throws Exception { ConsumerControl info = new ConsumerControl(); populateObject(info); return info; } protected void populateObject(Object object) throws Exception { super.populateObject(object); ConsumerControl info = (ConsumerControl) object; info.setDestination(createActiveMQDestination("Destination:1")); info.setClose(true); info.setConsumerId(createConsumerId("ConsumerId:2")); info.setPrefetch(1); info.setFlush(false); info.setStart(true); info.setStop(false); } } \ No newline at end of file +/** + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.apache.activemq.openwire.v8; + +import java.io.DataInputStream; +import java.io.DataOutputStream; +import java.io.IOException; + +import org.apache.activemq.openwire.*; +import org.apache.activemq.command.*; + + +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; +/** + * Test case for the OpenWire marshalling for ConsumerControl + * + * + * NOTE!: This file is auto generated - do not modify! + * if you need to make a change, please see the modify the groovy scripts in the + * under src/gram/script and then use maven openwire:generate to regenerate + * this file. + * + * + */ +@Category(ParallelTest.class) + +public class ConsumerControlTest extends BaseCommandTestSupport { + + + public static ConsumerControlTest SINGLETON = new ConsumerControlTest(); + + public Object createObject() throws Exception { + ConsumerControl info = new ConsumerControl(); + populateObject(info); + return info; + } + + protected void populateObject(Object object) throws Exception { + super.populateObject(object); + ConsumerControl info = (ConsumerControl) object; + + info.setDestination(createActiveMQDestination("Destination:1")); + info.setClose(true); + info.setConsumerId(createConsumerId("ConsumerId:2")); + info.setPrefetch(1); + info.setFlush(false); + info.setStart(true); + info.setStop(false); + } +} diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v8/ConsumerIdTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v8/ConsumerIdTest.java index 6e5b66dd219..f5a3cce4ef8 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v8/ConsumerIdTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v8/ConsumerIdTest.java @@ -1 +1,62 @@ -/** * * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.activemq.openwire.v8; import java.io.DataInputStream; import java.io.DataOutputStream; import java.io.IOException; import org.apache.activemq.openwire.*; import org.apache.activemq.command.*; /** * Test case for the OpenWire marshalling for ConsumerId * * * NOTE!: This file is auto generated - do not modify! * if you need to make a change, please see the modify the groovy scripts in the * under src/gram/script and then use maven openwire:generate to regenerate * this file. * * */ public class ConsumerIdTest extends DataFileGeneratorTestSupport { public static ConsumerIdTest SINGLETON = new ConsumerIdTest(); public Object createObject() throws Exception { ConsumerId info = new ConsumerId(); populateObject(info); return info; } protected void populateObject(Object object) throws Exception { super.populateObject(object); ConsumerId info = (ConsumerId) object; info.setConnectionId("ConnectionId:1"); info.setSessionId(1); info.setValue(2); } } \ No newline at end of file +/** + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.apache.activemq.openwire.v8; + +import java.io.DataInputStream; +import java.io.DataOutputStream; +import java.io.IOException; + +import org.apache.activemq.openwire.*; +import org.apache.activemq.command.*; + + +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; +/** + * Test case for the OpenWire marshalling for ConsumerId + * + * + * NOTE!: This file is auto generated - do not modify! + * if you need to make a change, please see the modify the groovy scripts in the + * under src/gram/script and then use maven openwire:generate to regenerate + * this file. + * + * + */ +@Category(ParallelTest.class) + +public class ConsumerIdTest extends DataFileGeneratorTestSupport { + + + public static ConsumerIdTest SINGLETON = new ConsumerIdTest(); + + public Object createObject() throws Exception { + ConsumerId info = new ConsumerId(); + populateObject(info); + return info; + } + + protected void populateObject(Object object) throws Exception { + super.populateObject(object); + ConsumerId info = (ConsumerId) object; + + info.setConnectionId("ConnectionId:1"); + info.setSessionId(1); + info.setValue(2); + } +} diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v8/ConsumerInfoTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v8/ConsumerInfoTest.java index a1e8695ba35..84dbda66b99 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v8/ConsumerInfoTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v8/ConsumerInfoTest.java @@ -1 +1,89 @@ -/** * * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.activemq.openwire.v8; import java.io.DataInputStream; import java.io.DataOutputStream; import java.io.IOException; import org.apache.activemq.openwire.*; import org.apache.activemq.command.*; /** * Test case for the OpenWire marshalling for ConsumerInfo * * * NOTE!: This file is auto generated - do not modify! * if you need to make a change, please see the modify the groovy scripts in the * under src/gram/script and then use maven openwire:generate to regenerate * this file. * * */ public class ConsumerInfoTest extends BaseCommandTestSupport { public static ConsumerInfoTest SINGLETON = new ConsumerInfoTest(); public Object createObject() throws Exception { ConsumerInfo info = new ConsumerInfo(); populateObject(info); return info; } protected void populateObject(Object object) throws Exception { super.populateObject(object); ConsumerInfo info = (ConsumerInfo) object; info.setConsumerId(createConsumerId("ConsumerId:1")); info.setBrowser(true); info.setDestination(createActiveMQDestination("Destination:2")); info.setPrefetchSize(1); info.setMaximumPendingMessageLimit(2); info.setDispatchAsync(false); info.setSelector("Selector:3"); info.setSubscriptionName("SubscriptionName:4"); info.setNoLocal(true); info.setExclusive(false); info.setRetroactive(true); info.setPriority((byte) 1); { BrokerId value[] = new BrokerId[2]; for( int i=0; i < 2; i++ ) { value[i] = createBrokerId("BrokerPath:5"); } info.setBrokerPath(value); } info.setAdditionalPredicate(createBooleanExpression("AdditionalPredicate:6")); info.setNetworkSubscription(false); info.setOptimizedAcknowledge(true); info.setNoRangeAcks(false); { ConsumerId value[] = new ConsumerId[2]; for( int i=0; i < 2; i++ ) { value[i] = createConsumerId("NetworkConsumerPath:7"); } info.setNetworkConsumerPath(value); } } } \ No newline at end of file +/** + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.apache.activemq.openwire.v8; + +import java.io.DataInputStream; +import java.io.DataOutputStream; +import java.io.IOException; + +import org.apache.activemq.openwire.*; +import org.apache.activemq.command.*; + + +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; +/** + * Test case for the OpenWire marshalling for ConsumerInfo + * + * + * NOTE!: This file is auto generated - do not modify! + * if you need to make a change, please see the modify the groovy scripts in the + * under src/gram/script and then use maven openwire:generate to regenerate + * this file. + * + * + */ +@Category(ParallelTest.class) + +public class ConsumerInfoTest extends BaseCommandTestSupport { + + + public static ConsumerInfoTest SINGLETON = new ConsumerInfoTest(); + + public Object createObject() throws Exception { + ConsumerInfo info = new ConsumerInfo(); + populateObject(info); + return info; + } + + protected void populateObject(Object object) throws Exception { + super.populateObject(object); + ConsumerInfo info = (ConsumerInfo) object; + + info.setConsumerId(createConsumerId("ConsumerId:1")); + info.setBrowser(true); + info.setDestination(createActiveMQDestination("Destination:2")); + info.setPrefetchSize(1); + info.setMaximumPendingMessageLimit(2); + info.setDispatchAsync(false); + info.setSelector("Selector:3"); + info.setSubscriptionName("SubscriptionName:4"); + info.setNoLocal(true); + info.setExclusive(false); + info.setRetroactive(true); + info.setPriority((byte) 1); + { + BrokerId value[] = new BrokerId[2]; + for( int i=0; i < 2; i++ ) { + value[i] = createBrokerId("BrokerPath:5"); + } + info.setBrokerPath(value); + } + info.setAdditionalPredicate(createBooleanExpression("AdditionalPredicate:6")); + info.setNetworkSubscription(false); + info.setOptimizedAcknowledge(true); + info.setNoRangeAcks(false); + { + ConsumerId value[] = new ConsumerId[2]; + for( int i=0; i < 2; i++ ) { + value[i] = createConsumerId("NetworkConsumerPath:7"); + } + info.setNetworkConsumerPath(value); + } + } +} diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v8/ControlCommandTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v8/ControlCommandTest.java index be712161fe3..d98ce50b357 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v8/ControlCommandTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v8/ControlCommandTest.java @@ -1 +1,60 @@ -/** * * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.activemq.openwire.v8; import java.io.DataInputStream; import java.io.DataOutputStream; import java.io.IOException; import org.apache.activemq.openwire.*; import org.apache.activemq.command.*; /** * Test case for the OpenWire marshalling for ControlCommand * * * NOTE!: This file is auto generated - do not modify! * if you need to make a change, please see the modify the groovy scripts in the * under src/gram/script and then use maven openwire:generate to regenerate * this file. * * */ public class ControlCommandTest extends BaseCommandTestSupport { public static ControlCommandTest SINGLETON = new ControlCommandTest(); public Object createObject() throws Exception { ControlCommand info = new ControlCommand(); populateObject(info); return info; } protected void populateObject(Object object) throws Exception { super.populateObject(object); ControlCommand info = (ControlCommand) object; info.setCommand("Command:1"); } } \ No newline at end of file +/** + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.apache.activemq.openwire.v8; + +import java.io.DataInputStream; +import java.io.DataOutputStream; +import java.io.IOException; + +import org.apache.activemq.openwire.*; +import org.apache.activemq.command.*; + + +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; +/** + * Test case for the OpenWire marshalling for ControlCommand + * + * + * NOTE!: This file is auto generated - do not modify! + * if you need to make a change, please see the modify the groovy scripts in the + * under src/gram/script and then use maven openwire:generate to regenerate + * this file. + * + * + */ +@Category(ParallelTest.class) + +public class ControlCommandTest extends BaseCommandTestSupport { + + + public static ControlCommandTest SINGLETON = new ControlCommandTest(); + + public Object createObject() throws Exception { + ControlCommand info = new ControlCommand(); + populateObject(info); + return info; + } + + protected void populateObject(Object object) throws Exception { + super.populateObject(object); + ControlCommand info = (ControlCommand) object; + + info.setCommand("Command:1"); + } +} diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v8/DataArrayResponseTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v8/DataArrayResponseTest.java index b2a0d15370b..1a2048c7521 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v8/DataArrayResponseTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v8/DataArrayResponseTest.java @@ -1 +1,66 @@ -/** * * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.activemq.openwire.v8; import java.io.DataInputStream; import java.io.DataOutputStream; import java.io.IOException; import org.apache.activemq.openwire.*; import org.apache.activemq.command.*; /** * Test case for the OpenWire marshalling for DataArrayResponse * * * NOTE!: This file is auto generated - do not modify! * if you need to make a change, please see the modify the groovy scripts in the * under src/gram/script and then use maven openwire:generate to regenerate * this file. * * */ public class DataArrayResponseTest extends ResponseTest { public static DataArrayResponseTest SINGLETON = new DataArrayResponseTest(); public Object createObject() throws Exception { DataArrayResponse info = new DataArrayResponse(); populateObject(info); return info; } protected void populateObject(Object object) throws Exception { super.populateObject(object); DataArrayResponse info = (DataArrayResponse) object; { DataStructure value[] = new DataStructure[2]; for( int i=0; i < 2; i++ ) { value[i] = createDataStructure("Data:1"); } info.setData(value); } } } \ No newline at end of file +/** + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.apache.activemq.openwire.v8; + +import java.io.DataInputStream; +import java.io.DataOutputStream; +import java.io.IOException; + +import org.apache.activemq.openwire.*; +import org.apache.activemq.command.*; + + +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; +/** + * Test case for the OpenWire marshalling for DataArrayResponse + * + * + * NOTE!: This file is auto generated - do not modify! + * if you need to make a change, please see the modify the groovy scripts in the + * under src/gram/script and then use maven openwire:generate to regenerate + * this file. + * + * + */ +@Category(ParallelTest.class) + +public class DataArrayResponseTest extends ResponseTest { + + + public static DataArrayResponseTest SINGLETON = new DataArrayResponseTest(); + + public Object createObject() throws Exception { + DataArrayResponse info = new DataArrayResponse(); + populateObject(info); + return info; + } + + protected void populateObject(Object object) throws Exception { + super.populateObject(object); + DataArrayResponse info = (DataArrayResponse) object; + + { + DataStructure value[] = new DataStructure[2]; + for( int i=0; i < 2; i++ ) { + value[i] = createDataStructure("Data:1"); + } + info.setData(value); + } + } +} diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v8/DataResponseTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v8/DataResponseTest.java index 2806a893a09..dd940ed1171 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v8/DataResponseTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v8/DataResponseTest.java @@ -1 +1,60 @@ -/** * * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.activemq.openwire.v8; import java.io.DataInputStream; import java.io.DataOutputStream; import java.io.IOException; import org.apache.activemq.openwire.*; import org.apache.activemq.command.*; /** * Test case for the OpenWire marshalling for DataResponse * * * NOTE!: This file is auto generated - do not modify! * if you need to make a change, please see the modify the groovy scripts in the * under src/gram/script and then use maven openwire:generate to regenerate * this file. * * */ public class DataResponseTest extends ResponseTest { public static DataResponseTest SINGLETON = new DataResponseTest(); public Object createObject() throws Exception { DataResponse info = new DataResponse(); populateObject(info); return info; } protected void populateObject(Object object) throws Exception { super.populateObject(object); DataResponse info = (DataResponse) object; info.setData(createDataStructure("Data:1")); } } \ No newline at end of file +/** + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.apache.activemq.openwire.v8; + +import java.io.DataInputStream; +import java.io.DataOutputStream; +import java.io.IOException; + +import org.apache.activemq.openwire.*; +import org.apache.activemq.command.*; + + +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; +/** + * Test case for the OpenWire marshalling for DataResponse + * + * + * NOTE!: This file is auto generated - do not modify! + * if you need to make a change, please see the modify the groovy scripts in the + * under src/gram/script and then use maven openwire:generate to regenerate + * this file. + * + * + */ +@Category(ParallelTest.class) + +public class DataResponseTest extends ResponseTest { + + + public static DataResponseTest SINGLETON = new DataResponseTest(); + + public Object createObject() throws Exception { + DataResponse info = new DataResponse(); + populateObject(info); + return info; + } + + protected void populateObject(Object object) throws Exception { + super.populateObject(object); + DataResponse info = (DataResponse) object; + + info.setData(createDataStructure("Data:1")); + } +} diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v8/DestinationInfoTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v8/DestinationInfoTest.java index 5c94e91feb4..3978dd248c1 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v8/DestinationInfoTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v8/DestinationInfoTest.java @@ -1 +1,70 @@ -/** * * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.activemq.openwire.v8; import java.io.DataInputStream; import java.io.DataOutputStream; import java.io.IOException; import org.apache.activemq.openwire.*; import org.apache.activemq.command.*; /** * Test case for the OpenWire marshalling for DestinationInfo * * * NOTE!: This file is auto generated - do not modify! * if you need to make a change, please see the modify the groovy scripts in the * under src/gram/script and then use maven openwire:generate to regenerate * this file. * * */ public class DestinationInfoTest extends BaseCommandTestSupport { public static DestinationInfoTest SINGLETON = new DestinationInfoTest(); public Object createObject() throws Exception { DestinationInfo info = new DestinationInfo(); populateObject(info); return info; } protected void populateObject(Object object) throws Exception { super.populateObject(object); DestinationInfo info = (DestinationInfo) object; info.setConnectionId(createConnectionId("ConnectionId:1")); info.setDestination(createActiveMQDestination("Destination:2")); info.setOperationType((byte) 1); info.setTimeout(1); { BrokerId value[] = new BrokerId[2]; for( int i=0; i < 2; i++ ) { value[i] = createBrokerId("BrokerPath:3"); } info.setBrokerPath(value); } } } \ No newline at end of file +/** + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.apache.activemq.openwire.v8; + +import java.io.DataInputStream; +import java.io.DataOutputStream; +import java.io.IOException; + +import org.apache.activemq.openwire.*; +import org.apache.activemq.command.*; + + +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; +/** + * Test case for the OpenWire marshalling for DestinationInfo + * + * + * NOTE!: This file is auto generated - do not modify! + * if you need to make a change, please see the modify the groovy scripts in the + * under src/gram/script and then use maven openwire:generate to regenerate + * this file. + * + * + */ +@Category(ParallelTest.class) + +public class DestinationInfoTest extends BaseCommandTestSupport { + + + public static DestinationInfoTest SINGLETON = new DestinationInfoTest(); + + public Object createObject() throws Exception { + DestinationInfo info = new DestinationInfo(); + populateObject(info); + return info; + } + + protected void populateObject(Object object) throws Exception { + super.populateObject(object); + DestinationInfo info = (DestinationInfo) object; + + info.setConnectionId(createConnectionId("ConnectionId:1")); + info.setDestination(createActiveMQDestination("Destination:2")); + info.setOperationType((byte) 1); + info.setTimeout(1); + { + BrokerId value[] = new BrokerId[2]; + for( int i=0; i < 2; i++ ) { + value[i] = createBrokerId("BrokerPath:3"); + } + info.setBrokerPath(value); + } + } +} diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v8/DiscoveryEventTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v8/DiscoveryEventTest.java index 3264cd4b517..2cfc3959aa6 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v8/DiscoveryEventTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v8/DiscoveryEventTest.java @@ -1 +1,61 @@ -/** * * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.activemq.openwire.v8; import java.io.DataInputStream; import java.io.DataOutputStream; import java.io.IOException; import org.apache.activemq.openwire.*; import org.apache.activemq.command.*; /** * Test case for the OpenWire marshalling for DiscoveryEvent * * * NOTE!: This file is auto generated - do not modify! * if you need to make a change, please see the modify the groovy scripts in the * under src/gram/script and then use maven openwire:generate to regenerate * this file. * * */ public class DiscoveryEventTest extends DataFileGeneratorTestSupport { public static DiscoveryEventTest SINGLETON = new DiscoveryEventTest(); public Object createObject() throws Exception { DiscoveryEvent info = new DiscoveryEvent(); populateObject(info); return info; } protected void populateObject(Object object) throws Exception { super.populateObject(object); DiscoveryEvent info = (DiscoveryEvent) object; info.setServiceName("ServiceName:1"); info.setBrokerName("BrokerName:2"); } } \ No newline at end of file +/** + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.apache.activemq.openwire.v8; + +import java.io.DataInputStream; +import java.io.DataOutputStream; +import java.io.IOException; + +import org.apache.activemq.openwire.*; +import org.apache.activemq.command.*; + + +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; +/** + * Test case for the OpenWire marshalling for DiscoveryEvent + * + * + * NOTE!: This file is auto generated - do not modify! + * if you need to make a change, please see the modify the groovy scripts in the + * under src/gram/script and then use maven openwire:generate to regenerate + * this file. + * + * + */ +@Category(ParallelTest.class) + +public class DiscoveryEventTest extends DataFileGeneratorTestSupport { + + + public static DiscoveryEventTest SINGLETON = new DiscoveryEventTest(); + + public Object createObject() throws Exception { + DiscoveryEvent info = new DiscoveryEvent(); + populateObject(info); + return info; + } + + protected void populateObject(Object object) throws Exception { + super.populateObject(object); + DiscoveryEvent info = (DiscoveryEvent) object; + + info.setServiceName("ServiceName:1"); + info.setBrokerName("BrokerName:2"); + } +} diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v8/ExceptionResponseTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v8/ExceptionResponseTest.java index bb082a90a2a..ffdbb9934d6 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v8/ExceptionResponseTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v8/ExceptionResponseTest.java @@ -1 +1,60 @@ -/** * * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.activemq.openwire.v8; import java.io.DataInputStream; import java.io.DataOutputStream; import java.io.IOException; import org.apache.activemq.openwire.*; import org.apache.activemq.command.*; /** * Test case for the OpenWire marshalling for ExceptionResponse * * * NOTE!: This file is auto generated - do not modify! * if you need to make a change, please see the modify the groovy scripts in the * under src/gram/script and then use maven openwire:generate to regenerate * this file. * * */ public class ExceptionResponseTest extends ResponseTest { public static ExceptionResponseTest SINGLETON = new ExceptionResponseTest(); public Object createObject() throws Exception { ExceptionResponse info = new ExceptionResponse(); populateObject(info); return info; } protected void populateObject(Object object) throws Exception { super.populateObject(object); ExceptionResponse info = (ExceptionResponse) object; info.setException(createThrowable("Exception:1")); } } \ No newline at end of file +/** + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.apache.activemq.openwire.v8; + +import java.io.DataInputStream; +import java.io.DataOutputStream; +import java.io.IOException; + +import org.apache.activemq.openwire.*; +import org.apache.activemq.command.*; + + +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; +/** + * Test case for the OpenWire marshalling for ExceptionResponse + * + * + * NOTE!: This file is auto generated - do not modify! + * if you need to make a change, please see the modify the groovy scripts in the + * under src/gram/script and then use maven openwire:generate to regenerate + * this file. + * + * + */ +@Category(ParallelTest.class) + +public class ExceptionResponseTest extends ResponseTest { + + + public static ExceptionResponseTest SINGLETON = new ExceptionResponseTest(); + + public Object createObject() throws Exception { + ExceptionResponse info = new ExceptionResponse(); + populateObject(info); + return info; + } + + protected void populateObject(Object object) throws Exception { + super.populateObject(object); + ExceptionResponse info = (ExceptionResponse) object; + + info.setException(createThrowable("Exception:1")); + } +} diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v8/FlushCommandTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v8/FlushCommandTest.java index e84280bc1d6..569b81e76b8 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v8/FlushCommandTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v8/FlushCommandTest.java @@ -1 +1,59 @@ -/** * * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.activemq.openwire.v8; import java.io.DataInputStream; import java.io.DataOutputStream; import java.io.IOException; import org.apache.activemq.openwire.*; import org.apache.activemq.command.*; /** * Test case for the OpenWire marshalling for FlushCommand * * * NOTE!: This file is auto generated - do not modify! * if you need to make a change, please see the modify the groovy scripts in the * under src/gram/script and then use maven openwire:generate to regenerate * this file. * * */ public class FlushCommandTest extends BaseCommandTestSupport { public static FlushCommandTest SINGLETON = new FlushCommandTest(); public Object createObject() throws Exception { FlushCommand info = new FlushCommand(); populateObject(info); return info; } protected void populateObject(Object object) throws Exception { super.populateObject(object); FlushCommand info = (FlushCommand) object; } } \ No newline at end of file +/** + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.apache.activemq.openwire.v8; + +import java.io.DataInputStream; +import java.io.DataOutputStream; +import java.io.IOException; + +import org.apache.activemq.openwire.*; +import org.apache.activemq.command.*; + + +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; +/** + * Test case for the OpenWire marshalling for FlushCommand + * + * + * NOTE!: This file is auto generated - do not modify! + * if you need to make a change, please see the modify the groovy scripts in the + * under src/gram/script and then use maven openwire:generate to regenerate + * this file. + * + * + */ +@Category(ParallelTest.class) + +public class FlushCommandTest extends BaseCommandTestSupport { + + + public static FlushCommandTest SINGLETON = new FlushCommandTest(); + + public Object createObject() throws Exception { + FlushCommand info = new FlushCommand(); + populateObject(info); + return info; + } + + protected void populateObject(Object object) throws Exception { + super.populateObject(object); + FlushCommand info = (FlushCommand) object; + + } +} diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v8/IntegerResponseTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v8/IntegerResponseTest.java index 5b4c12a704c..c315edf2c9b 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v8/IntegerResponseTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v8/IntegerResponseTest.java @@ -1 +1,60 @@ -/** * * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.activemq.openwire.v8; import java.io.DataInputStream; import java.io.DataOutputStream; import java.io.IOException; import org.apache.activemq.openwire.*; import org.apache.activemq.command.*; /** * Test case for the OpenWire marshalling for IntegerResponse * * * NOTE!: This file is auto generated - do not modify! * if you need to make a change, please see the modify the groovy scripts in the * under src/gram/script and then use maven openwire:generate to regenerate * this file. * * */ public class IntegerResponseTest extends ResponseTest { public static IntegerResponseTest SINGLETON = new IntegerResponseTest(); public Object createObject() throws Exception { IntegerResponse info = new IntegerResponse(); populateObject(info); return info; } protected void populateObject(Object object) throws Exception { super.populateObject(object); IntegerResponse info = (IntegerResponse) object; info.setResult(1); } } \ No newline at end of file +/** + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.apache.activemq.openwire.v8; + +import java.io.DataInputStream; +import java.io.DataOutputStream; +import java.io.IOException; + +import org.apache.activemq.openwire.*; +import org.apache.activemq.command.*; + + +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; +/** + * Test case for the OpenWire marshalling for IntegerResponse + * + * + * NOTE!: This file is auto generated - do not modify! + * if you need to make a change, please see the modify the groovy scripts in the + * under src/gram/script and then use maven openwire:generate to regenerate + * this file. + * + * + */ +@Category(ParallelTest.class) + +public class IntegerResponseTest extends ResponseTest { + + + public static IntegerResponseTest SINGLETON = new IntegerResponseTest(); + + public Object createObject() throws Exception { + IntegerResponse info = new IntegerResponse(); + populateObject(info); + return info; + } + + protected void populateObject(Object object) throws Exception { + super.populateObject(object); + IntegerResponse info = (IntegerResponse) object; + + info.setResult(1); + } +} diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v8/JournalQueueAckTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v8/JournalQueueAckTest.java index 5b696670057..8fe29a6d08b 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v8/JournalQueueAckTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v8/JournalQueueAckTest.java @@ -1 +1,61 @@ -/** * * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.activemq.openwire.v8; import java.io.DataInputStream; import java.io.DataOutputStream; import java.io.IOException; import org.apache.activemq.openwire.*; import org.apache.activemq.command.*; /** * Test case for the OpenWire marshalling for JournalQueueAck * * * NOTE!: This file is auto generated - do not modify! * if you need to make a change, please see the modify the groovy scripts in the * under src/gram/script and then use maven openwire:generate to regenerate * this file. * * */ public class JournalQueueAckTest extends DataFileGeneratorTestSupport { public static JournalQueueAckTest SINGLETON = new JournalQueueAckTest(); public Object createObject() throws Exception { JournalQueueAck info = new JournalQueueAck(); populateObject(info); return info; } protected void populateObject(Object object) throws Exception { super.populateObject(object); JournalQueueAck info = (JournalQueueAck) object; info.setDestination(createActiveMQDestination("Destination:1")); info.setMessageAck(createMessageAck("MessageAck:2")); } } \ No newline at end of file +/** + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.apache.activemq.openwire.v8; + +import java.io.DataInputStream; +import java.io.DataOutputStream; +import java.io.IOException; + +import org.apache.activemq.openwire.*; +import org.apache.activemq.command.*; + + +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; +/** + * Test case for the OpenWire marshalling for JournalQueueAck + * + * + * NOTE!: This file is auto generated - do not modify! + * if you need to make a change, please see the modify the groovy scripts in the + * under src/gram/script and then use maven openwire:generate to regenerate + * this file. + * + * + */ +@Category(ParallelTest.class) + +public class JournalQueueAckTest extends DataFileGeneratorTestSupport { + + + public static JournalQueueAckTest SINGLETON = new JournalQueueAckTest(); + + public Object createObject() throws Exception { + JournalQueueAck info = new JournalQueueAck(); + populateObject(info); + return info; + } + + protected void populateObject(Object object) throws Exception { + super.populateObject(object); + JournalQueueAck info = (JournalQueueAck) object; + + info.setDestination(createActiveMQDestination("Destination:1")); + info.setMessageAck(createMessageAck("MessageAck:2")); + } +} diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v8/JournalTopicAckTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v8/JournalTopicAckTest.java index 120686970b7..96dfed1f3bf 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v8/JournalTopicAckTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v8/JournalTopicAckTest.java @@ -1 +1,65 @@ -/** * * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.activemq.openwire.v8; import java.io.DataInputStream; import java.io.DataOutputStream; import java.io.IOException; import org.apache.activemq.openwire.*; import org.apache.activemq.command.*; /** * Test case for the OpenWire marshalling for JournalTopicAck * * * NOTE!: This file is auto generated - do not modify! * if you need to make a change, please see the modify the groovy scripts in the * under src/gram/script and then use maven openwire:generate to regenerate * this file. * * */ public class JournalTopicAckTest extends DataFileGeneratorTestSupport { public static JournalTopicAckTest SINGLETON = new JournalTopicAckTest(); public Object createObject() throws Exception { JournalTopicAck info = new JournalTopicAck(); populateObject(info); return info; } protected void populateObject(Object object) throws Exception { super.populateObject(object); JournalTopicAck info = (JournalTopicAck) object; info.setDestination(createActiveMQDestination("Destination:1")); info.setMessageId(createMessageId("MessageId:2")); info.setMessageSequenceId(1); info.setSubscritionName("SubscritionName:3"); info.setClientId("ClientId:4"); info.setTransactionId(createTransactionId("TransactionId:5")); } } \ No newline at end of file +/** + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.apache.activemq.openwire.v8; + +import java.io.DataInputStream; +import java.io.DataOutputStream; +import java.io.IOException; + +import org.apache.activemq.openwire.*; +import org.apache.activemq.command.*; + + +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; +/** + * Test case for the OpenWire marshalling for JournalTopicAck + * + * + * NOTE!: This file is auto generated - do not modify! + * if you need to make a change, please see the modify the groovy scripts in the + * under src/gram/script and then use maven openwire:generate to regenerate + * this file. + * + * + */ +@Category(ParallelTest.class) + +public class JournalTopicAckTest extends DataFileGeneratorTestSupport { + + + public static JournalTopicAckTest SINGLETON = new JournalTopicAckTest(); + + public Object createObject() throws Exception { + JournalTopicAck info = new JournalTopicAck(); + populateObject(info); + return info; + } + + protected void populateObject(Object object) throws Exception { + super.populateObject(object); + JournalTopicAck info = (JournalTopicAck) object; + + info.setDestination(createActiveMQDestination("Destination:1")); + info.setMessageId(createMessageId("MessageId:2")); + info.setMessageSequenceId(1); + info.setSubscritionName("SubscritionName:3"); + info.setClientId("ClientId:4"); + info.setTransactionId(createTransactionId("TransactionId:5")); + } +} diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v8/JournalTraceTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v8/JournalTraceTest.java index 9172fcc561b..ff1d43d7a3b 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v8/JournalTraceTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v8/JournalTraceTest.java @@ -1 +1,60 @@ -/** * * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.activemq.openwire.v8; import java.io.DataInputStream; import java.io.DataOutputStream; import java.io.IOException; import org.apache.activemq.openwire.*; import org.apache.activemq.command.*; /** * Test case for the OpenWire marshalling for JournalTrace * * * NOTE!: This file is auto generated - do not modify! * if you need to make a change, please see the modify the groovy scripts in the * under src/gram/script and then use maven openwire:generate to regenerate * this file. * * */ public class JournalTraceTest extends DataFileGeneratorTestSupport { public static JournalTraceTest SINGLETON = new JournalTraceTest(); public Object createObject() throws Exception { JournalTrace info = new JournalTrace(); populateObject(info); return info; } protected void populateObject(Object object) throws Exception { super.populateObject(object); JournalTrace info = (JournalTrace) object; info.setMessage("Message:1"); } } \ No newline at end of file +/** + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.apache.activemq.openwire.v8; + +import java.io.DataInputStream; +import java.io.DataOutputStream; +import java.io.IOException; + +import org.apache.activemq.openwire.*; +import org.apache.activemq.command.*; + + +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; +/** + * Test case for the OpenWire marshalling for JournalTrace + * + * + * NOTE!: This file is auto generated - do not modify! + * if you need to make a change, please see the modify the groovy scripts in the + * under src/gram/script and then use maven openwire:generate to regenerate + * this file. + * + * + */ +@Category(ParallelTest.class) + +public class JournalTraceTest extends DataFileGeneratorTestSupport { + + + public static JournalTraceTest SINGLETON = new JournalTraceTest(); + + public Object createObject() throws Exception { + JournalTrace info = new JournalTrace(); + populateObject(info); + return info; + } + + protected void populateObject(Object object) throws Exception { + super.populateObject(object); + JournalTrace info = (JournalTrace) object; + + info.setMessage("Message:1"); + } +} diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v8/JournalTransactionTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v8/JournalTransactionTest.java index 1216bed8d2d..faeea220268 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v8/JournalTransactionTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v8/JournalTransactionTest.java @@ -1 +1,62 @@ -/** * * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.activemq.openwire.v8; import java.io.DataInputStream; import java.io.DataOutputStream; import java.io.IOException; import org.apache.activemq.openwire.*; import org.apache.activemq.command.*; /** * Test case for the OpenWire marshalling for JournalTransaction * * * NOTE!: This file is auto generated - do not modify! * if you need to make a change, please see the modify the groovy scripts in the * under src/gram/script and then use maven openwire:generate to regenerate * this file. * * */ public class JournalTransactionTest extends DataFileGeneratorTestSupport { public static JournalTransactionTest SINGLETON = new JournalTransactionTest(); public Object createObject() throws Exception { JournalTransaction info = new JournalTransaction(); populateObject(info); return info; } protected void populateObject(Object object) throws Exception { super.populateObject(object); JournalTransaction info = (JournalTransaction) object; info.setTransactionId(createTransactionId("TransactionId:1")); info.setType((byte) 1); info.setWasPrepared(true); } } \ No newline at end of file +/** + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.apache.activemq.openwire.v8; + +import java.io.DataInputStream; +import java.io.DataOutputStream; +import java.io.IOException; + +import org.apache.activemq.openwire.*; +import org.apache.activemq.command.*; + + +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; +/** + * Test case for the OpenWire marshalling for JournalTransaction + * + * + * NOTE!: This file is auto generated - do not modify! + * if you need to make a change, please see the modify the groovy scripts in the + * under src/gram/script and then use maven openwire:generate to regenerate + * this file. + * + * + */ +@Category(ParallelTest.class) + +public class JournalTransactionTest extends DataFileGeneratorTestSupport { + + + public static JournalTransactionTest SINGLETON = new JournalTransactionTest(); + + public Object createObject() throws Exception { + JournalTransaction info = new JournalTransaction(); + populateObject(info); + return info; + } + + protected void populateObject(Object object) throws Exception { + super.populateObject(object); + JournalTransaction info = (JournalTransaction) object; + + info.setTransactionId(createTransactionId("TransactionId:1")); + info.setType((byte) 1); + info.setWasPrepared(true); + } +} diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v8/KeepAliveInfoTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v8/KeepAliveInfoTest.java index 9d39ae3ab8e..15090146528 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v8/KeepAliveInfoTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v8/KeepAliveInfoTest.java @@ -1 +1,59 @@ -/** * * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.activemq.openwire.v8; import java.io.DataInputStream; import java.io.DataOutputStream; import java.io.IOException; import org.apache.activemq.openwire.*; import org.apache.activemq.command.*; /** * Test case for the OpenWire marshalling for KeepAliveInfo * * * NOTE!: This file is auto generated - do not modify! * if you need to make a change, please see the modify the groovy scripts in the * under src/gram/script and then use maven openwire:generate to regenerate * this file. * * */ public class KeepAliveInfoTest extends BaseCommandTestSupport { public static KeepAliveInfoTest SINGLETON = new KeepAliveInfoTest(); public Object createObject() throws Exception { KeepAliveInfo info = new KeepAliveInfo(); populateObject(info); return info; } protected void populateObject(Object object) throws Exception { super.populateObject(object); KeepAliveInfo info = (KeepAliveInfo) object; } } \ No newline at end of file +/** + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.apache.activemq.openwire.v8; + +import java.io.DataInputStream; +import java.io.DataOutputStream; +import java.io.IOException; + +import org.apache.activemq.openwire.*; +import org.apache.activemq.command.*; + + +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; +/** + * Test case for the OpenWire marshalling for KeepAliveInfo + * + * + * NOTE!: This file is auto generated - do not modify! + * if you need to make a change, please see the modify the groovy scripts in the + * under src/gram/script and then use maven openwire:generate to regenerate + * this file. + * + * + */ +@Category(ParallelTest.class) + +public class KeepAliveInfoTest extends BaseCommandTestSupport { + + + public static KeepAliveInfoTest SINGLETON = new KeepAliveInfoTest(); + + public Object createObject() throws Exception { + KeepAliveInfo info = new KeepAliveInfo(); + populateObject(info); + return info; + } + + protected void populateObject(Object object) throws Exception { + super.populateObject(object); + KeepAliveInfo info = (KeepAliveInfo) object; + + } +} diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v8/LastPartialCommandTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v8/LastPartialCommandTest.java index 1c36b25aff0..19ca7e83050 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v8/LastPartialCommandTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v8/LastPartialCommandTest.java @@ -1 +1,59 @@ -/** * * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.activemq.openwire.v8; import java.io.DataInputStream; import java.io.DataOutputStream; import java.io.IOException; import org.apache.activemq.openwire.*; import org.apache.activemq.command.*; /** * Test case for the OpenWire marshalling for LastPartialCommand * * * NOTE!: This file is auto generated - do not modify! * if you need to make a change, please see the modify the groovy scripts in the * under src/gram/script and then use maven openwire:generate to regenerate * this file. * * */ public class LastPartialCommandTest extends PartialCommandTest { public static LastPartialCommandTest SINGLETON = new LastPartialCommandTest(); public Object createObject() throws Exception { LastPartialCommand info = new LastPartialCommand(); populateObject(info); return info; } protected void populateObject(Object object) throws Exception { super.populateObject(object); LastPartialCommand info = (LastPartialCommand) object; } } \ No newline at end of file +/** + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.apache.activemq.openwire.v8; + +import java.io.DataInputStream; +import java.io.DataOutputStream; +import java.io.IOException; + +import org.apache.activemq.openwire.*; +import org.apache.activemq.command.*; + + +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; +/** + * Test case for the OpenWire marshalling for LastPartialCommand + * + * + * NOTE!: This file is auto generated - do not modify! + * if you need to make a change, please see the modify the groovy scripts in the + * under src/gram/script and then use maven openwire:generate to regenerate + * this file. + * + * + */ +@Category(ParallelTest.class) + +public class LastPartialCommandTest extends PartialCommandTest { + + + public static LastPartialCommandTest SINGLETON = new LastPartialCommandTest(); + + public Object createObject() throws Exception { + LastPartialCommand info = new LastPartialCommand(); + populateObject(info); + return info; + } + + protected void populateObject(Object object) throws Exception { + super.populateObject(object); + LastPartialCommand info = (LastPartialCommand) object; + + } +} diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v8/LocalTransactionIdTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v8/LocalTransactionIdTest.java index b2b1c8148d9..baecee85898 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v8/LocalTransactionIdTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v8/LocalTransactionIdTest.java @@ -1 +1,61 @@ -/** * * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.activemq.openwire.v8; import java.io.DataInputStream; import java.io.DataOutputStream; import java.io.IOException; import org.apache.activemq.openwire.*; import org.apache.activemq.command.*; /** * Test case for the OpenWire marshalling for LocalTransactionId * * * NOTE!: This file is auto generated - do not modify! * if you need to make a change, please see the modify the groovy scripts in the * under src/gram/script and then use maven openwire:generate to regenerate * this file. * * */ public class LocalTransactionIdTest extends TransactionIdTestSupport { public static LocalTransactionIdTest SINGLETON = new LocalTransactionIdTest(); public Object createObject() throws Exception { LocalTransactionId info = new LocalTransactionId(); populateObject(info); return info; } protected void populateObject(Object object) throws Exception { super.populateObject(object); LocalTransactionId info = (LocalTransactionId) object; info.setValue(1); info.setConnectionId(createConnectionId("ConnectionId:1")); } } \ No newline at end of file +/** + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.apache.activemq.openwire.v8; + +import java.io.DataInputStream; +import java.io.DataOutputStream; +import java.io.IOException; + +import org.apache.activemq.openwire.*; +import org.apache.activemq.command.*; + + +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; +/** + * Test case for the OpenWire marshalling for LocalTransactionId + * + * + * NOTE!: This file is auto generated - do not modify! + * if you need to make a change, please see the modify the groovy scripts in the + * under src/gram/script and then use maven openwire:generate to regenerate + * this file. + * + * + */ +@Category(ParallelTest.class) + +public class LocalTransactionIdTest extends TransactionIdTestSupport { + + + public static LocalTransactionIdTest SINGLETON = new LocalTransactionIdTest(); + + public Object createObject() throws Exception { + LocalTransactionId info = new LocalTransactionId(); + populateObject(info); + return info; + } + + protected void populateObject(Object object) throws Exception { + super.populateObject(object); + LocalTransactionId info = (LocalTransactionId) object; + + info.setValue(1); + info.setConnectionId(createConnectionId("ConnectionId:1")); + } +} diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v8/MessageAckTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v8/MessageAckTest.java index ba6efc1fc49..2e63199e71d 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v8/MessageAckTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v8/MessageAckTest.java @@ -1 +1,67 @@ -/** * * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.activemq.openwire.v8; import java.io.DataInputStream; import java.io.DataOutputStream; import java.io.IOException; import org.apache.activemq.openwire.*; import org.apache.activemq.command.*; /** * Test case for the OpenWire marshalling for MessageAck * * * NOTE!: This file is auto generated - do not modify! * if you need to make a change, please see the modify the groovy scripts in the * under src/gram/script and then use maven openwire:generate to regenerate * this file. * * */ public class MessageAckTest extends BaseCommandTestSupport { public static MessageAckTest SINGLETON = new MessageAckTest(); public Object createObject() throws Exception { MessageAck info = new MessageAck(); populateObject(info); return info; } protected void populateObject(Object object) throws Exception { super.populateObject(object); MessageAck info = (MessageAck) object; info.setDestination(createActiveMQDestination("Destination:1")); info.setTransactionId(createTransactionId("TransactionId:2")); info.setConsumerId(createConsumerId("ConsumerId:3")); info.setAckType((byte) 1); info.setFirstMessageId(createMessageId("FirstMessageId:4")); info.setLastMessageId(createMessageId("LastMessageId:5")); info.setMessageCount(1); info.setPoisonCause(createThrowable("PoisonCause:6")); } } \ No newline at end of file +/** + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.apache.activemq.openwire.v8; + +import java.io.DataInputStream; +import java.io.DataOutputStream; +import java.io.IOException; + +import org.apache.activemq.openwire.*; +import org.apache.activemq.command.*; + + +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; +/** + * Test case for the OpenWire marshalling for MessageAck + * + * + * NOTE!: This file is auto generated - do not modify! + * if you need to make a change, please see the modify the groovy scripts in the + * under src/gram/script and then use maven openwire:generate to regenerate + * this file. + * + * + */ +@Category(ParallelTest.class) + +public class MessageAckTest extends BaseCommandTestSupport { + + + public static MessageAckTest SINGLETON = new MessageAckTest(); + + public Object createObject() throws Exception { + MessageAck info = new MessageAck(); + populateObject(info); + return info; + } + + protected void populateObject(Object object) throws Exception { + super.populateObject(object); + MessageAck info = (MessageAck) object; + + info.setDestination(createActiveMQDestination("Destination:1")); + info.setTransactionId(createTransactionId("TransactionId:2")); + info.setConsumerId(createConsumerId("ConsumerId:3")); + info.setAckType((byte) 1); + info.setFirstMessageId(createMessageId("FirstMessageId:4")); + info.setLastMessageId(createMessageId("LastMessageId:5")); + info.setMessageCount(1); + info.setPoisonCause(createThrowable("PoisonCause:6")); + } +} diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v8/MessageDispatchNotificationTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v8/MessageDispatchNotificationTest.java index 1ff388cb70e..70e86d09b45 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v8/MessageDispatchNotificationTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v8/MessageDispatchNotificationTest.java @@ -1 +1,63 @@ -/** * * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.activemq.openwire.v8; import java.io.DataInputStream; import java.io.DataOutputStream; import java.io.IOException; import org.apache.activemq.openwire.*; import org.apache.activemq.command.*; /** * Test case for the OpenWire marshalling for MessageDispatchNotification * * * NOTE!: This file is auto generated - do not modify! * if you need to make a change, please see the modify the groovy scripts in the * under src/gram/script and then use maven openwire:generate to regenerate * this file. * * */ public class MessageDispatchNotificationTest extends BaseCommandTestSupport { public static MessageDispatchNotificationTest SINGLETON = new MessageDispatchNotificationTest(); public Object createObject() throws Exception { MessageDispatchNotification info = new MessageDispatchNotification(); populateObject(info); return info; } protected void populateObject(Object object) throws Exception { super.populateObject(object); MessageDispatchNotification info = (MessageDispatchNotification) object; info.setConsumerId(createConsumerId("ConsumerId:1")); info.setDestination(createActiveMQDestination("Destination:2")); info.setDeliverySequenceId(1); info.setMessageId(createMessageId("MessageId:3")); } } \ No newline at end of file +/** + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.apache.activemq.openwire.v8; + +import java.io.DataInputStream; +import java.io.DataOutputStream; +import java.io.IOException; + +import org.apache.activemq.openwire.*; +import org.apache.activemq.command.*; + + +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; +/** + * Test case for the OpenWire marshalling for MessageDispatchNotification + * + * + * NOTE!: This file is auto generated - do not modify! + * if you need to make a change, please see the modify the groovy scripts in the + * under src/gram/script and then use maven openwire:generate to regenerate + * this file. + * + * + */ +@Category(ParallelTest.class) + +public class MessageDispatchNotificationTest extends BaseCommandTestSupport { + + + public static MessageDispatchNotificationTest SINGLETON = new MessageDispatchNotificationTest(); + + public Object createObject() throws Exception { + MessageDispatchNotification info = new MessageDispatchNotification(); + populateObject(info); + return info; + } + + protected void populateObject(Object object) throws Exception { + super.populateObject(object); + MessageDispatchNotification info = (MessageDispatchNotification) object; + + info.setConsumerId(createConsumerId("ConsumerId:1")); + info.setDestination(createActiveMQDestination("Destination:2")); + info.setDeliverySequenceId(1); + info.setMessageId(createMessageId("MessageId:3")); + } +} diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v8/MessageDispatchTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v8/MessageDispatchTest.java index 46067a5c0dd..7a7bfde5382 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v8/MessageDispatchTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v8/MessageDispatchTest.java @@ -1 +1,63 @@ -/** * * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.activemq.openwire.v8; import java.io.DataInputStream; import java.io.DataOutputStream; import java.io.IOException; import org.apache.activemq.openwire.*; import org.apache.activemq.command.*; /** * Test case for the OpenWire marshalling for MessageDispatch * * * NOTE!: This file is auto generated - do not modify! * if you need to make a change, please see the modify the groovy scripts in the * under src/gram/script and then use maven openwire:generate to regenerate * this file. * * */ public class MessageDispatchTest extends BaseCommandTestSupport { public static MessageDispatchTest SINGLETON = new MessageDispatchTest(); public Object createObject() throws Exception { MessageDispatch info = new MessageDispatch(); populateObject(info); return info; } protected void populateObject(Object object) throws Exception { super.populateObject(object); MessageDispatch info = (MessageDispatch) object; info.setConsumerId(createConsumerId("ConsumerId:1")); info.setDestination(createActiveMQDestination("Destination:2")); info.setMessage(createMessage("Message:3")); info.setRedeliveryCounter(1); } } \ No newline at end of file +/** + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.apache.activemq.openwire.v8; + +import java.io.DataInputStream; +import java.io.DataOutputStream; +import java.io.IOException; + +import org.apache.activemq.openwire.*; +import org.apache.activemq.command.*; + + +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; +/** + * Test case for the OpenWire marshalling for MessageDispatch + * + * + * NOTE!: This file is auto generated - do not modify! + * if you need to make a change, please see the modify the groovy scripts in the + * under src/gram/script and then use maven openwire:generate to regenerate + * this file. + * + * + */ +@Category(ParallelTest.class) + +public class MessageDispatchTest extends BaseCommandTestSupport { + + + public static MessageDispatchTest SINGLETON = new MessageDispatchTest(); + + public Object createObject() throws Exception { + MessageDispatch info = new MessageDispatch(); + populateObject(info); + return info; + } + + protected void populateObject(Object object) throws Exception { + super.populateObject(object); + MessageDispatch info = (MessageDispatch) object; + + info.setConsumerId(createConsumerId("ConsumerId:1")); + info.setDestination(createActiveMQDestination("Destination:2")); + info.setMessage(createMessage("Message:3")); + info.setRedeliveryCounter(1); + } +} diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v8/MessageIdTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v8/MessageIdTest.java index 5be4923064c..ebda1028b1a 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v8/MessageIdTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v8/MessageIdTest.java @@ -1 +1,62 @@ -/** * * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.activemq.openwire.v8; import java.io.DataInputStream; import java.io.DataOutputStream; import java.io.IOException; import org.apache.activemq.openwire.*; import org.apache.activemq.command.*; /** * Test case for the OpenWire marshalling for MessageId * * * NOTE!: This file is auto generated - do not modify! * if you need to make a change, please see the modify the groovy scripts in the * under src/gram/script and then use maven openwire:generate to regenerate * this file. * * */ public class MessageIdTest extends DataFileGeneratorTestSupport { public static MessageIdTest SINGLETON = new MessageIdTest(); public Object createObject() throws Exception { MessageId info = new MessageId(); populateObject(info); return info; } protected void populateObject(Object object) throws Exception { super.populateObject(object); MessageId info = (MessageId) object; info.setProducerId(createProducerId("ProducerId:1")); info.setProducerSequenceId(1); info.setBrokerSequenceId(2); } } \ No newline at end of file +/** + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.apache.activemq.openwire.v8; + +import java.io.DataInputStream; +import java.io.DataOutputStream; +import java.io.IOException; + +import org.apache.activemq.openwire.*; +import org.apache.activemq.command.*; + + +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; +/** + * Test case for the OpenWire marshalling for MessageId + * + * + * NOTE!: This file is auto generated - do not modify! + * if you need to make a change, please see the modify the groovy scripts in the + * under src/gram/script and then use maven openwire:generate to regenerate + * this file. + * + * + */ +@Category(ParallelTest.class) + +public class MessageIdTest extends DataFileGeneratorTestSupport { + + + public static MessageIdTest SINGLETON = new MessageIdTest(); + + public Object createObject() throws Exception { + MessageId info = new MessageId(); + populateObject(info); + return info; + } + + protected void populateObject(Object object) throws Exception { + super.populateObject(object); + MessageId info = (MessageId) object; + + info.setProducerId(createProducerId("ProducerId:1")); + info.setProducerSequenceId(1); + info.setBrokerSequenceId(2); + } +} diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v8/MessagePullTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v8/MessagePullTest.java index 142224f665f..3a0a6295f6b 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v8/MessagePullTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v8/MessagePullTest.java @@ -1 +1,64 @@ -/** * * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.activemq.openwire.v8; import java.io.DataInputStream; import java.io.DataOutputStream; import java.io.IOException; import org.apache.activemq.openwire.*; import org.apache.activemq.command.*; /** * Test case for the OpenWire marshalling for MessagePull * * * NOTE!: This file is auto generated - do not modify! * if you need to make a change, please see the modify the groovy scripts in the * under src/gram/script and then use maven openwire:generate to regenerate * this file. * * */ public class MessagePullTest extends BaseCommandTestSupport { public static MessagePullTest SINGLETON = new MessagePullTest(); public Object createObject() throws Exception { MessagePull info = new MessagePull(); populateObject(info); return info; } protected void populateObject(Object object) throws Exception { super.populateObject(object); MessagePull info = (MessagePull) object; info.setConsumerId(createConsumerId("ConsumerId:1")); info.setDestination(createActiveMQDestination("Destination:2")); info.setTimeout(1); info.setCorrelationId("CorrelationId:3"); info.setMessageId(createMessageId("MessageId:4")); } } \ No newline at end of file +/** + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.apache.activemq.openwire.v8; + +import java.io.DataInputStream; +import java.io.DataOutputStream; +import java.io.IOException; + +import org.apache.activemq.openwire.*; +import org.apache.activemq.command.*; + + +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; +/** + * Test case for the OpenWire marshalling for MessagePull + * + * + * NOTE!: This file is auto generated - do not modify! + * if you need to make a change, please see the modify the groovy scripts in the + * under src/gram/script and then use maven openwire:generate to regenerate + * this file. + * + * + */ +@Category(ParallelTest.class) + +public class MessagePullTest extends BaseCommandTestSupport { + + + public static MessagePullTest SINGLETON = new MessagePullTest(); + + public Object createObject() throws Exception { + MessagePull info = new MessagePull(); + populateObject(info); + return info; + } + + protected void populateObject(Object object) throws Exception { + super.populateObject(object); + MessagePull info = (MessagePull) object; + + info.setConsumerId(createConsumerId("ConsumerId:1")); + info.setDestination(createActiveMQDestination("Destination:2")); + info.setTimeout(1); + info.setCorrelationId("CorrelationId:3"); + info.setMessageId(createMessageId("MessageId:4")); + } +} diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v8/MessageTestSupport.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v8/MessageTestSupport.java index 0e3b269b504..866987500e1 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v8/MessageTestSupport.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v8/MessageTestSupport.java @@ -1 +1,89 @@ -/** * * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.activemq.openwire.v8; import org.apache.activemq.command.*; /** * Test case for the OpenWire marshalling for Message * * * NOTE!: This file is auto generated - do not modify! * if you need to make a change, please see the modify the groovy scripts in the * under src/gram/script and then use maven openwire:generate to regenerate * this file. * * */ public abstract class MessageTestSupport extends BaseCommandTestSupport { protected void populateObject(Object object) throws Exception { super.populateObject(object); Message info = (Message) object; info.setProducerId(createProducerId("ProducerId:1")); info.setDestination(createActiveMQDestination("Destination:2")); info.setTransactionId(createTransactionId("TransactionId:3")); info.setOriginalDestination(createActiveMQDestination("OriginalDestination:4")); info.setMessageId(createMessageId("MessageId:5")); info.setOriginalTransactionId(createTransactionId("OriginalTransactionId:6")); info.setGroupID("GroupID:7"); info.setGroupSequence(1); info.setCorrelationId("CorrelationId:8"); info.setPersistent(true); info.setExpiration(1); info.setPriority((byte) 1); info.setReplyTo(createActiveMQDestination("ReplyTo:9")); info.setTimestamp(2); info.setType("Type:10"); { byte data[] = "Content:11".getBytes(); info.setContent(new org.apache.activemq.util.ByteSequence(data,0,data.length)); } { byte data[] = "MarshalledProperties:12".getBytes(); info.setMarshalledProperties(new org.apache.activemq.util.ByteSequence(data,0,data.length)); } info.setDataStructure(createDataStructure("DataStructure:13")); info.setTargetConsumerId(createConsumerId("TargetConsumerId:14")); info.setCompressed(false); info.setRedeliveryCounter(2); { BrokerId value[] = new BrokerId[2]; for( int i=0; i < 2; i++ ) { value[i] = createBrokerId("BrokerPath:15"); } info.setBrokerPath(value); } info.setArrival(3); info.setUserID("UserID:16"); info.setRecievedByDFBridge(true); info.setDroppable(false); { BrokerId value[] = new BrokerId[2]; for( int i=0; i < 2; i++ ) { value[i] = createBrokerId("Cluster:17"); } info.setCluster(value); } info.setBrokerInTime(4); info.setBrokerOutTime(5); } } \ No newline at end of file +/** + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.apache.activemq.openwire.v8; + +import org.apache.activemq.command.*; +/** + * Test case for the OpenWire marshalling for Message + * + * + * NOTE!: This file is auto generated - do not modify! + * if you need to make a change, please see the modify the groovy scripts in the + * under src/gram/script and then use maven openwire:generate to regenerate + * this file. + * + * + */ + + +public abstract class MessageTestSupport extends BaseCommandTestSupport { + + + protected void populateObject(Object object) throws Exception { + super.populateObject(object); + Message info = (Message) object; + + info.setProducerId(createProducerId("ProducerId:1")); + info.setDestination(createActiveMQDestination("Destination:2")); + info.setTransactionId(createTransactionId("TransactionId:3")); + info.setOriginalDestination(createActiveMQDestination("OriginalDestination:4")); + info.setMessageId(createMessageId("MessageId:5")); + info.setOriginalTransactionId(createTransactionId("OriginalTransactionId:6")); + info.setGroupID("GroupID:7"); + info.setGroupSequence(1); + info.setCorrelationId("CorrelationId:8"); + info.setPersistent(true); + info.setExpiration(1); + info.setPriority((byte) 1); + info.setReplyTo(createActiveMQDestination("ReplyTo:9")); + info.setTimestamp(2); + info.setType("Type:10"); + { + byte data[] = "Content:11".getBytes(); + info.setContent(new org.apache.activemq.util.ByteSequence(data,0,data.length)); +} + { + byte data[] = "MarshalledProperties:12".getBytes(); + info.setMarshalledProperties(new org.apache.activemq.util.ByteSequence(data,0,data.length)); +} + info.setDataStructure(createDataStructure("DataStructure:13")); + info.setTargetConsumerId(createConsumerId("TargetConsumerId:14")); + info.setCompressed(false); + info.setRedeliveryCounter(2); + { + BrokerId value[] = new BrokerId[2]; + for( int i=0; i < 2; i++ ) { + value[i] = createBrokerId("BrokerPath:15"); + } + info.setBrokerPath(value); + } + info.setArrival(3); + info.setUserID("UserID:16"); + info.setRecievedByDFBridge(true); + info.setDroppable(false); + { + BrokerId value[] = new BrokerId[2]; + for( int i=0; i < 2; i++ ) { + value[i] = createBrokerId("Cluster:17"); + } + info.setCluster(value); + } + info.setBrokerInTime(4); + info.setBrokerOutTime(5); + } +} diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v8/NetworkBridgeFilterTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v8/NetworkBridgeFilterTest.java index 34d851b45a9..0208d6dd87e 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v8/NetworkBridgeFilterTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v8/NetworkBridgeFilterTest.java @@ -1 +1,61 @@ -/** * * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.activemq.openwire.v8; import java.io.DataInputStream; import java.io.DataOutputStream; import java.io.IOException; import org.apache.activemq.openwire.*; import org.apache.activemq.command.*; /** * Test case for the OpenWire marshalling for NetworkBridgeFilter * * * NOTE!: This file is auto generated - do not modify! * if you need to make a change, please see the modify the groovy scripts in the * under src/gram/script and then use maven openwire:generate to regenerate * this file. * * */ public class NetworkBridgeFilterTest extends DataFileGeneratorTestSupport { public static NetworkBridgeFilterTest SINGLETON = new NetworkBridgeFilterTest(); public Object createObject() throws Exception { NetworkBridgeFilter info = new NetworkBridgeFilter(); populateObject(info); return info; } protected void populateObject(Object object) throws Exception { super.populateObject(object); NetworkBridgeFilter info = (NetworkBridgeFilter) object; info.setNetworkTTL(1); info.setNetworkBrokerId(createBrokerId("NetworkBrokerId:1")); } } \ No newline at end of file +/** + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.apache.activemq.openwire.v8; + +import java.io.DataInputStream; +import java.io.DataOutputStream; +import java.io.IOException; + +import org.apache.activemq.openwire.*; +import org.apache.activemq.command.*; + + +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; +/** + * Test case for the OpenWire marshalling for NetworkBridgeFilter + * + * + * NOTE!: This file is auto generated - do not modify! + * if you need to make a change, please see the modify the groovy scripts in the + * under src/gram/script and then use maven openwire:generate to regenerate + * this file. + * + * + */ +@Category(ParallelTest.class) + +public class NetworkBridgeFilterTest extends DataFileGeneratorTestSupport { + + + public static NetworkBridgeFilterTest SINGLETON = new NetworkBridgeFilterTest(); + + public Object createObject() throws Exception { + NetworkBridgeFilter info = new NetworkBridgeFilter(); + populateObject(info); + return info; + } + + protected void populateObject(Object object) throws Exception { + super.populateObject(object); + NetworkBridgeFilter info = (NetworkBridgeFilter) object; + + info.setNetworkTTL(1); + info.setNetworkBrokerId(createBrokerId("NetworkBrokerId:1")); + } +} diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v8/PartialCommandTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v8/PartialCommandTest.java index 30a22f8dba4..dd9870614fd 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v8/PartialCommandTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v8/PartialCommandTest.java @@ -1 +1,61 @@ -/** * * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.activemq.openwire.v8; import java.io.DataInputStream; import java.io.DataOutputStream; import java.io.IOException; import org.apache.activemq.openwire.*; import org.apache.activemq.command.*; /** * Test case for the OpenWire marshalling for PartialCommand * * * NOTE!: This file is auto generated - do not modify! * if you need to make a change, please see the modify the groovy scripts in the * under src/gram/script and then use maven openwire:generate to regenerate * this file. * * */ public class PartialCommandTest extends DataFileGeneratorTestSupport { public static PartialCommandTest SINGLETON = new PartialCommandTest(); public Object createObject() throws Exception { PartialCommand info = new PartialCommand(); populateObject(info); return info; } protected void populateObject(Object object) throws Exception { super.populateObject(object); PartialCommand info = (PartialCommand) object; info.setCommandId(1); info.setData("Data:1".getBytes()); } } \ No newline at end of file +/** + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.apache.activemq.openwire.v8; + +import java.io.DataInputStream; +import java.io.DataOutputStream; +import java.io.IOException; + +import org.apache.activemq.openwire.*; +import org.apache.activemq.command.*; + + +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; +/** + * Test case for the OpenWire marshalling for PartialCommand + * + * + * NOTE!: This file is auto generated - do not modify! + * if you need to make a change, please see the modify the groovy scripts in the + * under src/gram/script and then use maven openwire:generate to regenerate + * this file. + * + * + */ +@Category(ParallelTest.class) + +public class PartialCommandTest extends DataFileGeneratorTestSupport { + + + public static PartialCommandTest SINGLETON = new PartialCommandTest(); + + public Object createObject() throws Exception { + PartialCommand info = new PartialCommand(); + populateObject(info); + return info; + } + + protected void populateObject(Object object) throws Exception { + super.populateObject(object); + PartialCommand info = (PartialCommand) object; + + info.setCommandId(1); + info.setData("Data:1".getBytes()); + } +} diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v8/ProducerAckTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v8/ProducerAckTest.java index d1296311e89..8e5ab5a6681 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v8/ProducerAckTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v8/ProducerAckTest.java @@ -1 +1,61 @@ -/** * * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.activemq.openwire.v8; import java.io.DataInputStream; import java.io.DataOutputStream; import java.io.IOException; import org.apache.activemq.openwire.*; import org.apache.activemq.command.*; /** * Test case for the OpenWire marshalling for ProducerAck * * * NOTE!: This file is auto generated - do not modify! * if you need to make a change, please see the modify the groovy scripts in the * under src/gram/script and then use maven openwire:generate to regenerate * this file. * * */ public class ProducerAckTest extends BaseCommandTestSupport { public static ProducerAckTest SINGLETON = new ProducerAckTest(); public Object createObject() throws Exception { ProducerAck info = new ProducerAck(); populateObject(info); return info; } protected void populateObject(Object object) throws Exception { super.populateObject(object); ProducerAck info = (ProducerAck) object; info.setProducerId(createProducerId("ProducerId:1")); info.setSize(1); } } \ No newline at end of file +/** + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.apache.activemq.openwire.v8; + +import java.io.DataInputStream; +import java.io.DataOutputStream; +import java.io.IOException; + +import org.apache.activemq.openwire.*; +import org.apache.activemq.command.*; + + +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; +/** + * Test case for the OpenWire marshalling for ProducerAck + * + * + * NOTE!: This file is auto generated - do not modify! + * if you need to make a change, please see the modify the groovy scripts in the + * under src/gram/script and then use maven openwire:generate to regenerate + * this file. + * + * + */ +@Category(ParallelTest.class) + +public class ProducerAckTest extends BaseCommandTestSupport { + + + public static ProducerAckTest SINGLETON = new ProducerAckTest(); + + public Object createObject() throws Exception { + ProducerAck info = new ProducerAck(); + populateObject(info); + return info; + } + + protected void populateObject(Object object) throws Exception { + super.populateObject(object); + ProducerAck info = (ProducerAck) object; + + info.setProducerId(createProducerId("ProducerId:1")); + info.setSize(1); + } +} diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v8/ProducerIdTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v8/ProducerIdTest.java index d61330bdb76..07f76cd15e8 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v8/ProducerIdTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v8/ProducerIdTest.java @@ -1 +1,62 @@ -/** * * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.activemq.openwire.v8; import java.io.DataInputStream; import java.io.DataOutputStream; import java.io.IOException; import org.apache.activemq.openwire.*; import org.apache.activemq.command.*; /** * Test case for the OpenWire marshalling for ProducerId * * * NOTE!: This file is auto generated - do not modify! * if you need to make a change, please see the modify the groovy scripts in the * under src/gram/script and then use maven openwire:generate to regenerate * this file. * * */ public class ProducerIdTest extends DataFileGeneratorTestSupport { public static ProducerIdTest SINGLETON = new ProducerIdTest(); public Object createObject() throws Exception { ProducerId info = new ProducerId(); populateObject(info); return info; } protected void populateObject(Object object) throws Exception { super.populateObject(object); ProducerId info = (ProducerId) object; info.setConnectionId("ConnectionId:1"); info.setValue(1); info.setSessionId(2); } } \ No newline at end of file +/** + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.apache.activemq.openwire.v8; + +import java.io.DataInputStream; +import java.io.DataOutputStream; +import java.io.IOException; + +import org.apache.activemq.openwire.*; +import org.apache.activemq.command.*; + + +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; +/** + * Test case for the OpenWire marshalling for ProducerId + * + * + * NOTE!: This file is auto generated - do not modify! + * if you need to make a change, please see the modify the groovy scripts in the + * under src/gram/script and then use maven openwire:generate to regenerate + * this file. + * + * + */ +@Category(ParallelTest.class) + +public class ProducerIdTest extends DataFileGeneratorTestSupport { + + + public static ProducerIdTest SINGLETON = new ProducerIdTest(); + + public Object createObject() throws Exception { + ProducerId info = new ProducerId(); + populateObject(info); + return info; + } + + protected void populateObject(Object object) throws Exception { + super.populateObject(object); + ProducerId info = (ProducerId) object; + + info.setConnectionId("ConnectionId:1"); + info.setValue(1); + info.setSessionId(2); + } +} diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v8/ProducerInfoTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v8/ProducerInfoTest.java index ba576c3468b..20070b94245 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v8/ProducerInfoTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v8/ProducerInfoTest.java @@ -1 +1,70 @@ -/** * * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.activemq.openwire.v8; import java.io.DataInputStream; import java.io.DataOutputStream; import java.io.IOException; import org.apache.activemq.openwire.*; import org.apache.activemq.command.*; /** * Test case for the OpenWire marshalling for ProducerInfo * * * NOTE!: This file is auto generated - do not modify! * if you need to make a change, please see the modify the groovy scripts in the * under src/gram/script and then use maven openwire:generate to regenerate * this file. * * */ public class ProducerInfoTest extends BaseCommandTestSupport { public static ProducerInfoTest SINGLETON = new ProducerInfoTest(); public Object createObject() throws Exception { ProducerInfo info = new ProducerInfo(); populateObject(info); return info; } protected void populateObject(Object object) throws Exception { super.populateObject(object); ProducerInfo info = (ProducerInfo) object; info.setProducerId(createProducerId("ProducerId:1")); info.setDestination(createActiveMQDestination("Destination:2")); { BrokerId value[] = new BrokerId[2]; for( int i=0; i < 2; i++ ) { value[i] = createBrokerId("BrokerPath:3"); } info.setBrokerPath(value); } info.setDispatchAsync(true); info.setWindowSize(1); } } \ No newline at end of file +/** + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.apache.activemq.openwire.v8; + +import java.io.DataInputStream; +import java.io.DataOutputStream; +import java.io.IOException; + +import org.apache.activemq.openwire.*; +import org.apache.activemq.command.*; + + +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; +/** + * Test case for the OpenWire marshalling for ProducerInfo + * + * + * NOTE!: This file is auto generated - do not modify! + * if you need to make a change, please see the modify the groovy scripts in the + * under src/gram/script and then use maven openwire:generate to regenerate + * this file. + * + * + */ +@Category(ParallelTest.class) + +public class ProducerInfoTest extends BaseCommandTestSupport { + + + public static ProducerInfoTest SINGLETON = new ProducerInfoTest(); + + public Object createObject() throws Exception { + ProducerInfo info = new ProducerInfo(); + populateObject(info); + return info; + } + + protected void populateObject(Object object) throws Exception { + super.populateObject(object); + ProducerInfo info = (ProducerInfo) object; + + info.setProducerId(createProducerId("ProducerId:1")); + info.setDestination(createActiveMQDestination("Destination:2")); + { + BrokerId value[] = new BrokerId[2]; + for( int i=0; i < 2; i++ ) { + value[i] = createBrokerId("BrokerPath:3"); + } + info.setBrokerPath(value); + } + info.setDispatchAsync(true); + info.setWindowSize(1); + } +} diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v8/RemoveInfoTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v8/RemoveInfoTest.java index 0d5d5da9e65..07aab6dd4ee 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v8/RemoveInfoTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v8/RemoveInfoTest.java @@ -1 +1,61 @@ -/** * * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.activemq.openwire.v8; import java.io.DataInputStream; import java.io.DataOutputStream; import java.io.IOException; import org.apache.activemq.openwire.*; import org.apache.activemq.command.*; /** * Test case for the OpenWire marshalling for RemoveInfo * * * NOTE!: This file is auto generated - do not modify! * if you need to make a change, please see the modify the groovy scripts in the * under src/gram/script and then use maven openwire:generate to regenerate * this file. * * */ public class RemoveInfoTest extends BaseCommandTestSupport { public static RemoveInfoTest SINGLETON = new RemoveInfoTest(); public Object createObject() throws Exception { RemoveInfo info = new RemoveInfo(); populateObject(info); return info; } protected void populateObject(Object object) throws Exception { super.populateObject(object); RemoveInfo info = (RemoveInfo) object; info.setObjectId(createDataStructure("ObjectId:1")); info.setLastDeliveredSequenceId(1); } } \ No newline at end of file +/** + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.apache.activemq.openwire.v8; + +import java.io.DataInputStream; +import java.io.DataOutputStream; +import java.io.IOException; + +import org.apache.activemq.openwire.*; +import org.apache.activemq.command.*; + + +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; +/** + * Test case for the OpenWire marshalling for RemoveInfo + * + * + * NOTE!: This file is auto generated - do not modify! + * if you need to make a change, please see the modify the groovy scripts in the + * under src/gram/script and then use maven openwire:generate to regenerate + * this file. + * + * + */ +@Category(ParallelTest.class) + +public class RemoveInfoTest extends BaseCommandTestSupport { + + + public static RemoveInfoTest SINGLETON = new RemoveInfoTest(); + + public Object createObject() throws Exception { + RemoveInfo info = new RemoveInfo(); + populateObject(info); + return info; + } + + protected void populateObject(Object object) throws Exception { + super.populateObject(object); + RemoveInfo info = (RemoveInfo) object; + + info.setObjectId(createDataStructure("ObjectId:1")); + info.setLastDeliveredSequenceId(1); + } +} diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v8/RemoveSubscriptionInfoTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v8/RemoveSubscriptionInfoTest.java index 9120790bc30..10cb6255c2b 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v8/RemoveSubscriptionInfoTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v8/RemoveSubscriptionInfoTest.java @@ -1 +1,62 @@ -/** * * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.activemq.openwire.v8; import java.io.DataInputStream; import java.io.DataOutputStream; import java.io.IOException; import org.apache.activemq.openwire.*; import org.apache.activemq.command.*; /** * Test case for the OpenWire marshalling for RemoveSubscriptionInfo * * * NOTE!: This file is auto generated - do not modify! * if you need to make a change, please see the modify the groovy scripts in the * under src/gram/script and then use maven openwire:generate to regenerate * this file. * * */ public class RemoveSubscriptionInfoTest extends BaseCommandTestSupport { public static RemoveSubscriptionInfoTest SINGLETON = new RemoveSubscriptionInfoTest(); public Object createObject() throws Exception { RemoveSubscriptionInfo info = new RemoveSubscriptionInfo(); populateObject(info); return info; } protected void populateObject(Object object) throws Exception { super.populateObject(object); RemoveSubscriptionInfo info = (RemoveSubscriptionInfo) object; info.setConnectionId(createConnectionId("ConnectionId:1")); info.setSubcriptionName("SubcriptionName:2"); info.setClientId("ClientId:3"); } } \ No newline at end of file +/** + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.apache.activemq.openwire.v8; + +import java.io.DataInputStream; +import java.io.DataOutputStream; +import java.io.IOException; + +import org.apache.activemq.openwire.*; +import org.apache.activemq.command.*; + + +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; +/** + * Test case for the OpenWire marshalling for RemoveSubscriptionInfo + * + * + * NOTE!: This file is auto generated - do not modify! + * if you need to make a change, please see the modify the groovy scripts in the + * under src/gram/script and then use maven openwire:generate to regenerate + * this file. + * + * + */ +@Category(ParallelTest.class) + +public class RemoveSubscriptionInfoTest extends BaseCommandTestSupport { + + + public static RemoveSubscriptionInfoTest SINGLETON = new RemoveSubscriptionInfoTest(); + + public Object createObject() throws Exception { + RemoveSubscriptionInfo info = new RemoveSubscriptionInfo(); + populateObject(info); + return info; + } + + protected void populateObject(Object object) throws Exception { + super.populateObject(object); + RemoveSubscriptionInfo info = (RemoveSubscriptionInfo) object; + + info.setConnectionId(createConnectionId("ConnectionId:1")); + info.setSubcriptionName("SubcriptionName:2"); + info.setClientId("ClientId:3"); + } +} diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v8/ReplayCommandTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v8/ReplayCommandTest.java index 558edf77d57..98f81f1294b 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v8/ReplayCommandTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v8/ReplayCommandTest.java @@ -1 +1,61 @@ -/** * * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.activemq.openwire.v8; import java.io.DataInputStream; import java.io.DataOutputStream; import java.io.IOException; import org.apache.activemq.openwire.*; import org.apache.activemq.command.*; /** * Test case for the OpenWire marshalling for ReplayCommand * * * NOTE!: This file is auto generated - do not modify! * if you need to make a change, please see the modify the groovy scripts in the * under src/gram/script and then use maven openwire:generate to regenerate * this file. * * */ public class ReplayCommandTest extends BaseCommandTestSupport { public static ReplayCommandTest SINGLETON = new ReplayCommandTest(); public Object createObject() throws Exception { ReplayCommand info = new ReplayCommand(); populateObject(info); return info; } protected void populateObject(Object object) throws Exception { super.populateObject(object); ReplayCommand info = (ReplayCommand) object; info.setFirstNakNumber(1); info.setLastNakNumber(2); } } \ No newline at end of file +/** + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.apache.activemq.openwire.v8; + +import java.io.DataInputStream; +import java.io.DataOutputStream; +import java.io.IOException; + +import org.apache.activemq.openwire.*; +import org.apache.activemq.command.*; + + +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; +/** + * Test case for the OpenWire marshalling for ReplayCommand + * + * + * NOTE!: This file is auto generated - do not modify! + * if you need to make a change, please see the modify the groovy scripts in the + * under src/gram/script and then use maven openwire:generate to regenerate + * this file. + * + * + */ +@Category(ParallelTest.class) + +public class ReplayCommandTest extends BaseCommandTestSupport { + + + public static ReplayCommandTest SINGLETON = new ReplayCommandTest(); + + public Object createObject() throws Exception { + ReplayCommand info = new ReplayCommand(); + populateObject(info); + return info; + } + + protected void populateObject(Object object) throws Exception { + super.populateObject(object); + ReplayCommand info = (ReplayCommand) object; + + info.setFirstNakNumber(1); + info.setLastNakNumber(2); + } +} diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v8/ResponseTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v8/ResponseTest.java index 9a46fa0e188..cf65016f3ee 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v8/ResponseTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v8/ResponseTest.java @@ -1 +1,60 @@ -/** * * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.activemq.openwire.v8; import java.io.DataInputStream; import java.io.DataOutputStream; import java.io.IOException; import org.apache.activemq.openwire.*; import org.apache.activemq.command.*; /** * Test case for the OpenWire marshalling for Response * * * NOTE!: This file is auto generated - do not modify! * if you need to make a change, please see the modify the groovy scripts in the * under src/gram/script and then use maven openwire:generate to regenerate * this file. * * */ public class ResponseTest extends BaseCommandTestSupport { public static ResponseTest SINGLETON = new ResponseTest(); public Object createObject() throws Exception { Response info = new Response(); populateObject(info); return info; } protected void populateObject(Object object) throws Exception { super.populateObject(object); Response info = (Response) object; info.setCorrelationId(1); } } \ No newline at end of file +/** + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.apache.activemq.openwire.v8; + +import java.io.DataInputStream; +import java.io.DataOutputStream; +import java.io.IOException; + +import org.apache.activemq.openwire.*; +import org.apache.activemq.command.*; + + +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; +/** + * Test case for the OpenWire marshalling for Response + * + * + * NOTE!: This file is auto generated - do not modify! + * if you need to make a change, please see the modify the groovy scripts in the + * under src/gram/script and then use maven openwire:generate to regenerate + * this file. + * + * + */ +@Category(ParallelTest.class) + +public class ResponseTest extends BaseCommandTestSupport { + + + public static ResponseTest SINGLETON = new ResponseTest(); + + public Object createObject() throws Exception { + Response info = new Response(); + populateObject(info); + return info; + } + + protected void populateObject(Object object) throws Exception { + super.populateObject(object); + Response info = (Response) object; + + info.setCorrelationId(1); + } +} diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v8/SessionIdTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v8/SessionIdTest.java index ed13b5f0f02..c98129e2f7e 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v8/SessionIdTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v8/SessionIdTest.java @@ -1 +1,61 @@ -/** * * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.activemq.openwire.v8; import java.io.DataInputStream; import java.io.DataOutputStream; import java.io.IOException; import org.apache.activemq.openwire.*; import org.apache.activemq.command.*; /** * Test case for the OpenWire marshalling for SessionId * * * NOTE!: This file is auto generated - do not modify! * if you need to make a change, please see the modify the groovy scripts in the * under src/gram/script and then use maven openwire:generate to regenerate * this file. * * */ public class SessionIdTest extends DataFileGeneratorTestSupport { public static SessionIdTest SINGLETON = new SessionIdTest(); public Object createObject() throws Exception { SessionId info = new SessionId(); populateObject(info); return info; } protected void populateObject(Object object) throws Exception { super.populateObject(object); SessionId info = (SessionId) object; info.setConnectionId("ConnectionId:1"); info.setValue(1); } } \ No newline at end of file +/** + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.apache.activemq.openwire.v8; + +import java.io.DataInputStream; +import java.io.DataOutputStream; +import java.io.IOException; + +import org.apache.activemq.openwire.*; +import org.apache.activemq.command.*; + + +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; +/** + * Test case for the OpenWire marshalling for SessionId + * + * + * NOTE!: This file is auto generated - do not modify! + * if you need to make a change, please see the modify the groovy scripts in the + * under src/gram/script and then use maven openwire:generate to regenerate + * this file. + * + * + */ +@Category(ParallelTest.class) + +public class SessionIdTest extends DataFileGeneratorTestSupport { + + + public static SessionIdTest SINGLETON = new SessionIdTest(); + + public Object createObject() throws Exception { + SessionId info = new SessionId(); + populateObject(info); + return info; + } + + protected void populateObject(Object object) throws Exception { + super.populateObject(object); + SessionId info = (SessionId) object; + + info.setConnectionId("ConnectionId:1"); + info.setValue(1); + } +} diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v8/SessionInfoTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v8/SessionInfoTest.java index 292e0efe666..9563e2037eb 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v8/SessionInfoTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v8/SessionInfoTest.java @@ -1 +1,60 @@ -/** * * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.activemq.openwire.v8; import java.io.DataInputStream; import java.io.DataOutputStream; import java.io.IOException; import org.apache.activemq.openwire.*; import org.apache.activemq.command.*; /** * Test case for the OpenWire marshalling for SessionInfo * * * NOTE!: This file is auto generated - do not modify! * if you need to make a change, please see the modify the groovy scripts in the * under src/gram/script and then use maven openwire:generate to regenerate * this file. * * */ public class SessionInfoTest extends BaseCommandTestSupport { public static SessionInfoTest SINGLETON = new SessionInfoTest(); public Object createObject() throws Exception { SessionInfo info = new SessionInfo(); populateObject(info); return info; } protected void populateObject(Object object) throws Exception { super.populateObject(object); SessionInfo info = (SessionInfo) object; info.setSessionId(createSessionId("SessionId:1")); } } \ No newline at end of file +/** + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.apache.activemq.openwire.v8; + +import java.io.DataInputStream; +import java.io.DataOutputStream; +import java.io.IOException; + +import org.apache.activemq.openwire.*; +import org.apache.activemq.command.*; + + +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; +/** + * Test case for the OpenWire marshalling for SessionInfo + * + * + * NOTE!: This file is auto generated - do not modify! + * if you need to make a change, please see the modify the groovy scripts in the + * under src/gram/script and then use maven openwire:generate to regenerate + * this file. + * + * + */ +@Category(ParallelTest.class) + +public class SessionInfoTest extends BaseCommandTestSupport { + + + public static SessionInfoTest SINGLETON = new SessionInfoTest(); + + public Object createObject() throws Exception { + SessionInfo info = new SessionInfo(); + populateObject(info); + return info; + } + + protected void populateObject(Object object) throws Exception { + super.populateObject(object); + SessionInfo info = (SessionInfo) object; + + info.setSessionId(createSessionId("SessionId:1")); + } +} diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v8/ShutdownInfoTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v8/ShutdownInfoTest.java index 3bc212fa84d..f9cbf4adaba 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v8/ShutdownInfoTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v8/ShutdownInfoTest.java @@ -1 +1,59 @@ -/** * * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.activemq.openwire.v8; import java.io.DataInputStream; import java.io.DataOutputStream; import java.io.IOException; import org.apache.activemq.openwire.*; import org.apache.activemq.command.*; /** * Test case for the OpenWire marshalling for ShutdownInfo * * * NOTE!: This file is auto generated - do not modify! * if you need to make a change, please see the modify the groovy scripts in the * under src/gram/script and then use maven openwire:generate to regenerate * this file. * * */ public class ShutdownInfoTest extends BaseCommandTestSupport { public static ShutdownInfoTest SINGLETON = new ShutdownInfoTest(); public Object createObject() throws Exception { ShutdownInfo info = new ShutdownInfo(); populateObject(info); return info; } protected void populateObject(Object object) throws Exception { super.populateObject(object); ShutdownInfo info = (ShutdownInfo) object; } } \ No newline at end of file +/** + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.apache.activemq.openwire.v8; + +import java.io.DataInputStream; +import java.io.DataOutputStream; +import java.io.IOException; + +import org.apache.activemq.openwire.*; +import org.apache.activemq.command.*; + + +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; +/** + * Test case for the OpenWire marshalling for ShutdownInfo + * + * + * NOTE!: This file is auto generated - do not modify! + * if you need to make a change, please see the modify the groovy scripts in the + * under src/gram/script and then use maven openwire:generate to regenerate + * this file. + * + * + */ +@Category(ParallelTest.class) + +public class ShutdownInfoTest extends BaseCommandTestSupport { + + + public static ShutdownInfoTest SINGLETON = new ShutdownInfoTest(); + + public Object createObject() throws Exception { + ShutdownInfo info = new ShutdownInfo(); + populateObject(info); + return info; + } + + protected void populateObject(Object object) throws Exception { + super.populateObject(object); + ShutdownInfo info = (ShutdownInfo) object; + + } +} diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v8/SubscriptionInfoTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v8/SubscriptionInfoTest.java index a7179cf3467..feb214c683f 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v8/SubscriptionInfoTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v8/SubscriptionInfoTest.java @@ -1 +1,64 @@ -/** * * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.activemq.openwire.v8; import java.io.DataInputStream; import java.io.DataOutputStream; import java.io.IOException; import org.apache.activemq.openwire.*; import org.apache.activemq.command.*; /** * Test case for the OpenWire marshalling for SubscriptionInfo * * * NOTE!: This file is auto generated - do not modify! * if you need to make a change, please see the modify the groovy scripts in the * under src/gram/script and then use maven openwire:generate to regenerate * this file. * * */ public class SubscriptionInfoTest extends DataFileGeneratorTestSupport { public static SubscriptionInfoTest SINGLETON = new SubscriptionInfoTest(); public Object createObject() throws Exception { SubscriptionInfo info = new SubscriptionInfo(); populateObject(info); return info; } protected void populateObject(Object object) throws Exception { super.populateObject(object); SubscriptionInfo info = (SubscriptionInfo) object; info.setClientId("ClientId:1"); info.setDestination(createActiveMQDestination("Destination:2")); info.setSelector("Selector:3"); info.setSubcriptionName("SubcriptionName:4"); info.setSubscribedDestination(createActiveMQDestination("SubscribedDestination:5")); } } \ No newline at end of file +/** + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.apache.activemq.openwire.v8; + +import java.io.DataInputStream; +import java.io.DataOutputStream; +import java.io.IOException; + +import org.apache.activemq.openwire.*; +import org.apache.activemq.command.*; + + +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; +/** + * Test case for the OpenWire marshalling for SubscriptionInfo + * + * + * NOTE!: This file is auto generated - do not modify! + * if you need to make a change, please see the modify the groovy scripts in the + * under src/gram/script and then use maven openwire:generate to regenerate + * this file. + * + * + */ +@Category(ParallelTest.class) + +public class SubscriptionInfoTest extends DataFileGeneratorTestSupport { + + + public static SubscriptionInfoTest SINGLETON = new SubscriptionInfoTest(); + + public Object createObject() throws Exception { + SubscriptionInfo info = new SubscriptionInfo(); + populateObject(info); + return info; + } + + protected void populateObject(Object object) throws Exception { + super.populateObject(object); + SubscriptionInfo info = (SubscriptionInfo) object; + + info.setClientId("ClientId:1"); + info.setDestination(createActiveMQDestination("Destination:2")); + info.setSelector("Selector:3"); + info.setSubcriptionName("SubcriptionName:4"); + info.setSubscribedDestination(createActiveMQDestination("SubscribedDestination:5")); + } +} diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v8/TransactionIdTestSupport.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v8/TransactionIdTestSupport.java index 7781ea367c1..4c83ce7eb4d 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v8/TransactionIdTestSupport.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v8/TransactionIdTestSupport.java @@ -1 +1,47 @@ -/** * * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.activemq.openwire.v8; import java.io.DataInputStream; import java.io.DataOutputStream; import java.io.IOException; import org.apache.activemq.openwire.*; import org.apache.activemq.command.*; /** * Test case for the OpenWire marshalling for TransactionId * * * NOTE!: This file is auto generated - do not modify! * if you need to make a change, please see the modify the groovy scripts in the * under src/gram/script and then use maven openwire:generate to regenerate * this file. * * */ public abstract class TransactionIdTestSupport extends DataFileGeneratorTestSupport { protected void populateObject(Object object) throws Exception { super.populateObject(object); TransactionId info = (TransactionId) object; } } \ No newline at end of file +/** + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.apache.activemq.openwire.v8; + +import java.io.DataInputStream; +import java.io.DataOutputStream; +import java.io.IOException; + +import org.apache.activemq.openwire.*; +import org.apache.activemq.command.*; +/** + * Test case for the OpenWire marshalling for TransactionId + * + * + * NOTE!: This file is auto generated - do not modify! + * if you need to make a change, please see the modify the groovy scripts in the + * under src/gram/script and then use maven openwire:generate to regenerate + * this file. + * + * + */ + + +public abstract class TransactionIdTestSupport extends DataFileGeneratorTestSupport { + + + protected void populateObject(Object object) throws Exception { + super.populateObject(object); + TransactionId info = (TransactionId) object; + + } +} diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v8/TransactionInfoTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v8/TransactionInfoTest.java index 53a11a508d5..76a78861f5b 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v8/TransactionInfoTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v8/TransactionInfoTest.java @@ -1 +1,62 @@ -/** * * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.activemq.openwire.v8; import java.io.DataInputStream; import java.io.DataOutputStream; import java.io.IOException; import org.apache.activemq.openwire.*; import org.apache.activemq.command.*; /** * Test case for the OpenWire marshalling for TransactionInfo * * * NOTE!: This file is auto generated - do not modify! * if you need to make a change, please see the modify the groovy scripts in the * under src/gram/script and then use maven openwire:generate to regenerate * this file. * * */ public class TransactionInfoTest extends BaseCommandTestSupport { public static TransactionInfoTest SINGLETON = new TransactionInfoTest(); public Object createObject() throws Exception { TransactionInfo info = new TransactionInfo(); populateObject(info); return info; } protected void populateObject(Object object) throws Exception { super.populateObject(object); TransactionInfo info = (TransactionInfo) object; info.setConnectionId(createConnectionId("ConnectionId:1")); info.setTransactionId(createTransactionId("TransactionId:2")); info.setType((byte) 1); } } \ No newline at end of file +/** + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.apache.activemq.openwire.v8; + +import java.io.DataInputStream; +import java.io.DataOutputStream; +import java.io.IOException; + +import org.apache.activemq.openwire.*; +import org.apache.activemq.command.*; + + +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; +/** + * Test case for the OpenWire marshalling for TransactionInfo + * + * + * NOTE!: This file is auto generated - do not modify! + * if you need to make a change, please see the modify the groovy scripts in the + * under src/gram/script and then use maven openwire:generate to regenerate + * this file. + * + * + */ +@Category(ParallelTest.class) + +public class TransactionInfoTest extends BaseCommandTestSupport { + + + public static TransactionInfoTest SINGLETON = new TransactionInfoTest(); + + public Object createObject() throws Exception { + TransactionInfo info = new TransactionInfo(); + populateObject(info); + return info; + } + + protected void populateObject(Object object) throws Exception { + super.populateObject(object); + TransactionInfo info = (TransactionInfo) object; + + info.setConnectionId(createConnectionId("ConnectionId:1")); + info.setTransactionId(createTransactionId("TransactionId:2")); + info.setType((byte) 1); + } +} diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v8/XATransactionIdTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v8/XATransactionIdTest.java index 0f7c2ebcee2..cdd6a0edbe8 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v8/XATransactionIdTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v8/XATransactionIdTest.java @@ -1 +1,62 @@ -/** * * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.activemq.openwire.v8; import java.io.DataInputStream; import java.io.DataOutputStream; import java.io.IOException; import org.apache.activemq.openwire.*; import org.apache.activemq.command.*; /** * Test case for the OpenWire marshalling for XATransactionId * * * NOTE!: This file is auto generated - do not modify! * if you need to make a change, please see the modify the groovy scripts in the * under src/gram/script and then use maven openwire:generate to regenerate * this file. * * */ public class XATransactionIdTest extends TransactionIdTestSupport { public static XATransactionIdTest SINGLETON = new XATransactionIdTest(); public Object createObject() throws Exception { XATransactionId info = new XATransactionId(); populateObject(info); return info; } protected void populateObject(Object object) throws Exception { super.populateObject(object); XATransactionId info = (XATransactionId) object; info.setFormatId(1); info.setGlobalTransactionId("GlobalTransactionId:1".getBytes()); info.setBranchQualifier("BranchQualifier:2".getBytes()); } } \ No newline at end of file +/** + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.apache.activemq.openwire.v8; + +import java.io.DataInputStream; +import java.io.DataOutputStream; +import java.io.IOException; + +import org.apache.activemq.openwire.*; +import org.apache.activemq.command.*; + + +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; +/** + * Test case for the OpenWire marshalling for XATransactionId + * + * + * NOTE!: This file is auto generated - do not modify! + * if you need to make a change, please see the modify the groovy scripts in the + * under src/gram/script and then use maven openwire:generate to regenerate + * this file. + * + * + */ +@Category(ParallelTest.class) + +public class XATransactionIdTest extends TransactionIdTestSupport { + + + public static XATransactionIdTest SINGLETON = new XATransactionIdTest(); + + public Object createObject() throws Exception { + XATransactionId info = new XATransactionId(); + populateObject(info); + return info; + } + + protected void populateObject(Object object) throws Exception { + super.populateObject(object); + XATransactionId info = (XATransactionId) object; + + info.setFormatId(1); + info.setGlobalTransactionId("GlobalTransactionId:1".getBytes()); + info.setBranchQualifier("BranchQualifier:2".getBytes()); + } +} diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v9/BaseCommandTestSupport.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v9/BaseCommandTestSupport.java index c11b7f4c91a..cabe4d878bb 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v9/BaseCommandTestSupport.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v9/BaseCommandTestSupport.java @@ -18,7 +18,6 @@ import org.apache.activemq.command.BaseCommand; import org.apache.activemq.openwire.DataFileGeneratorTestSupport; - /** * Test case for the OpenWire marshalling for BaseCommand NOTE!: This file is * auto generated - do not modify! if you need to make a change, please see the @@ -26,6 +25,8 @@ * openwire:generate to regenerate this file. * */ + + public abstract class BaseCommandTestSupport extends DataFileGeneratorTestSupport { protected void populateObject(Object object) throws Exception { diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v9/BrokerIdTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v9/BrokerIdTest.java index 0d53067e80b..086062a1f5c 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v9/BrokerIdTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v9/BrokerIdTest.java @@ -1 +1,60 @@ -/** * * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.activemq.openwire.v9; import java.io.DataInputStream; import java.io.DataOutputStream; import java.io.IOException; import org.apache.activemq.openwire.*; import org.apache.activemq.command.*; /** * Test case for the OpenWire marshalling for BrokerId * * * NOTE!: This file is auto generated - do not modify! * if you need to make a change, please see the modify the groovy scripts in the * under src/gram/script and then use maven openwire:generate to regenerate * this file. * * */ public class BrokerIdTest extends DataFileGeneratorTestSupport { public static BrokerIdTest SINGLETON = new BrokerIdTest(); public Object createObject() throws Exception { BrokerId info = new BrokerId(); populateObject(info); return info; } protected void populateObject(Object object) throws Exception { super.populateObject(object); BrokerId info = (BrokerId) object; info.setValue("Value:1"); } } \ No newline at end of file +/** + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.apache.activemq.openwire.v9; + +import java.io.DataInputStream; +import java.io.DataOutputStream; +import java.io.IOException; + +import org.apache.activemq.openwire.*; +import org.apache.activemq.command.*; + + +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; +/** + * Test case for the OpenWire marshalling for BrokerId + * + * + * NOTE!: This file is auto generated - do not modify! + * if you need to make a change, please see the modify the groovy scripts in the + * under src/gram/script and then use maven openwire:generate to regenerate + * this file. + * + * + */ +@Category(ParallelTest.class) + +public class BrokerIdTest extends DataFileGeneratorTestSupport { + + + public static BrokerIdTest SINGLETON = new BrokerIdTest(); + + public Object createObject() throws Exception { + BrokerId info = new BrokerId(); + populateObject(info); + return info; + } + + protected void populateObject(Object object) throws Exception { + super.populateObject(object); + BrokerId info = (BrokerId) object; + + info.setValue("Value:1"); + } +} diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v9/BrokerInfoTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v9/BrokerInfoTest.java index b0d96589223..f1b3b9219e4 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v9/BrokerInfoTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v9/BrokerInfoTest.java @@ -1 +1,77 @@ -/** * * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.activemq.openwire.v9; import java.io.DataInputStream; import java.io.DataOutputStream; import java.io.IOException; import org.apache.activemq.openwire.*; import org.apache.activemq.command.*; /** * Test case for the OpenWire marshalling for BrokerInfo * * * NOTE!: This file is auto generated - do not modify! * if you need to make a change, please see the modify the groovy scripts in the * under src/gram/script and then use maven openwire:generate to regenerate * this file. * * */ public class BrokerInfoTest extends BaseCommandTestSupport { public static BrokerInfoTest SINGLETON = new BrokerInfoTest(); public Object createObject() throws Exception { BrokerInfo info = new BrokerInfo(); populateObject(info); return info; } protected void populateObject(Object object) throws Exception { super.populateObject(object); BrokerInfo info = (BrokerInfo) object; info.setBrokerId(createBrokerId("BrokerId:1")); info.setBrokerURL("BrokerURL:2"); { BrokerInfo value[] = new BrokerInfo[0]; for( int i=0; i < 0; i++ ) { value[i] = createBrokerInfo("PeerBrokerInfos:3"); } info.setPeerBrokerInfos(value); } info.setBrokerName("BrokerName:4"); info.setSlaveBroker(true); info.setMasterBroker(false); info.setFaultTolerantConfiguration(true); info.setDuplexConnection(false); info.setNetworkConnection(true); info.setConnectionId(1); info.setBrokerUploadUrl("BrokerUploadUrl:5"); info.setNetworkProperties("NetworkProperties:6"); } } \ No newline at end of file +/** + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.apache.activemq.openwire.v9; + +import java.io.DataInputStream; +import java.io.DataOutputStream; +import java.io.IOException; + +import org.apache.activemq.openwire.*; +import org.apache.activemq.command.*; + + +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; +/** + * Test case for the OpenWire marshalling for BrokerInfo + * + * + * NOTE!: This file is auto generated - do not modify! + * if you need to make a change, please see the modify the groovy scripts in the + * under src/gram/script and then use maven openwire:generate to regenerate + * this file. + * + * + */ +@Category(ParallelTest.class) + +public class BrokerInfoTest extends BaseCommandTestSupport { + + + public static BrokerInfoTest SINGLETON = new BrokerInfoTest(); + + public Object createObject() throws Exception { + BrokerInfo info = new BrokerInfo(); + populateObject(info); + return info; + } + + protected void populateObject(Object object) throws Exception { + super.populateObject(object); + BrokerInfo info = (BrokerInfo) object; + + info.setBrokerId(createBrokerId("BrokerId:1")); + info.setBrokerURL("BrokerURL:2"); + { + BrokerInfo value[] = new BrokerInfo[0]; + for( int i=0; i < 0; i++ ) { + value[i] = createBrokerInfo("PeerBrokerInfos:3"); + } + info.setPeerBrokerInfos(value); + } + info.setBrokerName("BrokerName:4"); + info.setSlaveBroker(true); + info.setMasterBroker(false); + info.setFaultTolerantConfiguration(true); + info.setDuplexConnection(false); + info.setNetworkConnection(true); + info.setConnectionId(1); + info.setBrokerUploadUrl("BrokerUploadUrl:5"); + info.setNetworkProperties("NetworkProperties:6"); + } +} diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v9/ConnectionControlTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v9/ConnectionControlTest.java index e259ec7904f..d4046b4413e 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v9/ConnectionControlTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v9/ConnectionControlTest.java @@ -1 +1,68 @@ -/** * * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.activemq.openwire.v9; import java.io.DataInputStream; import java.io.DataOutputStream; import java.io.IOException; import org.apache.activemq.openwire.*; import org.apache.activemq.command.*; /** * Test case for the OpenWire marshalling for ConnectionControl * * * NOTE!: This file is auto generated - do not modify! * if you need to make a change, please see the modify the groovy scripts in the * under src/gram/script and then use maven openwire:generate to regenerate * this file. * * */ public class ConnectionControlTest extends BaseCommandTestSupport { public static ConnectionControlTest SINGLETON = new ConnectionControlTest(); public Object createObject() throws Exception { ConnectionControl info = new ConnectionControl(); populateObject(info); return info; } protected void populateObject(Object object) throws Exception { super.populateObject(object); ConnectionControl info = (ConnectionControl) object; info.setClose(true); info.setExit(false); info.setFaultTolerant(true); info.setResume(false); info.setSuspend(true); info.setConnectedBrokers("ConnectedBrokers:1"); info.setReconnectTo("ReconnectTo:2"); info.setRebalanceConnection(false); info.setToken("Token:3".getBytes()); } } \ No newline at end of file +/** + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.apache.activemq.openwire.v9; + +import java.io.DataInputStream; +import java.io.DataOutputStream; +import java.io.IOException; + +import org.apache.activemq.openwire.*; +import org.apache.activemq.command.*; + + +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; +/** + * Test case for the OpenWire marshalling for ConnectionControl + * + * + * NOTE!: This file is auto generated - do not modify! + * if you need to make a change, please see the modify the groovy scripts in the + * under src/gram/script and then use maven openwire:generate to regenerate + * this file. + * + * + */ +@Category(ParallelTest.class) + +public class ConnectionControlTest extends BaseCommandTestSupport { + + + public static ConnectionControlTest SINGLETON = new ConnectionControlTest(); + + public Object createObject() throws Exception { + ConnectionControl info = new ConnectionControl(); + populateObject(info); + return info; + } + + protected void populateObject(Object object) throws Exception { + super.populateObject(object); + ConnectionControl info = (ConnectionControl) object; + + info.setClose(true); + info.setExit(false); + info.setFaultTolerant(true); + info.setResume(false); + info.setSuspend(true); + info.setConnectedBrokers("ConnectedBrokers:1"); + info.setReconnectTo("ReconnectTo:2"); + info.setRebalanceConnection(false); + info.setToken("Token:3".getBytes()); + } +} diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v9/ConnectionErrorTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v9/ConnectionErrorTest.java index 52ce46b917c..154e3193a35 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v9/ConnectionErrorTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v9/ConnectionErrorTest.java @@ -1 +1,61 @@ -/** * * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.activemq.openwire.v9; import java.io.DataInputStream; import java.io.DataOutputStream; import java.io.IOException; import org.apache.activemq.openwire.*; import org.apache.activemq.command.*; /** * Test case for the OpenWire marshalling for ConnectionError * * * NOTE!: This file is auto generated - do not modify! * if you need to make a change, please see the modify the groovy scripts in the * under src/gram/script and then use maven openwire:generate to regenerate * this file. * * */ public class ConnectionErrorTest extends BaseCommandTestSupport { public static ConnectionErrorTest SINGLETON = new ConnectionErrorTest(); public Object createObject() throws Exception { ConnectionError info = new ConnectionError(); populateObject(info); return info; } protected void populateObject(Object object) throws Exception { super.populateObject(object); ConnectionError info = (ConnectionError) object; info.setException(createThrowable("Exception:1")); info.setConnectionId(createConnectionId("ConnectionId:2")); } } \ No newline at end of file +/** + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.apache.activemq.openwire.v9; + +import java.io.DataInputStream; +import java.io.DataOutputStream; +import java.io.IOException; + +import org.apache.activemq.openwire.*; +import org.apache.activemq.command.*; + + +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; +/** + * Test case for the OpenWire marshalling for ConnectionError + * + * + * NOTE!: This file is auto generated - do not modify! + * if you need to make a change, please see the modify the groovy scripts in the + * under src/gram/script and then use maven openwire:generate to regenerate + * this file. + * + * + */ +@Category(ParallelTest.class) + +public class ConnectionErrorTest extends BaseCommandTestSupport { + + + public static ConnectionErrorTest SINGLETON = new ConnectionErrorTest(); + + public Object createObject() throws Exception { + ConnectionError info = new ConnectionError(); + populateObject(info); + return info; + } + + protected void populateObject(Object object) throws Exception { + super.populateObject(object); + ConnectionError info = (ConnectionError) object; + + info.setException(createThrowable("Exception:1")); + info.setConnectionId(createConnectionId("ConnectionId:2")); + } +} diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v9/ConnectionIdTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v9/ConnectionIdTest.java index d0b4fcfe3d1..e420c987456 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v9/ConnectionIdTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v9/ConnectionIdTest.java @@ -1 +1,60 @@ -/** * * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.activemq.openwire.v9; import java.io.DataInputStream; import java.io.DataOutputStream; import java.io.IOException; import org.apache.activemq.openwire.*; import org.apache.activemq.command.*; /** * Test case for the OpenWire marshalling for ConnectionId * * * NOTE!: This file is auto generated - do not modify! * if you need to make a change, please see the modify the groovy scripts in the * under src/gram/script and then use maven openwire:generate to regenerate * this file. * * */ public class ConnectionIdTest extends DataFileGeneratorTestSupport { public static ConnectionIdTest SINGLETON = new ConnectionIdTest(); public Object createObject() throws Exception { ConnectionId info = new ConnectionId(); populateObject(info); return info; } protected void populateObject(Object object) throws Exception { super.populateObject(object); ConnectionId info = (ConnectionId) object; info.setValue("Value:1"); } } \ No newline at end of file +/** + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.apache.activemq.openwire.v9; + +import java.io.DataInputStream; +import java.io.DataOutputStream; +import java.io.IOException; + +import org.apache.activemq.openwire.*; +import org.apache.activemq.command.*; + + +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; +/** + * Test case for the OpenWire marshalling for ConnectionId + * + * + * NOTE!: This file is auto generated - do not modify! + * if you need to make a change, please see the modify the groovy scripts in the + * under src/gram/script and then use maven openwire:generate to regenerate + * this file. + * + * + */ +@Category(ParallelTest.class) + +public class ConnectionIdTest extends DataFileGeneratorTestSupport { + + + public static ConnectionIdTest SINGLETON = new ConnectionIdTest(); + + public Object createObject() throws Exception { + ConnectionId info = new ConnectionId(); + populateObject(info); + return info; + } + + protected void populateObject(Object object) throws Exception { + super.populateObject(object); + ConnectionId info = (ConnectionId) object; + + info.setValue("Value:1"); + } +} diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v9/ConnectionInfoTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v9/ConnectionInfoTest.java index 9cafabc29b2..1781a76db43 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v9/ConnectionInfoTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v9/ConnectionInfoTest.java @@ -1 +1,76 @@ -/** * * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.activemq.openwire.v9; import java.io.DataInputStream; import java.io.DataOutputStream; import java.io.IOException; import org.apache.activemq.openwire.*; import org.apache.activemq.command.*; /** * Test case for the OpenWire marshalling for ConnectionInfo * * * NOTE!: This file is auto generated - do not modify! * if you need to make a change, please see the modify the groovy scripts in the * under src/gram/script and then use maven openwire:generate to regenerate * this file. * * */ public class ConnectionInfoTest extends BaseCommandTestSupport { public static ConnectionInfoTest SINGLETON = new ConnectionInfoTest(); public Object createObject() throws Exception { ConnectionInfo info = new ConnectionInfo(); populateObject(info); return info; } protected void populateObject(Object object) throws Exception { super.populateObject(object); ConnectionInfo info = (ConnectionInfo) object; info.setConnectionId(createConnectionId("ConnectionId:1")); info.setClientId("ClientId:2"); info.setPassword("Password:3"); info.setUserName("UserName:4"); { BrokerId value[] = new BrokerId[2]; for( int i=0; i < 2; i++ ) { value[i] = createBrokerId("BrokerPath:5"); } info.setBrokerPath(value); } info.setBrokerMasterConnector(true); info.setManageable(false); info.setClientMaster(true); info.setFaultTolerant(false); info.setFailoverReconnect(true); info.setClientIp("ClientIp:6"); } } \ No newline at end of file +/** + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.apache.activemq.openwire.v9; + +import java.io.DataInputStream; +import java.io.DataOutputStream; +import java.io.IOException; + +import org.apache.activemq.openwire.*; +import org.apache.activemq.command.*; + + +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; +/** + * Test case for the OpenWire marshalling for ConnectionInfo + * + * + * NOTE!: This file is auto generated - do not modify! + * if you need to make a change, please see the modify the groovy scripts in the + * under src/gram/script and then use maven openwire:generate to regenerate + * this file. + * + * + */ +@Category(ParallelTest.class) + +public class ConnectionInfoTest extends BaseCommandTestSupport { + + + public static ConnectionInfoTest SINGLETON = new ConnectionInfoTest(); + + public Object createObject() throws Exception { + ConnectionInfo info = new ConnectionInfo(); + populateObject(info); + return info; + } + + protected void populateObject(Object object) throws Exception { + super.populateObject(object); + ConnectionInfo info = (ConnectionInfo) object; + + info.setConnectionId(createConnectionId("ConnectionId:1")); + info.setClientId("ClientId:2"); + info.setPassword("Password:3"); + info.setUserName("UserName:4"); + { + BrokerId value[] = new BrokerId[2]; + for( int i=0; i < 2; i++ ) { + value[i] = createBrokerId("BrokerPath:5"); + } + info.setBrokerPath(value); + } + info.setBrokerMasterConnector(true); + info.setManageable(false); + info.setClientMaster(true); + info.setFaultTolerant(false); + info.setFailoverReconnect(true); + info.setClientIp("ClientIp:6"); + } +} diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v9/ConsumerControlTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v9/ConsumerControlTest.java index 39fc3815161..3122a294f89 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v9/ConsumerControlTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v9/ConsumerControlTest.java @@ -1 +1,66 @@ -/** * * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.activemq.openwire.v9; import java.io.DataInputStream; import java.io.DataOutputStream; import java.io.IOException; import org.apache.activemq.openwire.*; import org.apache.activemq.command.*; /** * Test case for the OpenWire marshalling for ConsumerControl * * * NOTE!: This file is auto generated - do not modify! * if you need to make a change, please see the modify the groovy scripts in the * under src/gram/script and then use maven openwire:generate to regenerate * this file. * * */ public class ConsumerControlTest extends BaseCommandTestSupport { public static ConsumerControlTest SINGLETON = new ConsumerControlTest(); public Object createObject() throws Exception { ConsumerControl info = new ConsumerControl(); populateObject(info); return info; } protected void populateObject(Object object) throws Exception { super.populateObject(object); ConsumerControl info = (ConsumerControl) object; info.setDestination(createActiveMQDestination("Destination:1")); info.setClose(true); info.setConsumerId(createConsumerId("ConsumerId:2")); info.setPrefetch(1); info.setFlush(false); info.setStart(true); info.setStop(false); } } \ No newline at end of file +/** + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.apache.activemq.openwire.v9; + +import java.io.DataInputStream; +import java.io.DataOutputStream; +import java.io.IOException; + +import org.apache.activemq.openwire.*; +import org.apache.activemq.command.*; + + +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; +/** + * Test case for the OpenWire marshalling for ConsumerControl + * + * + * NOTE!: This file is auto generated - do not modify! + * if you need to make a change, please see the modify the groovy scripts in the + * under src/gram/script and then use maven openwire:generate to regenerate + * this file. + * + * + */ +@Category(ParallelTest.class) + +public class ConsumerControlTest extends BaseCommandTestSupport { + + + public static ConsumerControlTest SINGLETON = new ConsumerControlTest(); + + public Object createObject() throws Exception { + ConsumerControl info = new ConsumerControl(); + populateObject(info); + return info; + } + + protected void populateObject(Object object) throws Exception { + super.populateObject(object); + ConsumerControl info = (ConsumerControl) object; + + info.setDestination(createActiveMQDestination("Destination:1")); + info.setClose(true); + info.setConsumerId(createConsumerId("ConsumerId:2")); + info.setPrefetch(1); + info.setFlush(false); + info.setStart(true); + info.setStop(false); + } +} diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v9/ConsumerIdTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v9/ConsumerIdTest.java index edefe398c29..7b52f5fb56b 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v9/ConsumerIdTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v9/ConsumerIdTest.java @@ -1 +1,62 @@ -/** * * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.activemq.openwire.v9; import java.io.DataInputStream; import java.io.DataOutputStream; import java.io.IOException; import org.apache.activemq.openwire.*; import org.apache.activemq.command.*; /** * Test case for the OpenWire marshalling for ConsumerId * * * NOTE!: This file is auto generated - do not modify! * if you need to make a change, please see the modify the groovy scripts in the * under src/gram/script and then use maven openwire:generate to regenerate * this file. * * */ public class ConsumerIdTest extends DataFileGeneratorTestSupport { public static ConsumerIdTest SINGLETON = new ConsumerIdTest(); public Object createObject() throws Exception { ConsumerId info = new ConsumerId(); populateObject(info); return info; } protected void populateObject(Object object) throws Exception { super.populateObject(object); ConsumerId info = (ConsumerId) object; info.setConnectionId("ConnectionId:1"); info.setSessionId(1); info.setValue(2); } } \ No newline at end of file +/** + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.apache.activemq.openwire.v9; + +import java.io.DataInputStream; +import java.io.DataOutputStream; +import java.io.IOException; + +import org.apache.activemq.openwire.*; +import org.apache.activemq.command.*; + + +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; +/** + * Test case for the OpenWire marshalling for ConsumerId + * + * + * NOTE!: This file is auto generated - do not modify! + * if you need to make a change, please see the modify the groovy scripts in the + * under src/gram/script and then use maven openwire:generate to regenerate + * this file. + * + * + */ +@Category(ParallelTest.class) + +public class ConsumerIdTest extends DataFileGeneratorTestSupport { + + + public static ConsumerIdTest SINGLETON = new ConsumerIdTest(); + + public Object createObject() throws Exception { + ConsumerId info = new ConsumerId(); + populateObject(info); + return info; + } + + protected void populateObject(Object object) throws Exception { + super.populateObject(object); + ConsumerId info = (ConsumerId) object; + + info.setConnectionId("ConnectionId:1"); + info.setSessionId(1); + info.setValue(2); + } +} diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v9/ConsumerInfoTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v9/ConsumerInfoTest.java index a31ff687a3a..f3fbe290251 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v9/ConsumerInfoTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v9/ConsumerInfoTest.java @@ -1 +1,89 @@ -/** * * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.activemq.openwire.v9; import java.io.DataInputStream; import java.io.DataOutputStream; import java.io.IOException; import org.apache.activemq.openwire.*; import org.apache.activemq.command.*; /** * Test case for the OpenWire marshalling for ConsumerInfo * * * NOTE!: This file is auto generated - do not modify! * if you need to make a change, please see the modify the groovy scripts in the * under src/gram/script and then use maven openwire:generate to regenerate * this file. * * */ public class ConsumerInfoTest extends BaseCommandTestSupport { public static ConsumerInfoTest SINGLETON = new ConsumerInfoTest(); public Object createObject() throws Exception { ConsumerInfo info = new ConsumerInfo(); populateObject(info); return info; } protected void populateObject(Object object) throws Exception { super.populateObject(object); ConsumerInfo info = (ConsumerInfo) object; info.setConsumerId(createConsumerId("ConsumerId:1")); info.setBrowser(true); info.setDestination(createActiveMQDestination("Destination:2")); info.setPrefetchSize(1); info.setMaximumPendingMessageLimit(2); info.setDispatchAsync(false); info.setSelector("Selector:3"); info.setSubscriptionName("SubscriptionName:4"); info.setNoLocal(true); info.setExclusive(false); info.setRetroactive(true); info.setPriority((byte) 1); { BrokerId value[] = new BrokerId[2]; for( int i=0; i < 2; i++ ) { value[i] = createBrokerId("BrokerPath:5"); } info.setBrokerPath(value); } info.setAdditionalPredicate(createBooleanExpression("AdditionalPredicate:6")); info.setNetworkSubscription(false); info.setOptimizedAcknowledge(true); info.setNoRangeAcks(false); { ConsumerId value[] = new ConsumerId[2]; for( int i=0; i < 2; i++ ) { value[i] = createConsumerId("NetworkConsumerPath:7"); } info.setNetworkConsumerPath(value); } } } \ No newline at end of file +/** + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.apache.activemq.openwire.v9; + +import java.io.DataInputStream; +import java.io.DataOutputStream; +import java.io.IOException; + +import org.apache.activemq.openwire.*; +import org.apache.activemq.command.*; + + +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; +/** + * Test case for the OpenWire marshalling for ConsumerInfo + * + * + * NOTE!: This file is auto generated - do not modify! + * if you need to make a change, please see the modify the groovy scripts in the + * under src/gram/script and then use maven openwire:generate to regenerate + * this file. + * + * + */ +@Category(ParallelTest.class) + +public class ConsumerInfoTest extends BaseCommandTestSupport { + + + public static ConsumerInfoTest SINGLETON = new ConsumerInfoTest(); + + public Object createObject() throws Exception { + ConsumerInfo info = new ConsumerInfo(); + populateObject(info); + return info; + } + + protected void populateObject(Object object) throws Exception { + super.populateObject(object); + ConsumerInfo info = (ConsumerInfo) object; + + info.setConsumerId(createConsumerId("ConsumerId:1")); + info.setBrowser(true); + info.setDestination(createActiveMQDestination("Destination:2")); + info.setPrefetchSize(1); + info.setMaximumPendingMessageLimit(2); + info.setDispatchAsync(false); + info.setSelector("Selector:3"); + info.setSubscriptionName("SubscriptionName:4"); + info.setNoLocal(true); + info.setExclusive(false); + info.setRetroactive(true); + info.setPriority((byte) 1); + { + BrokerId value[] = new BrokerId[2]; + for( int i=0; i < 2; i++ ) { + value[i] = createBrokerId("BrokerPath:5"); + } + info.setBrokerPath(value); + } + info.setAdditionalPredicate(createBooleanExpression("AdditionalPredicate:6")); + info.setNetworkSubscription(false); + info.setOptimizedAcknowledge(true); + info.setNoRangeAcks(false); + { + ConsumerId value[] = new ConsumerId[2]; + for( int i=0; i < 2; i++ ) { + value[i] = createConsumerId("NetworkConsumerPath:7"); + } + info.setNetworkConsumerPath(value); + } + } +} diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v9/ControlCommandTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v9/ControlCommandTest.java index 6e86e3c5949..70ef79c2248 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v9/ControlCommandTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v9/ControlCommandTest.java @@ -1 +1,60 @@ -/** * * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.activemq.openwire.v9; import java.io.DataInputStream; import java.io.DataOutputStream; import java.io.IOException; import org.apache.activemq.openwire.*; import org.apache.activemq.command.*; /** * Test case for the OpenWire marshalling for ControlCommand * * * NOTE!: This file is auto generated - do not modify! * if you need to make a change, please see the modify the groovy scripts in the * under src/gram/script and then use maven openwire:generate to regenerate * this file. * * */ public class ControlCommandTest extends BaseCommandTestSupport { public static ControlCommandTest SINGLETON = new ControlCommandTest(); public Object createObject() throws Exception { ControlCommand info = new ControlCommand(); populateObject(info); return info; } protected void populateObject(Object object) throws Exception { super.populateObject(object); ControlCommand info = (ControlCommand) object; info.setCommand("Command:1"); } } \ No newline at end of file +/** + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.apache.activemq.openwire.v9; + +import java.io.DataInputStream; +import java.io.DataOutputStream; +import java.io.IOException; + +import org.apache.activemq.openwire.*; +import org.apache.activemq.command.*; + + +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; +/** + * Test case for the OpenWire marshalling for ControlCommand + * + * + * NOTE!: This file is auto generated - do not modify! + * if you need to make a change, please see the modify the groovy scripts in the + * under src/gram/script and then use maven openwire:generate to regenerate + * this file. + * + * + */ +@Category(ParallelTest.class) + +public class ControlCommandTest extends BaseCommandTestSupport { + + + public static ControlCommandTest SINGLETON = new ControlCommandTest(); + + public Object createObject() throws Exception { + ControlCommand info = new ControlCommand(); + populateObject(info); + return info; + } + + protected void populateObject(Object object) throws Exception { + super.populateObject(object); + ControlCommand info = (ControlCommand) object; + + info.setCommand("Command:1"); + } +} diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v9/DataArrayResponseTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v9/DataArrayResponseTest.java index 967964a4613..37a742aa0c8 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v9/DataArrayResponseTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v9/DataArrayResponseTest.java @@ -1 +1,66 @@ -/** * * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.activemq.openwire.v9; import java.io.DataInputStream; import java.io.DataOutputStream; import java.io.IOException; import org.apache.activemq.openwire.*; import org.apache.activemq.command.*; /** * Test case for the OpenWire marshalling for DataArrayResponse * * * NOTE!: This file is auto generated - do not modify! * if you need to make a change, please see the modify the groovy scripts in the * under src/gram/script and then use maven openwire:generate to regenerate * this file. * * */ public class DataArrayResponseTest extends ResponseTest { public static DataArrayResponseTest SINGLETON = new DataArrayResponseTest(); public Object createObject() throws Exception { DataArrayResponse info = new DataArrayResponse(); populateObject(info); return info; } protected void populateObject(Object object) throws Exception { super.populateObject(object); DataArrayResponse info = (DataArrayResponse) object; { DataStructure value[] = new DataStructure[2]; for( int i=0; i < 2; i++ ) { value[i] = createDataStructure("Data:1"); } info.setData(value); } } } \ No newline at end of file +/** + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.apache.activemq.openwire.v9; + +import java.io.DataInputStream; +import java.io.DataOutputStream; +import java.io.IOException; + +import org.apache.activemq.openwire.*; +import org.apache.activemq.command.*; + + +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; +/** + * Test case for the OpenWire marshalling for DataArrayResponse + * + * + * NOTE!: This file is auto generated - do not modify! + * if you need to make a change, please see the modify the groovy scripts in the + * under src/gram/script and then use maven openwire:generate to regenerate + * this file. + * + * + */ +@Category(ParallelTest.class) + +public class DataArrayResponseTest extends ResponseTest { + + + public static DataArrayResponseTest SINGLETON = new DataArrayResponseTest(); + + public Object createObject() throws Exception { + DataArrayResponse info = new DataArrayResponse(); + populateObject(info); + return info; + } + + protected void populateObject(Object object) throws Exception { + super.populateObject(object); + DataArrayResponse info = (DataArrayResponse) object; + + { + DataStructure value[] = new DataStructure[2]; + for( int i=0; i < 2; i++ ) { + value[i] = createDataStructure("Data:1"); + } + info.setData(value); + } + } +} diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v9/DataResponseTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v9/DataResponseTest.java index 82014879dd5..3a21a7c6531 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v9/DataResponseTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v9/DataResponseTest.java @@ -1 +1,60 @@ -/** * * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.activemq.openwire.v9; import java.io.DataInputStream; import java.io.DataOutputStream; import java.io.IOException; import org.apache.activemq.openwire.*; import org.apache.activemq.command.*; /** * Test case for the OpenWire marshalling for DataResponse * * * NOTE!: This file is auto generated - do not modify! * if you need to make a change, please see the modify the groovy scripts in the * under src/gram/script and then use maven openwire:generate to regenerate * this file. * * */ public class DataResponseTest extends ResponseTest { public static DataResponseTest SINGLETON = new DataResponseTest(); public Object createObject() throws Exception { DataResponse info = new DataResponse(); populateObject(info); return info; } protected void populateObject(Object object) throws Exception { super.populateObject(object); DataResponse info = (DataResponse) object; info.setData(createDataStructure("Data:1")); } } \ No newline at end of file +/** + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.apache.activemq.openwire.v9; + +import java.io.DataInputStream; +import java.io.DataOutputStream; +import java.io.IOException; + +import org.apache.activemq.openwire.*; +import org.apache.activemq.command.*; + + +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; +/** + * Test case for the OpenWire marshalling for DataResponse + * + * + * NOTE!: This file is auto generated - do not modify! + * if you need to make a change, please see the modify the groovy scripts in the + * under src/gram/script and then use maven openwire:generate to regenerate + * this file. + * + * + */ +@Category(ParallelTest.class) + +public class DataResponseTest extends ResponseTest { + + + public static DataResponseTest SINGLETON = new DataResponseTest(); + + public Object createObject() throws Exception { + DataResponse info = new DataResponse(); + populateObject(info); + return info; + } + + protected void populateObject(Object object) throws Exception { + super.populateObject(object); + DataResponse info = (DataResponse) object; + + info.setData(createDataStructure("Data:1")); + } +} diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v9/DestinationInfoTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v9/DestinationInfoTest.java index 35d8298be4b..0e31c113e5f 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v9/DestinationInfoTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v9/DestinationInfoTest.java @@ -1 +1,70 @@ -/** * * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.activemq.openwire.v9; import java.io.DataInputStream; import java.io.DataOutputStream; import java.io.IOException; import org.apache.activemq.openwire.*; import org.apache.activemq.command.*; /** * Test case for the OpenWire marshalling for DestinationInfo * * * NOTE!: This file is auto generated - do not modify! * if you need to make a change, please see the modify the groovy scripts in the * under src/gram/script and then use maven openwire:generate to regenerate * this file. * * */ public class DestinationInfoTest extends BaseCommandTestSupport { public static DestinationInfoTest SINGLETON = new DestinationInfoTest(); public Object createObject() throws Exception { DestinationInfo info = new DestinationInfo(); populateObject(info); return info; } protected void populateObject(Object object) throws Exception { super.populateObject(object); DestinationInfo info = (DestinationInfo) object; info.setConnectionId(createConnectionId("ConnectionId:1")); info.setDestination(createActiveMQDestination("Destination:2")); info.setOperationType((byte) 1); info.setTimeout(1); { BrokerId value[] = new BrokerId[2]; for( int i=0; i < 2; i++ ) { value[i] = createBrokerId("BrokerPath:3"); } info.setBrokerPath(value); } } } \ No newline at end of file +/** + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.apache.activemq.openwire.v9; + +import java.io.DataInputStream; +import java.io.DataOutputStream; +import java.io.IOException; + +import org.apache.activemq.openwire.*; +import org.apache.activemq.command.*; + + +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; +/** + * Test case for the OpenWire marshalling for DestinationInfo + * + * + * NOTE!: This file is auto generated - do not modify! + * if you need to make a change, please see the modify the groovy scripts in the + * under src/gram/script and then use maven openwire:generate to regenerate + * this file. + * + * + */ +@Category(ParallelTest.class) + +public class DestinationInfoTest extends BaseCommandTestSupport { + + + public static DestinationInfoTest SINGLETON = new DestinationInfoTest(); + + public Object createObject() throws Exception { + DestinationInfo info = new DestinationInfo(); + populateObject(info); + return info; + } + + protected void populateObject(Object object) throws Exception { + super.populateObject(object); + DestinationInfo info = (DestinationInfo) object; + + info.setConnectionId(createConnectionId("ConnectionId:1")); + info.setDestination(createActiveMQDestination("Destination:2")); + info.setOperationType((byte) 1); + info.setTimeout(1); + { + BrokerId value[] = new BrokerId[2]; + for( int i=0; i < 2; i++ ) { + value[i] = createBrokerId("BrokerPath:3"); + } + info.setBrokerPath(value); + } + } +} diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v9/DiscoveryEventTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v9/DiscoveryEventTest.java index e2709d7d00e..4fac17a3acf 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v9/DiscoveryEventTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v9/DiscoveryEventTest.java @@ -1 +1,61 @@ -/** * * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.activemq.openwire.v9; import java.io.DataInputStream; import java.io.DataOutputStream; import java.io.IOException; import org.apache.activemq.openwire.*; import org.apache.activemq.command.*; /** * Test case for the OpenWire marshalling for DiscoveryEvent * * * NOTE!: This file is auto generated - do not modify! * if you need to make a change, please see the modify the groovy scripts in the * under src/gram/script and then use maven openwire:generate to regenerate * this file. * * */ public class DiscoveryEventTest extends DataFileGeneratorTestSupport { public static DiscoveryEventTest SINGLETON = new DiscoveryEventTest(); public Object createObject() throws Exception { DiscoveryEvent info = new DiscoveryEvent(); populateObject(info); return info; } protected void populateObject(Object object) throws Exception { super.populateObject(object); DiscoveryEvent info = (DiscoveryEvent) object; info.setServiceName("ServiceName:1"); info.setBrokerName("BrokerName:2"); } } \ No newline at end of file +/** + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.apache.activemq.openwire.v9; + +import java.io.DataInputStream; +import java.io.DataOutputStream; +import java.io.IOException; + +import org.apache.activemq.openwire.*; +import org.apache.activemq.command.*; + + +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; +/** + * Test case for the OpenWire marshalling for DiscoveryEvent + * + * + * NOTE!: This file is auto generated - do not modify! + * if you need to make a change, please see the modify the groovy scripts in the + * under src/gram/script and then use maven openwire:generate to regenerate + * this file. + * + * + */ +@Category(ParallelTest.class) + +public class DiscoveryEventTest extends DataFileGeneratorTestSupport { + + + public static DiscoveryEventTest SINGLETON = new DiscoveryEventTest(); + + public Object createObject() throws Exception { + DiscoveryEvent info = new DiscoveryEvent(); + populateObject(info); + return info; + } + + protected void populateObject(Object object) throws Exception { + super.populateObject(object); + DiscoveryEvent info = (DiscoveryEvent) object; + + info.setServiceName("ServiceName:1"); + info.setBrokerName("BrokerName:2"); + } +} diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v9/ExceptionResponseTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v9/ExceptionResponseTest.java index 27b56cad261..59c1094e898 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v9/ExceptionResponseTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v9/ExceptionResponseTest.java @@ -1 +1,60 @@ -/** * * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.activemq.openwire.v9; import java.io.DataInputStream; import java.io.DataOutputStream; import java.io.IOException; import org.apache.activemq.openwire.*; import org.apache.activemq.command.*; /** * Test case for the OpenWire marshalling for ExceptionResponse * * * NOTE!: This file is auto generated - do not modify! * if you need to make a change, please see the modify the groovy scripts in the * under src/gram/script and then use maven openwire:generate to regenerate * this file. * * */ public class ExceptionResponseTest extends ResponseTest { public static ExceptionResponseTest SINGLETON = new ExceptionResponseTest(); public Object createObject() throws Exception { ExceptionResponse info = new ExceptionResponse(); populateObject(info); return info; } protected void populateObject(Object object) throws Exception { super.populateObject(object); ExceptionResponse info = (ExceptionResponse) object; info.setException(createThrowable("Exception:1")); } } \ No newline at end of file +/** + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.apache.activemq.openwire.v9; + +import java.io.DataInputStream; +import java.io.DataOutputStream; +import java.io.IOException; + +import org.apache.activemq.openwire.*; +import org.apache.activemq.command.*; + + +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; +/** + * Test case for the OpenWire marshalling for ExceptionResponse + * + * + * NOTE!: This file is auto generated - do not modify! + * if you need to make a change, please see the modify the groovy scripts in the + * under src/gram/script and then use maven openwire:generate to regenerate + * this file. + * + * + */ +@Category(ParallelTest.class) + +public class ExceptionResponseTest extends ResponseTest { + + + public static ExceptionResponseTest SINGLETON = new ExceptionResponseTest(); + + public Object createObject() throws Exception { + ExceptionResponse info = new ExceptionResponse(); + populateObject(info); + return info; + } + + protected void populateObject(Object object) throws Exception { + super.populateObject(object); + ExceptionResponse info = (ExceptionResponse) object; + + info.setException(createThrowable("Exception:1")); + } +} diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v9/FlushCommandTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v9/FlushCommandTest.java index e6fec771cd3..f170d8aa7fc 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v9/FlushCommandTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v9/FlushCommandTest.java @@ -1 +1,59 @@ -/** * * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.activemq.openwire.v9; import java.io.DataInputStream; import java.io.DataOutputStream; import java.io.IOException; import org.apache.activemq.openwire.*; import org.apache.activemq.command.*; /** * Test case for the OpenWire marshalling for FlushCommand * * * NOTE!: This file is auto generated - do not modify! * if you need to make a change, please see the modify the groovy scripts in the * under src/gram/script and then use maven openwire:generate to regenerate * this file. * * */ public class FlushCommandTest extends BaseCommandTestSupport { public static FlushCommandTest SINGLETON = new FlushCommandTest(); public Object createObject() throws Exception { FlushCommand info = new FlushCommand(); populateObject(info); return info; } protected void populateObject(Object object) throws Exception { super.populateObject(object); FlushCommand info = (FlushCommand) object; } } \ No newline at end of file +/** + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.apache.activemq.openwire.v9; + +import java.io.DataInputStream; +import java.io.DataOutputStream; +import java.io.IOException; + +import org.apache.activemq.openwire.*; +import org.apache.activemq.command.*; + + +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; +/** + * Test case for the OpenWire marshalling for FlushCommand + * + * + * NOTE!: This file is auto generated - do not modify! + * if you need to make a change, please see the modify the groovy scripts in the + * under src/gram/script and then use maven openwire:generate to regenerate + * this file. + * + * + */ +@Category(ParallelTest.class) + +public class FlushCommandTest extends BaseCommandTestSupport { + + + public static FlushCommandTest SINGLETON = new FlushCommandTest(); + + public Object createObject() throws Exception { + FlushCommand info = new FlushCommand(); + populateObject(info); + return info; + } + + protected void populateObject(Object object) throws Exception { + super.populateObject(object); + FlushCommand info = (FlushCommand) object; + + } +} diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v9/IntegerResponseTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v9/IntegerResponseTest.java index 08b844a85df..d434f726d6f 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v9/IntegerResponseTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v9/IntegerResponseTest.java @@ -1 +1,60 @@ -/** * * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.activemq.openwire.v9; import java.io.DataInputStream; import java.io.DataOutputStream; import java.io.IOException; import org.apache.activemq.openwire.*; import org.apache.activemq.command.*; /** * Test case for the OpenWire marshalling for IntegerResponse * * * NOTE!: This file is auto generated - do not modify! * if you need to make a change, please see the modify the groovy scripts in the * under src/gram/script and then use maven openwire:generate to regenerate * this file. * * */ public class IntegerResponseTest extends ResponseTest { public static IntegerResponseTest SINGLETON = new IntegerResponseTest(); public Object createObject() throws Exception { IntegerResponse info = new IntegerResponse(); populateObject(info); return info; } protected void populateObject(Object object) throws Exception { super.populateObject(object); IntegerResponse info = (IntegerResponse) object; info.setResult(1); } } \ No newline at end of file +/** + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.apache.activemq.openwire.v9; + +import java.io.DataInputStream; +import java.io.DataOutputStream; +import java.io.IOException; + +import org.apache.activemq.openwire.*; +import org.apache.activemq.command.*; + + +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; +/** + * Test case for the OpenWire marshalling for IntegerResponse + * + * + * NOTE!: This file is auto generated - do not modify! + * if you need to make a change, please see the modify the groovy scripts in the + * under src/gram/script and then use maven openwire:generate to regenerate + * this file. + * + * + */ +@Category(ParallelTest.class) + +public class IntegerResponseTest extends ResponseTest { + + + public static IntegerResponseTest SINGLETON = new IntegerResponseTest(); + + public Object createObject() throws Exception { + IntegerResponse info = new IntegerResponse(); + populateObject(info); + return info; + } + + protected void populateObject(Object object) throws Exception { + super.populateObject(object); + IntegerResponse info = (IntegerResponse) object; + + info.setResult(1); + } +} diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v9/JournalQueueAckTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v9/JournalQueueAckTest.java index 15bc4e1a897..faf564d3156 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v9/JournalQueueAckTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v9/JournalQueueAckTest.java @@ -1 +1,61 @@ -/** * * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.activemq.openwire.v9; import java.io.DataInputStream; import java.io.DataOutputStream; import java.io.IOException; import org.apache.activemq.openwire.*; import org.apache.activemq.command.*; /** * Test case for the OpenWire marshalling for JournalQueueAck * * * NOTE!: This file is auto generated - do not modify! * if you need to make a change, please see the modify the groovy scripts in the * under src/gram/script and then use maven openwire:generate to regenerate * this file. * * */ public class JournalQueueAckTest extends DataFileGeneratorTestSupport { public static JournalQueueAckTest SINGLETON = new JournalQueueAckTest(); public Object createObject() throws Exception { JournalQueueAck info = new JournalQueueAck(); populateObject(info); return info; } protected void populateObject(Object object) throws Exception { super.populateObject(object); JournalQueueAck info = (JournalQueueAck) object; info.setDestination(createActiveMQDestination("Destination:1")); info.setMessageAck(createMessageAck("MessageAck:2")); } } \ No newline at end of file +/** + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.apache.activemq.openwire.v9; + +import java.io.DataInputStream; +import java.io.DataOutputStream; +import java.io.IOException; + +import org.apache.activemq.openwire.*; +import org.apache.activemq.command.*; + + +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; +/** + * Test case for the OpenWire marshalling for JournalQueueAck + * + * + * NOTE!: This file is auto generated - do not modify! + * if you need to make a change, please see the modify the groovy scripts in the + * under src/gram/script and then use maven openwire:generate to regenerate + * this file. + * + * + */ +@Category(ParallelTest.class) + +public class JournalQueueAckTest extends DataFileGeneratorTestSupport { + + + public static JournalQueueAckTest SINGLETON = new JournalQueueAckTest(); + + public Object createObject() throws Exception { + JournalQueueAck info = new JournalQueueAck(); + populateObject(info); + return info; + } + + protected void populateObject(Object object) throws Exception { + super.populateObject(object); + JournalQueueAck info = (JournalQueueAck) object; + + info.setDestination(createActiveMQDestination("Destination:1")); + info.setMessageAck(createMessageAck("MessageAck:2")); + } +} diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v9/JournalTopicAckTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v9/JournalTopicAckTest.java index 92ee5fce402..d9462c35f37 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v9/JournalTopicAckTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v9/JournalTopicAckTest.java @@ -1 +1,65 @@ -/** * * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.activemq.openwire.v9; import java.io.DataInputStream; import java.io.DataOutputStream; import java.io.IOException; import org.apache.activemq.openwire.*; import org.apache.activemq.command.*; /** * Test case for the OpenWire marshalling for JournalTopicAck * * * NOTE!: This file is auto generated - do not modify! * if you need to make a change, please see the modify the groovy scripts in the * under src/gram/script and then use maven openwire:generate to regenerate * this file. * * */ public class JournalTopicAckTest extends DataFileGeneratorTestSupport { public static JournalTopicAckTest SINGLETON = new JournalTopicAckTest(); public Object createObject() throws Exception { JournalTopicAck info = new JournalTopicAck(); populateObject(info); return info; } protected void populateObject(Object object) throws Exception { super.populateObject(object); JournalTopicAck info = (JournalTopicAck) object; info.setDestination(createActiveMQDestination("Destination:1")); info.setMessageId(createMessageId("MessageId:2")); info.setMessageSequenceId(1); info.setSubscritionName("SubscritionName:3"); info.setClientId("ClientId:4"); info.setTransactionId(createTransactionId("TransactionId:5")); } } \ No newline at end of file +/** + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.apache.activemq.openwire.v9; + +import java.io.DataInputStream; +import java.io.DataOutputStream; +import java.io.IOException; + +import org.apache.activemq.openwire.*; +import org.apache.activemq.command.*; + + +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; +/** + * Test case for the OpenWire marshalling for JournalTopicAck + * + * + * NOTE!: This file is auto generated - do not modify! + * if you need to make a change, please see the modify the groovy scripts in the + * under src/gram/script and then use maven openwire:generate to regenerate + * this file. + * + * + */ +@Category(ParallelTest.class) + +public class JournalTopicAckTest extends DataFileGeneratorTestSupport { + + + public static JournalTopicAckTest SINGLETON = new JournalTopicAckTest(); + + public Object createObject() throws Exception { + JournalTopicAck info = new JournalTopicAck(); + populateObject(info); + return info; + } + + protected void populateObject(Object object) throws Exception { + super.populateObject(object); + JournalTopicAck info = (JournalTopicAck) object; + + info.setDestination(createActiveMQDestination("Destination:1")); + info.setMessageId(createMessageId("MessageId:2")); + info.setMessageSequenceId(1); + info.setSubscritionName("SubscritionName:3"); + info.setClientId("ClientId:4"); + info.setTransactionId(createTransactionId("TransactionId:5")); + } +} diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v9/JournalTraceTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v9/JournalTraceTest.java index fedee00cd1f..686de74f9cf 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v9/JournalTraceTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v9/JournalTraceTest.java @@ -1 +1,60 @@ -/** * * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.activemq.openwire.v9; import java.io.DataInputStream; import java.io.DataOutputStream; import java.io.IOException; import org.apache.activemq.openwire.*; import org.apache.activemq.command.*; /** * Test case for the OpenWire marshalling for JournalTrace * * * NOTE!: This file is auto generated - do not modify! * if you need to make a change, please see the modify the groovy scripts in the * under src/gram/script and then use maven openwire:generate to regenerate * this file. * * */ public class JournalTraceTest extends DataFileGeneratorTestSupport { public static JournalTraceTest SINGLETON = new JournalTraceTest(); public Object createObject() throws Exception { JournalTrace info = new JournalTrace(); populateObject(info); return info; } protected void populateObject(Object object) throws Exception { super.populateObject(object); JournalTrace info = (JournalTrace) object; info.setMessage("Message:1"); } } \ No newline at end of file +/** + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.apache.activemq.openwire.v9; + +import java.io.DataInputStream; +import java.io.DataOutputStream; +import java.io.IOException; + +import org.apache.activemq.openwire.*; +import org.apache.activemq.command.*; + + +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; +/** + * Test case for the OpenWire marshalling for JournalTrace + * + * + * NOTE!: This file is auto generated - do not modify! + * if you need to make a change, please see the modify the groovy scripts in the + * under src/gram/script and then use maven openwire:generate to regenerate + * this file. + * + * + */ +@Category(ParallelTest.class) + +public class JournalTraceTest extends DataFileGeneratorTestSupport { + + + public static JournalTraceTest SINGLETON = new JournalTraceTest(); + + public Object createObject() throws Exception { + JournalTrace info = new JournalTrace(); + populateObject(info); + return info; + } + + protected void populateObject(Object object) throws Exception { + super.populateObject(object); + JournalTrace info = (JournalTrace) object; + + info.setMessage("Message:1"); + } +} diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v9/JournalTransactionTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v9/JournalTransactionTest.java index ffad3dc019b..5b1cc9e4ecd 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v9/JournalTransactionTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v9/JournalTransactionTest.java @@ -1 +1,62 @@ -/** * * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.activemq.openwire.v9; import java.io.DataInputStream; import java.io.DataOutputStream; import java.io.IOException; import org.apache.activemq.openwire.*; import org.apache.activemq.command.*; /** * Test case for the OpenWire marshalling for JournalTransaction * * * NOTE!: This file is auto generated - do not modify! * if you need to make a change, please see the modify the groovy scripts in the * under src/gram/script and then use maven openwire:generate to regenerate * this file. * * */ public class JournalTransactionTest extends DataFileGeneratorTestSupport { public static JournalTransactionTest SINGLETON = new JournalTransactionTest(); public Object createObject() throws Exception { JournalTransaction info = new JournalTransaction(); populateObject(info); return info; } protected void populateObject(Object object) throws Exception { super.populateObject(object); JournalTransaction info = (JournalTransaction) object; info.setTransactionId(createTransactionId("TransactionId:1")); info.setType((byte) 1); info.setWasPrepared(true); } } \ No newline at end of file +/** + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.apache.activemq.openwire.v9; + +import java.io.DataInputStream; +import java.io.DataOutputStream; +import java.io.IOException; + +import org.apache.activemq.openwire.*; +import org.apache.activemq.command.*; + + +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; +/** + * Test case for the OpenWire marshalling for JournalTransaction + * + * + * NOTE!: This file is auto generated - do not modify! + * if you need to make a change, please see the modify the groovy scripts in the + * under src/gram/script and then use maven openwire:generate to regenerate + * this file. + * + * + */ +@Category(ParallelTest.class) + +public class JournalTransactionTest extends DataFileGeneratorTestSupport { + + + public static JournalTransactionTest SINGLETON = new JournalTransactionTest(); + + public Object createObject() throws Exception { + JournalTransaction info = new JournalTransaction(); + populateObject(info); + return info; + } + + protected void populateObject(Object object) throws Exception { + super.populateObject(object); + JournalTransaction info = (JournalTransaction) object; + + info.setTransactionId(createTransactionId("TransactionId:1")); + info.setType((byte) 1); + info.setWasPrepared(true); + } +} diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v9/KeepAliveInfoTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v9/KeepAliveInfoTest.java index aa04459bb7e..e462be3f352 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v9/KeepAliveInfoTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v9/KeepAliveInfoTest.java @@ -1 +1,59 @@ -/** * * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.activemq.openwire.v9; import java.io.DataInputStream; import java.io.DataOutputStream; import java.io.IOException; import org.apache.activemq.openwire.*; import org.apache.activemq.command.*; /** * Test case for the OpenWire marshalling for KeepAliveInfo * * * NOTE!: This file is auto generated - do not modify! * if you need to make a change, please see the modify the groovy scripts in the * under src/gram/script and then use maven openwire:generate to regenerate * this file. * * */ public class KeepAliveInfoTest extends BaseCommandTestSupport { public static KeepAliveInfoTest SINGLETON = new KeepAliveInfoTest(); public Object createObject() throws Exception { KeepAliveInfo info = new KeepAliveInfo(); populateObject(info); return info; } protected void populateObject(Object object) throws Exception { super.populateObject(object); KeepAliveInfo info = (KeepAliveInfo) object; } } \ No newline at end of file +/** + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.apache.activemq.openwire.v9; + +import java.io.DataInputStream; +import java.io.DataOutputStream; +import java.io.IOException; + +import org.apache.activemq.openwire.*; +import org.apache.activemq.command.*; + + +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; +/** + * Test case for the OpenWire marshalling for KeepAliveInfo + * + * + * NOTE!: This file is auto generated - do not modify! + * if you need to make a change, please see the modify the groovy scripts in the + * under src/gram/script and then use maven openwire:generate to regenerate + * this file. + * + * + */ +@Category(ParallelTest.class) + +public class KeepAliveInfoTest extends BaseCommandTestSupport { + + + public static KeepAliveInfoTest SINGLETON = new KeepAliveInfoTest(); + + public Object createObject() throws Exception { + KeepAliveInfo info = new KeepAliveInfo(); + populateObject(info); + return info; + } + + protected void populateObject(Object object) throws Exception { + super.populateObject(object); + KeepAliveInfo info = (KeepAliveInfo) object; + + } +} diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v9/LastPartialCommandTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v9/LastPartialCommandTest.java index 6073a933119..f595741e6c8 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v9/LastPartialCommandTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v9/LastPartialCommandTest.java @@ -1 +1,59 @@ -/** * * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.activemq.openwire.v9; import java.io.DataInputStream; import java.io.DataOutputStream; import java.io.IOException; import org.apache.activemq.openwire.*; import org.apache.activemq.command.*; /** * Test case for the OpenWire marshalling for LastPartialCommand * * * NOTE!: This file is auto generated - do not modify! * if you need to make a change, please see the modify the groovy scripts in the * under src/gram/script and then use maven openwire:generate to regenerate * this file. * * */ public class LastPartialCommandTest extends PartialCommandTest { public static LastPartialCommandTest SINGLETON = new LastPartialCommandTest(); public Object createObject() throws Exception { LastPartialCommand info = new LastPartialCommand(); populateObject(info); return info; } protected void populateObject(Object object) throws Exception { super.populateObject(object); LastPartialCommand info = (LastPartialCommand) object; } } \ No newline at end of file +/** + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.apache.activemq.openwire.v9; + +import java.io.DataInputStream; +import java.io.DataOutputStream; +import java.io.IOException; + +import org.apache.activemq.openwire.*; +import org.apache.activemq.command.*; + + +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; +/** + * Test case for the OpenWire marshalling for LastPartialCommand + * + * + * NOTE!: This file is auto generated - do not modify! + * if you need to make a change, please see the modify the groovy scripts in the + * under src/gram/script and then use maven openwire:generate to regenerate + * this file. + * + * + */ +@Category(ParallelTest.class) + +public class LastPartialCommandTest extends PartialCommandTest { + + + public static LastPartialCommandTest SINGLETON = new LastPartialCommandTest(); + + public Object createObject() throws Exception { + LastPartialCommand info = new LastPartialCommand(); + populateObject(info); + return info; + } + + protected void populateObject(Object object) throws Exception { + super.populateObject(object); + LastPartialCommand info = (LastPartialCommand) object; + + } +} diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v9/LocalTransactionIdTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v9/LocalTransactionIdTest.java index 92fde531722..60b138840a4 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v9/LocalTransactionIdTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v9/LocalTransactionIdTest.java @@ -1 +1,61 @@ -/** * * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.activemq.openwire.v9; import java.io.DataInputStream; import java.io.DataOutputStream; import java.io.IOException; import org.apache.activemq.openwire.*; import org.apache.activemq.command.*; /** * Test case for the OpenWire marshalling for LocalTransactionId * * * NOTE!: This file is auto generated - do not modify! * if you need to make a change, please see the modify the groovy scripts in the * under src/gram/script and then use maven openwire:generate to regenerate * this file. * * */ public class LocalTransactionIdTest extends TransactionIdTestSupport { public static LocalTransactionIdTest SINGLETON = new LocalTransactionIdTest(); public Object createObject() throws Exception { LocalTransactionId info = new LocalTransactionId(); populateObject(info); return info; } protected void populateObject(Object object) throws Exception { super.populateObject(object); LocalTransactionId info = (LocalTransactionId) object; info.setValue(1); info.setConnectionId(createConnectionId("ConnectionId:1")); } } \ No newline at end of file +/** + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.apache.activemq.openwire.v9; + +import java.io.DataInputStream; +import java.io.DataOutputStream; +import java.io.IOException; + +import org.apache.activemq.openwire.*; +import org.apache.activemq.command.*; + + +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; +/** + * Test case for the OpenWire marshalling for LocalTransactionId + * + * + * NOTE!: This file is auto generated - do not modify! + * if you need to make a change, please see the modify the groovy scripts in the + * under src/gram/script and then use maven openwire:generate to regenerate + * this file. + * + * + */ +@Category(ParallelTest.class) + +public class LocalTransactionIdTest extends TransactionIdTestSupport { + + + public static LocalTransactionIdTest SINGLETON = new LocalTransactionIdTest(); + + public Object createObject() throws Exception { + LocalTransactionId info = new LocalTransactionId(); + populateObject(info); + return info; + } + + protected void populateObject(Object object) throws Exception { + super.populateObject(object); + LocalTransactionId info = (LocalTransactionId) object; + + info.setValue(1); + info.setConnectionId(createConnectionId("ConnectionId:1")); + } +} diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v9/MessageAckTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v9/MessageAckTest.java index 975042f2f80..a4ebc17c2c1 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v9/MessageAckTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v9/MessageAckTest.java @@ -1 +1,67 @@ -/** * * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.activemq.openwire.v9; import java.io.DataInputStream; import java.io.DataOutputStream; import java.io.IOException; import org.apache.activemq.openwire.*; import org.apache.activemq.command.*; /** * Test case for the OpenWire marshalling for MessageAck * * * NOTE!: This file is auto generated - do not modify! * if you need to make a change, please see the modify the groovy scripts in the * under src/gram/script and then use maven openwire:generate to regenerate * this file. * * */ public class MessageAckTest extends BaseCommandTestSupport { public static MessageAckTest SINGLETON = new MessageAckTest(); public Object createObject() throws Exception { MessageAck info = new MessageAck(); populateObject(info); return info; } protected void populateObject(Object object) throws Exception { super.populateObject(object); MessageAck info = (MessageAck) object; info.setDestination(createActiveMQDestination("Destination:1")); info.setTransactionId(createTransactionId("TransactionId:2")); info.setConsumerId(createConsumerId("ConsumerId:3")); info.setAckType((byte) 1); info.setFirstMessageId(createMessageId("FirstMessageId:4")); info.setLastMessageId(createMessageId("LastMessageId:5")); info.setMessageCount(1); info.setPoisonCause(createThrowable("PoisonCause:6")); } } \ No newline at end of file +/** + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.apache.activemq.openwire.v9; + +import java.io.DataInputStream; +import java.io.DataOutputStream; +import java.io.IOException; + +import org.apache.activemq.openwire.*; +import org.apache.activemq.command.*; + + +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; +/** + * Test case for the OpenWire marshalling for MessageAck + * + * + * NOTE!: This file is auto generated - do not modify! + * if you need to make a change, please see the modify the groovy scripts in the + * under src/gram/script and then use maven openwire:generate to regenerate + * this file. + * + * + */ +@Category(ParallelTest.class) + +public class MessageAckTest extends BaseCommandTestSupport { + + + public static MessageAckTest SINGLETON = new MessageAckTest(); + + public Object createObject() throws Exception { + MessageAck info = new MessageAck(); + populateObject(info); + return info; + } + + protected void populateObject(Object object) throws Exception { + super.populateObject(object); + MessageAck info = (MessageAck) object; + + info.setDestination(createActiveMQDestination("Destination:1")); + info.setTransactionId(createTransactionId("TransactionId:2")); + info.setConsumerId(createConsumerId("ConsumerId:3")); + info.setAckType((byte) 1); + info.setFirstMessageId(createMessageId("FirstMessageId:4")); + info.setLastMessageId(createMessageId("LastMessageId:5")); + info.setMessageCount(1); + info.setPoisonCause(createThrowable("PoisonCause:6")); + } +} diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v9/MessageDispatchNotificationTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v9/MessageDispatchNotificationTest.java index d335b0bbeae..ea423d2ae99 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v9/MessageDispatchNotificationTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v9/MessageDispatchNotificationTest.java @@ -1 +1,63 @@ -/** * * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.activemq.openwire.v9; import java.io.DataInputStream; import java.io.DataOutputStream; import java.io.IOException; import org.apache.activemq.openwire.*; import org.apache.activemq.command.*; /** * Test case for the OpenWire marshalling for MessageDispatchNotification * * * NOTE!: This file is auto generated - do not modify! * if you need to make a change, please see the modify the groovy scripts in the * under src/gram/script and then use maven openwire:generate to regenerate * this file. * * */ public class MessageDispatchNotificationTest extends BaseCommandTestSupport { public static MessageDispatchNotificationTest SINGLETON = new MessageDispatchNotificationTest(); public Object createObject() throws Exception { MessageDispatchNotification info = new MessageDispatchNotification(); populateObject(info); return info; } protected void populateObject(Object object) throws Exception { super.populateObject(object); MessageDispatchNotification info = (MessageDispatchNotification) object; info.setConsumerId(createConsumerId("ConsumerId:1")); info.setDestination(createActiveMQDestination("Destination:2")); info.setDeliverySequenceId(1); info.setMessageId(createMessageId("MessageId:3")); } } \ No newline at end of file +/** + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.apache.activemq.openwire.v9; + +import java.io.DataInputStream; +import java.io.DataOutputStream; +import java.io.IOException; + +import org.apache.activemq.openwire.*; +import org.apache.activemq.command.*; + + +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; +/** + * Test case for the OpenWire marshalling for MessageDispatchNotification + * + * + * NOTE!: This file is auto generated - do not modify! + * if you need to make a change, please see the modify the groovy scripts in the + * under src/gram/script and then use maven openwire:generate to regenerate + * this file. + * + * + */ +@Category(ParallelTest.class) + +public class MessageDispatchNotificationTest extends BaseCommandTestSupport { + + + public static MessageDispatchNotificationTest SINGLETON = new MessageDispatchNotificationTest(); + + public Object createObject() throws Exception { + MessageDispatchNotification info = new MessageDispatchNotification(); + populateObject(info); + return info; + } + + protected void populateObject(Object object) throws Exception { + super.populateObject(object); + MessageDispatchNotification info = (MessageDispatchNotification) object; + + info.setConsumerId(createConsumerId("ConsumerId:1")); + info.setDestination(createActiveMQDestination("Destination:2")); + info.setDeliverySequenceId(1); + info.setMessageId(createMessageId("MessageId:3")); + } +} diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v9/MessageDispatchTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v9/MessageDispatchTest.java index 38fb0dc0a11..94039cdbbab 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v9/MessageDispatchTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v9/MessageDispatchTest.java @@ -1 +1,63 @@ -/** * * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.activemq.openwire.v9; import java.io.DataInputStream; import java.io.DataOutputStream; import java.io.IOException; import org.apache.activemq.openwire.*; import org.apache.activemq.command.*; /** * Test case for the OpenWire marshalling for MessageDispatch * * * NOTE!: This file is auto generated - do not modify! * if you need to make a change, please see the modify the groovy scripts in the * under src/gram/script and then use maven openwire:generate to regenerate * this file. * * */ public class MessageDispatchTest extends BaseCommandTestSupport { public static MessageDispatchTest SINGLETON = new MessageDispatchTest(); public Object createObject() throws Exception { MessageDispatch info = new MessageDispatch(); populateObject(info); return info; } protected void populateObject(Object object) throws Exception { super.populateObject(object); MessageDispatch info = (MessageDispatch) object; info.setConsumerId(createConsumerId("ConsumerId:1")); info.setDestination(createActiveMQDestination("Destination:2")); info.setMessage(createMessage("Message:3")); info.setRedeliveryCounter(1); } } \ No newline at end of file +/** + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.apache.activemq.openwire.v9; + +import java.io.DataInputStream; +import java.io.DataOutputStream; +import java.io.IOException; + +import org.apache.activemq.openwire.*; +import org.apache.activemq.command.*; + + +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; +/** + * Test case for the OpenWire marshalling for MessageDispatch + * + * + * NOTE!: This file is auto generated - do not modify! + * if you need to make a change, please see the modify the groovy scripts in the + * under src/gram/script and then use maven openwire:generate to regenerate + * this file. + * + * + */ +@Category(ParallelTest.class) + +public class MessageDispatchTest extends BaseCommandTestSupport { + + + public static MessageDispatchTest SINGLETON = new MessageDispatchTest(); + + public Object createObject() throws Exception { + MessageDispatch info = new MessageDispatch(); + populateObject(info); + return info; + } + + protected void populateObject(Object object) throws Exception { + super.populateObject(object); + MessageDispatch info = (MessageDispatch) object; + + info.setConsumerId(createConsumerId("ConsumerId:1")); + info.setDestination(createActiveMQDestination("Destination:2")); + info.setMessage(createMessage("Message:3")); + info.setRedeliveryCounter(1); + } +} diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v9/MessageIdTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v9/MessageIdTest.java index d64c66e1c08..fd83d1ea934 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v9/MessageIdTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v9/MessageIdTest.java @@ -1 +1,62 @@ -/** * * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.activemq.openwire.v9; import java.io.DataInputStream; import java.io.DataOutputStream; import java.io.IOException; import org.apache.activemq.openwire.*; import org.apache.activemq.command.*; /** * Test case for the OpenWire marshalling for MessageId * * * NOTE!: This file is auto generated - do not modify! * if you need to make a change, please see the modify the groovy scripts in the * under src/gram/script and then use maven openwire:generate to regenerate * this file. * * */ public class MessageIdTest extends DataFileGeneratorTestSupport { public static MessageIdTest SINGLETON = new MessageIdTest(); public Object createObject() throws Exception { MessageId info = new MessageId(); populateObject(info); return info; } protected void populateObject(Object object) throws Exception { super.populateObject(object); MessageId info = (MessageId) object; info.setProducerId(createProducerId("ProducerId:1")); info.setProducerSequenceId(1); info.setBrokerSequenceId(2); } } \ No newline at end of file +/** + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.apache.activemq.openwire.v9; + +import java.io.DataInputStream; +import java.io.DataOutputStream; +import java.io.IOException; + +import org.apache.activemq.openwire.*; +import org.apache.activemq.command.*; + + +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; +/** + * Test case for the OpenWire marshalling for MessageId + * + * + * NOTE!: This file is auto generated - do not modify! + * if you need to make a change, please see the modify the groovy scripts in the + * under src/gram/script and then use maven openwire:generate to regenerate + * this file. + * + * + */ +@Category(ParallelTest.class) + +public class MessageIdTest extends DataFileGeneratorTestSupport { + + + public static MessageIdTest SINGLETON = new MessageIdTest(); + + public Object createObject() throws Exception { + MessageId info = new MessageId(); + populateObject(info); + return info; + } + + protected void populateObject(Object object) throws Exception { + super.populateObject(object); + MessageId info = (MessageId) object; + + info.setProducerId(createProducerId("ProducerId:1")); + info.setProducerSequenceId(1); + info.setBrokerSequenceId(2); + } +} diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v9/MessagePullTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v9/MessagePullTest.java index 55af8b1a3f8..e7790af6c94 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v9/MessagePullTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v9/MessagePullTest.java @@ -1 +1,64 @@ -/** * * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.activemq.openwire.v9; import java.io.DataInputStream; import java.io.DataOutputStream; import java.io.IOException; import org.apache.activemq.openwire.*; import org.apache.activemq.command.*; /** * Test case for the OpenWire marshalling for MessagePull * * * NOTE!: This file is auto generated - do not modify! * if you need to make a change, please see the modify the groovy scripts in the * under src/gram/script and then use maven openwire:generate to regenerate * this file. * * */ public class MessagePullTest extends BaseCommandTestSupport { public static MessagePullTest SINGLETON = new MessagePullTest(); public Object createObject() throws Exception { MessagePull info = new MessagePull(); populateObject(info); return info; } protected void populateObject(Object object) throws Exception { super.populateObject(object); MessagePull info = (MessagePull) object; info.setConsumerId(createConsumerId("ConsumerId:1")); info.setDestination(createActiveMQDestination("Destination:2")); info.setTimeout(1); info.setCorrelationId("CorrelationId:3"); info.setMessageId(createMessageId("MessageId:4")); } } \ No newline at end of file +/** + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.apache.activemq.openwire.v9; + +import java.io.DataInputStream; +import java.io.DataOutputStream; +import java.io.IOException; + +import org.apache.activemq.openwire.*; +import org.apache.activemq.command.*; + + +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; +/** + * Test case for the OpenWire marshalling for MessagePull + * + * + * NOTE!: This file is auto generated - do not modify! + * if you need to make a change, please see the modify the groovy scripts in the + * under src/gram/script and then use maven openwire:generate to regenerate + * this file. + * + * + */ +@Category(ParallelTest.class) + +public class MessagePullTest extends BaseCommandTestSupport { + + + public static MessagePullTest SINGLETON = new MessagePullTest(); + + public Object createObject() throws Exception { + MessagePull info = new MessagePull(); + populateObject(info); + return info; + } + + protected void populateObject(Object object) throws Exception { + super.populateObject(object); + MessagePull info = (MessagePull) object; + + info.setConsumerId(createConsumerId("ConsumerId:1")); + info.setDestination(createActiveMQDestination("Destination:2")); + info.setTimeout(1); + info.setCorrelationId("CorrelationId:3"); + info.setMessageId(createMessageId("MessageId:4")); + } +} diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v9/MessageTestSupport.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v9/MessageTestSupport.java index 3557528dee8..0fc6583c2de 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v9/MessageTestSupport.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v9/MessageTestSupport.java @@ -1 +1,89 @@ -/** * * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.activemq.openwire.v9; import org.apache.activemq.command.*; /** * Test case for the OpenWire marshalling for Message * * * NOTE!: This file is auto generated - do not modify! * if you need to make a change, please see the modify the groovy scripts in the * under src/gram/script and then use maven openwire:generate to regenerate * this file. * * */ public abstract class MessageTestSupport extends BaseCommandTestSupport { protected void populateObject(Object object) throws Exception { super.populateObject(object); Message info = (Message) object; info.setProducerId(createProducerId("ProducerId:1")); info.setDestination(createActiveMQDestination("Destination:2")); info.setTransactionId(createTransactionId("TransactionId:3")); info.setOriginalDestination(createActiveMQDestination("OriginalDestination:4")); info.setMessageId(createMessageId("MessageId:5")); info.setOriginalTransactionId(createTransactionId("OriginalTransactionId:6")); info.setGroupID("GroupID:7"); info.setGroupSequence(1); info.setCorrelationId("CorrelationId:8"); info.setPersistent(true); info.setExpiration(1); info.setPriority((byte) 1); info.setReplyTo(createActiveMQDestination("ReplyTo:9")); info.setTimestamp(2); info.setType("Type:10"); { byte data[] = "Content:11".getBytes(); info.setContent(new org.apache.activemq.util.ByteSequence(data,0,data.length)); } { byte data[] = "MarshalledProperties:12".getBytes(); info.setMarshalledProperties(new org.apache.activemq.util.ByteSequence(data,0,data.length)); } info.setDataStructure(createDataStructure("DataStructure:13")); info.setTargetConsumerId(createConsumerId("TargetConsumerId:14")); info.setCompressed(false); info.setRedeliveryCounter(2); { BrokerId value[] = new BrokerId[2]; for( int i=0; i < 2; i++ ) { value[i] = createBrokerId("BrokerPath:15"); } info.setBrokerPath(value); } info.setArrival(3); info.setUserID("UserID:16"); info.setRecievedByDFBridge(true); info.setDroppable(false); { BrokerId value[] = new BrokerId[2]; for( int i=0; i < 2; i++ ) { value[i] = createBrokerId("Cluster:17"); } info.setCluster(value); } info.setBrokerInTime(4); info.setBrokerOutTime(5); } } \ No newline at end of file +/** + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.apache.activemq.openwire.v9; + +import org.apache.activemq.command.*; +/** + * Test case for the OpenWire marshalling for Message + * + * + * NOTE!: This file is auto generated - do not modify! + * if you need to make a change, please see the modify the groovy scripts in the + * under src/gram/script and then use maven openwire:generate to regenerate + * this file. + * + * + */ + + +public abstract class MessageTestSupport extends BaseCommandTestSupport { + + + protected void populateObject(Object object) throws Exception { + super.populateObject(object); + Message info = (Message) object; + + info.setProducerId(createProducerId("ProducerId:1")); + info.setDestination(createActiveMQDestination("Destination:2")); + info.setTransactionId(createTransactionId("TransactionId:3")); + info.setOriginalDestination(createActiveMQDestination("OriginalDestination:4")); + info.setMessageId(createMessageId("MessageId:5")); + info.setOriginalTransactionId(createTransactionId("OriginalTransactionId:6")); + info.setGroupID("GroupID:7"); + info.setGroupSequence(1); + info.setCorrelationId("CorrelationId:8"); + info.setPersistent(true); + info.setExpiration(1); + info.setPriority((byte) 1); + info.setReplyTo(createActiveMQDestination("ReplyTo:9")); + info.setTimestamp(2); + info.setType("Type:10"); + { + byte data[] = "Content:11".getBytes(); + info.setContent(new org.apache.activemq.util.ByteSequence(data,0,data.length)); +} + { + byte data[] = "MarshalledProperties:12".getBytes(); + info.setMarshalledProperties(new org.apache.activemq.util.ByteSequence(data,0,data.length)); +} + info.setDataStructure(createDataStructure("DataStructure:13")); + info.setTargetConsumerId(createConsumerId("TargetConsumerId:14")); + info.setCompressed(false); + info.setRedeliveryCounter(2); + { + BrokerId value[] = new BrokerId[2]; + for( int i=0; i < 2; i++ ) { + value[i] = createBrokerId("BrokerPath:15"); + } + info.setBrokerPath(value); + } + info.setArrival(3); + info.setUserID("UserID:16"); + info.setRecievedByDFBridge(true); + info.setDroppable(false); + { + BrokerId value[] = new BrokerId[2]; + for( int i=0; i < 2; i++ ) { + value[i] = createBrokerId("Cluster:17"); + } + info.setCluster(value); + } + info.setBrokerInTime(4); + info.setBrokerOutTime(5); + } +} diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v9/NetworkBridgeFilterTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v9/NetworkBridgeFilterTest.java index 9b9c5011099..64857862283 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v9/NetworkBridgeFilterTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v9/NetworkBridgeFilterTest.java @@ -1 +1,61 @@ -/** * * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.activemq.openwire.v9; import java.io.DataInputStream; import java.io.DataOutputStream; import java.io.IOException; import org.apache.activemq.openwire.*; import org.apache.activemq.command.*; /** * Test case for the OpenWire marshalling for NetworkBridgeFilter * * * NOTE!: This file is auto generated - do not modify! * if you need to make a change, please see the modify the groovy scripts in the * under src/gram/script and then use maven openwire:generate to regenerate * this file. * * */ public class NetworkBridgeFilterTest extends DataFileGeneratorTestSupport { public static NetworkBridgeFilterTest SINGLETON = new NetworkBridgeFilterTest(); public Object createObject() throws Exception { NetworkBridgeFilter info = new NetworkBridgeFilter(); populateObject(info); return info; } protected void populateObject(Object object) throws Exception { super.populateObject(object); NetworkBridgeFilter info = (NetworkBridgeFilter) object; info.setNetworkTTL(1); info.setNetworkBrokerId(createBrokerId("NetworkBrokerId:1")); } } \ No newline at end of file +/** + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.apache.activemq.openwire.v9; + +import java.io.DataInputStream; +import java.io.DataOutputStream; +import java.io.IOException; + +import org.apache.activemq.openwire.*; +import org.apache.activemq.command.*; + + +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; +/** + * Test case for the OpenWire marshalling for NetworkBridgeFilter + * + * + * NOTE!: This file is auto generated - do not modify! + * if you need to make a change, please see the modify the groovy scripts in the + * under src/gram/script and then use maven openwire:generate to regenerate + * this file. + * + * + */ +@Category(ParallelTest.class) + +public class NetworkBridgeFilterTest extends DataFileGeneratorTestSupport { + + + public static NetworkBridgeFilterTest SINGLETON = new NetworkBridgeFilterTest(); + + public Object createObject() throws Exception { + NetworkBridgeFilter info = new NetworkBridgeFilter(); + populateObject(info); + return info; + } + + protected void populateObject(Object object) throws Exception { + super.populateObject(object); + NetworkBridgeFilter info = (NetworkBridgeFilter) object; + + info.setNetworkTTL(1); + info.setNetworkBrokerId(createBrokerId("NetworkBrokerId:1")); + } +} diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v9/PartialCommandTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v9/PartialCommandTest.java index f79e06716a8..80d03a02a4a 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v9/PartialCommandTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v9/PartialCommandTest.java @@ -1 +1,61 @@ -/** * * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.activemq.openwire.v9; import java.io.DataInputStream; import java.io.DataOutputStream; import java.io.IOException; import org.apache.activemq.openwire.*; import org.apache.activemq.command.*; /** * Test case for the OpenWire marshalling for PartialCommand * * * NOTE!: This file is auto generated - do not modify! * if you need to make a change, please see the modify the groovy scripts in the * under src/gram/script and then use maven openwire:generate to regenerate * this file. * * */ public class PartialCommandTest extends DataFileGeneratorTestSupport { public static PartialCommandTest SINGLETON = new PartialCommandTest(); public Object createObject() throws Exception { PartialCommand info = new PartialCommand(); populateObject(info); return info; } protected void populateObject(Object object) throws Exception { super.populateObject(object); PartialCommand info = (PartialCommand) object; info.setCommandId(1); info.setData("Data:1".getBytes()); } } \ No newline at end of file +/** + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.apache.activemq.openwire.v9; + +import java.io.DataInputStream; +import java.io.DataOutputStream; +import java.io.IOException; + +import org.apache.activemq.openwire.*; +import org.apache.activemq.command.*; + + +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; +/** + * Test case for the OpenWire marshalling for PartialCommand + * + * + * NOTE!: This file is auto generated - do not modify! + * if you need to make a change, please see the modify the groovy scripts in the + * under src/gram/script and then use maven openwire:generate to regenerate + * this file. + * + * + */ +@Category(ParallelTest.class) + +public class PartialCommandTest extends DataFileGeneratorTestSupport { + + + public static PartialCommandTest SINGLETON = new PartialCommandTest(); + + public Object createObject() throws Exception { + PartialCommand info = new PartialCommand(); + populateObject(info); + return info; + } + + protected void populateObject(Object object) throws Exception { + super.populateObject(object); + PartialCommand info = (PartialCommand) object; + + info.setCommandId(1); + info.setData("Data:1".getBytes()); + } +} diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v9/ProducerAckTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v9/ProducerAckTest.java index 226a8f8fae7..1dd34229d10 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v9/ProducerAckTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v9/ProducerAckTest.java @@ -1 +1,61 @@ -/** * * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.activemq.openwire.v9; import java.io.DataInputStream; import java.io.DataOutputStream; import java.io.IOException; import org.apache.activemq.openwire.*; import org.apache.activemq.command.*; /** * Test case for the OpenWire marshalling for ProducerAck * * * NOTE!: This file is auto generated - do not modify! * if you need to make a change, please see the modify the groovy scripts in the * under src/gram/script and then use maven openwire:generate to regenerate * this file. * * */ public class ProducerAckTest extends BaseCommandTestSupport { public static ProducerAckTest SINGLETON = new ProducerAckTest(); public Object createObject() throws Exception { ProducerAck info = new ProducerAck(); populateObject(info); return info; } protected void populateObject(Object object) throws Exception { super.populateObject(object); ProducerAck info = (ProducerAck) object; info.setProducerId(createProducerId("ProducerId:1")); info.setSize(1); } } \ No newline at end of file +/** + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.apache.activemq.openwire.v9; + +import java.io.DataInputStream; +import java.io.DataOutputStream; +import java.io.IOException; + +import org.apache.activemq.openwire.*; +import org.apache.activemq.command.*; + + +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; +/** + * Test case for the OpenWire marshalling for ProducerAck + * + * + * NOTE!: This file is auto generated - do not modify! + * if you need to make a change, please see the modify the groovy scripts in the + * under src/gram/script and then use maven openwire:generate to regenerate + * this file. + * + * + */ +@Category(ParallelTest.class) + +public class ProducerAckTest extends BaseCommandTestSupport { + + + public static ProducerAckTest SINGLETON = new ProducerAckTest(); + + public Object createObject() throws Exception { + ProducerAck info = new ProducerAck(); + populateObject(info); + return info; + } + + protected void populateObject(Object object) throws Exception { + super.populateObject(object); + ProducerAck info = (ProducerAck) object; + + info.setProducerId(createProducerId("ProducerId:1")); + info.setSize(1); + } +} diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v9/ProducerIdTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v9/ProducerIdTest.java index 72d7e35a24f..8e3ebe37ecc 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v9/ProducerIdTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v9/ProducerIdTest.java @@ -1 +1,62 @@ -/** * * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.activemq.openwire.v9; import java.io.DataInputStream; import java.io.DataOutputStream; import java.io.IOException; import org.apache.activemq.openwire.*; import org.apache.activemq.command.*; /** * Test case for the OpenWire marshalling for ProducerId * * * NOTE!: This file is auto generated - do not modify! * if you need to make a change, please see the modify the groovy scripts in the * under src/gram/script and then use maven openwire:generate to regenerate * this file. * * */ public class ProducerIdTest extends DataFileGeneratorTestSupport { public static ProducerIdTest SINGLETON = new ProducerIdTest(); public Object createObject() throws Exception { ProducerId info = new ProducerId(); populateObject(info); return info; } protected void populateObject(Object object) throws Exception { super.populateObject(object); ProducerId info = (ProducerId) object; info.setConnectionId("ConnectionId:1"); info.setValue(1); info.setSessionId(2); } } \ No newline at end of file +/** + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.apache.activemq.openwire.v9; + +import java.io.DataInputStream; +import java.io.DataOutputStream; +import java.io.IOException; + +import org.apache.activemq.openwire.*; +import org.apache.activemq.command.*; + + +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; +/** + * Test case for the OpenWire marshalling for ProducerId + * + * + * NOTE!: This file is auto generated - do not modify! + * if you need to make a change, please see the modify the groovy scripts in the + * under src/gram/script and then use maven openwire:generate to regenerate + * this file. + * + * + */ +@Category(ParallelTest.class) + +public class ProducerIdTest extends DataFileGeneratorTestSupport { + + + public static ProducerIdTest SINGLETON = new ProducerIdTest(); + + public Object createObject() throws Exception { + ProducerId info = new ProducerId(); + populateObject(info); + return info; + } + + protected void populateObject(Object object) throws Exception { + super.populateObject(object); + ProducerId info = (ProducerId) object; + + info.setConnectionId("ConnectionId:1"); + info.setValue(1); + info.setSessionId(2); + } +} diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v9/ProducerInfoTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v9/ProducerInfoTest.java index 131c4780754..6b7724330af 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v9/ProducerInfoTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v9/ProducerInfoTest.java @@ -1 +1,70 @@ -/** * * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.activemq.openwire.v9; import java.io.DataInputStream; import java.io.DataOutputStream; import java.io.IOException; import org.apache.activemq.openwire.*; import org.apache.activemq.command.*; /** * Test case for the OpenWire marshalling for ProducerInfo * * * NOTE!: This file is auto generated - do not modify! * if you need to make a change, please see the modify the groovy scripts in the * under src/gram/script and then use maven openwire:generate to regenerate * this file. * * */ public class ProducerInfoTest extends BaseCommandTestSupport { public static ProducerInfoTest SINGLETON = new ProducerInfoTest(); public Object createObject() throws Exception { ProducerInfo info = new ProducerInfo(); populateObject(info); return info; } protected void populateObject(Object object) throws Exception { super.populateObject(object); ProducerInfo info = (ProducerInfo) object; info.setProducerId(createProducerId("ProducerId:1")); info.setDestination(createActiveMQDestination("Destination:2")); { BrokerId value[] = new BrokerId[2]; for( int i=0; i < 2; i++ ) { value[i] = createBrokerId("BrokerPath:3"); } info.setBrokerPath(value); } info.setDispatchAsync(true); info.setWindowSize(1); } } \ No newline at end of file +/** + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.apache.activemq.openwire.v9; + +import java.io.DataInputStream; +import java.io.DataOutputStream; +import java.io.IOException; + +import org.apache.activemq.openwire.*; +import org.apache.activemq.command.*; + + +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; +/** + * Test case for the OpenWire marshalling for ProducerInfo + * + * + * NOTE!: This file is auto generated - do not modify! + * if you need to make a change, please see the modify the groovy scripts in the + * under src/gram/script and then use maven openwire:generate to regenerate + * this file. + * + * + */ +@Category(ParallelTest.class) + +public class ProducerInfoTest extends BaseCommandTestSupport { + + + public static ProducerInfoTest SINGLETON = new ProducerInfoTest(); + + public Object createObject() throws Exception { + ProducerInfo info = new ProducerInfo(); + populateObject(info); + return info; + } + + protected void populateObject(Object object) throws Exception { + super.populateObject(object); + ProducerInfo info = (ProducerInfo) object; + + info.setProducerId(createProducerId("ProducerId:1")); + info.setDestination(createActiveMQDestination("Destination:2")); + { + BrokerId value[] = new BrokerId[2]; + for( int i=0; i < 2; i++ ) { + value[i] = createBrokerId("BrokerPath:3"); + } + info.setBrokerPath(value); + } + info.setDispatchAsync(true); + info.setWindowSize(1); + } +} diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v9/RemoveInfoTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v9/RemoveInfoTest.java index de9b5cd2b40..16b19e35029 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v9/RemoveInfoTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v9/RemoveInfoTest.java @@ -1 +1,61 @@ -/** * * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.activemq.openwire.v9; import java.io.DataInputStream; import java.io.DataOutputStream; import java.io.IOException; import org.apache.activemq.openwire.*; import org.apache.activemq.command.*; /** * Test case for the OpenWire marshalling for RemoveInfo * * * NOTE!: This file is auto generated - do not modify! * if you need to make a change, please see the modify the groovy scripts in the * under src/gram/script and then use maven openwire:generate to regenerate * this file. * * */ public class RemoveInfoTest extends BaseCommandTestSupport { public static RemoveInfoTest SINGLETON = new RemoveInfoTest(); public Object createObject() throws Exception { RemoveInfo info = new RemoveInfo(); populateObject(info); return info; } protected void populateObject(Object object) throws Exception { super.populateObject(object); RemoveInfo info = (RemoveInfo) object; info.setObjectId(createDataStructure("ObjectId:1")); info.setLastDeliveredSequenceId(1); } } \ No newline at end of file +/** + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.apache.activemq.openwire.v9; + +import java.io.DataInputStream; +import java.io.DataOutputStream; +import java.io.IOException; + +import org.apache.activemq.openwire.*; +import org.apache.activemq.command.*; + + +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; +/** + * Test case for the OpenWire marshalling for RemoveInfo + * + * + * NOTE!: This file is auto generated - do not modify! + * if you need to make a change, please see the modify the groovy scripts in the + * under src/gram/script and then use maven openwire:generate to regenerate + * this file. + * + * + */ +@Category(ParallelTest.class) + +public class RemoveInfoTest extends BaseCommandTestSupport { + + + public static RemoveInfoTest SINGLETON = new RemoveInfoTest(); + + public Object createObject() throws Exception { + RemoveInfo info = new RemoveInfo(); + populateObject(info); + return info; + } + + protected void populateObject(Object object) throws Exception { + super.populateObject(object); + RemoveInfo info = (RemoveInfo) object; + + info.setObjectId(createDataStructure("ObjectId:1")); + info.setLastDeliveredSequenceId(1); + } +} diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v9/RemoveSubscriptionInfoTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v9/RemoveSubscriptionInfoTest.java index 9683e33f538..3024bdc137f 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v9/RemoveSubscriptionInfoTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v9/RemoveSubscriptionInfoTest.java @@ -1 +1,62 @@ -/** * * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.activemq.openwire.v9; import java.io.DataInputStream; import java.io.DataOutputStream; import java.io.IOException; import org.apache.activemq.openwire.*; import org.apache.activemq.command.*; /** * Test case for the OpenWire marshalling for RemoveSubscriptionInfo * * * NOTE!: This file is auto generated - do not modify! * if you need to make a change, please see the modify the groovy scripts in the * under src/gram/script and then use maven openwire:generate to regenerate * this file. * * */ public class RemoveSubscriptionInfoTest extends BaseCommandTestSupport { public static RemoveSubscriptionInfoTest SINGLETON = new RemoveSubscriptionInfoTest(); public Object createObject() throws Exception { RemoveSubscriptionInfo info = new RemoveSubscriptionInfo(); populateObject(info); return info; } protected void populateObject(Object object) throws Exception { super.populateObject(object); RemoveSubscriptionInfo info = (RemoveSubscriptionInfo) object; info.setConnectionId(createConnectionId("ConnectionId:1")); info.setSubcriptionName("SubcriptionName:2"); info.setClientId("ClientId:3"); } } \ No newline at end of file +/** + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.apache.activemq.openwire.v9; + +import java.io.DataInputStream; +import java.io.DataOutputStream; +import java.io.IOException; + +import org.apache.activemq.openwire.*; +import org.apache.activemq.command.*; + + +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; +/** + * Test case for the OpenWire marshalling for RemoveSubscriptionInfo + * + * + * NOTE!: This file is auto generated - do not modify! + * if you need to make a change, please see the modify the groovy scripts in the + * under src/gram/script and then use maven openwire:generate to regenerate + * this file. + * + * + */ +@Category(ParallelTest.class) + +public class RemoveSubscriptionInfoTest extends BaseCommandTestSupport { + + + public static RemoveSubscriptionInfoTest SINGLETON = new RemoveSubscriptionInfoTest(); + + public Object createObject() throws Exception { + RemoveSubscriptionInfo info = new RemoveSubscriptionInfo(); + populateObject(info); + return info; + } + + protected void populateObject(Object object) throws Exception { + super.populateObject(object); + RemoveSubscriptionInfo info = (RemoveSubscriptionInfo) object; + + info.setConnectionId(createConnectionId("ConnectionId:1")); + info.setSubcriptionName("SubcriptionName:2"); + info.setClientId("ClientId:3"); + } +} diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v9/ReplayCommandTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v9/ReplayCommandTest.java index 22ede48c93a..6918ef40c66 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v9/ReplayCommandTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v9/ReplayCommandTest.java @@ -1 +1,61 @@ -/** * * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.activemq.openwire.v9; import java.io.DataInputStream; import java.io.DataOutputStream; import java.io.IOException; import org.apache.activemq.openwire.*; import org.apache.activemq.command.*; /** * Test case for the OpenWire marshalling for ReplayCommand * * * NOTE!: This file is auto generated - do not modify! * if you need to make a change, please see the modify the groovy scripts in the * under src/gram/script and then use maven openwire:generate to regenerate * this file. * * */ public class ReplayCommandTest extends BaseCommandTestSupport { public static ReplayCommandTest SINGLETON = new ReplayCommandTest(); public Object createObject() throws Exception { ReplayCommand info = new ReplayCommand(); populateObject(info); return info; } protected void populateObject(Object object) throws Exception { super.populateObject(object); ReplayCommand info = (ReplayCommand) object; info.setFirstNakNumber(1); info.setLastNakNumber(2); } } \ No newline at end of file +/** + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.apache.activemq.openwire.v9; + +import java.io.DataInputStream; +import java.io.DataOutputStream; +import java.io.IOException; + +import org.apache.activemq.openwire.*; +import org.apache.activemq.command.*; + + +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; +/** + * Test case for the OpenWire marshalling for ReplayCommand + * + * + * NOTE!: This file is auto generated - do not modify! + * if you need to make a change, please see the modify the groovy scripts in the + * under src/gram/script and then use maven openwire:generate to regenerate + * this file. + * + * + */ +@Category(ParallelTest.class) + +public class ReplayCommandTest extends BaseCommandTestSupport { + + + public static ReplayCommandTest SINGLETON = new ReplayCommandTest(); + + public Object createObject() throws Exception { + ReplayCommand info = new ReplayCommand(); + populateObject(info); + return info; + } + + protected void populateObject(Object object) throws Exception { + super.populateObject(object); + ReplayCommand info = (ReplayCommand) object; + + info.setFirstNakNumber(1); + info.setLastNakNumber(2); + } +} diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v9/ResponseTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v9/ResponseTest.java index 97bb45c5d36..8bd7fe78b17 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v9/ResponseTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v9/ResponseTest.java @@ -1 +1,60 @@ -/** * * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.activemq.openwire.v9; import java.io.DataInputStream; import java.io.DataOutputStream; import java.io.IOException; import org.apache.activemq.openwire.*; import org.apache.activemq.command.*; /** * Test case for the OpenWire marshalling for Response * * * NOTE!: This file is auto generated - do not modify! * if you need to make a change, please see the modify the groovy scripts in the * under src/gram/script and then use maven openwire:generate to regenerate * this file. * * */ public class ResponseTest extends BaseCommandTestSupport { public static ResponseTest SINGLETON = new ResponseTest(); public Object createObject() throws Exception { Response info = new Response(); populateObject(info); return info; } protected void populateObject(Object object) throws Exception { super.populateObject(object); Response info = (Response) object; info.setCorrelationId(1); } } \ No newline at end of file +/** + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.apache.activemq.openwire.v9; + +import java.io.DataInputStream; +import java.io.DataOutputStream; +import java.io.IOException; + +import org.apache.activemq.openwire.*; +import org.apache.activemq.command.*; + + +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; +/** + * Test case for the OpenWire marshalling for Response + * + * + * NOTE!: This file is auto generated - do not modify! + * if you need to make a change, please see the modify the groovy scripts in the + * under src/gram/script and then use maven openwire:generate to regenerate + * this file. + * + * + */ +@Category(ParallelTest.class) + +public class ResponseTest extends BaseCommandTestSupport { + + + public static ResponseTest SINGLETON = new ResponseTest(); + + public Object createObject() throws Exception { + Response info = new Response(); + populateObject(info); + return info; + } + + protected void populateObject(Object object) throws Exception { + super.populateObject(object); + Response info = (Response) object; + + info.setCorrelationId(1); + } +} diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v9/SessionIdTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v9/SessionIdTest.java index 9d71dd57fe1..a3dbe929e69 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v9/SessionIdTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v9/SessionIdTest.java @@ -1 +1,61 @@ -/** * * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.activemq.openwire.v9; import java.io.DataInputStream; import java.io.DataOutputStream; import java.io.IOException; import org.apache.activemq.openwire.*; import org.apache.activemq.command.*; /** * Test case for the OpenWire marshalling for SessionId * * * NOTE!: This file is auto generated - do not modify! * if you need to make a change, please see the modify the groovy scripts in the * under src/gram/script and then use maven openwire:generate to regenerate * this file. * * */ public class SessionIdTest extends DataFileGeneratorTestSupport { public static SessionIdTest SINGLETON = new SessionIdTest(); public Object createObject() throws Exception { SessionId info = new SessionId(); populateObject(info); return info; } protected void populateObject(Object object) throws Exception { super.populateObject(object); SessionId info = (SessionId) object; info.setConnectionId("ConnectionId:1"); info.setValue(1); } } \ No newline at end of file +/** + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.apache.activemq.openwire.v9; + +import java.io.DataInputStream; +import java.io.DataOutputStream; +import java.io.IOException; + +import org.apache.activemq.openwire.*; +import org.apache.activemq.command.*; + + +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; +/** + * Test case for the OpenWire marshalling for SessionId + * + * + * NOTE!: This file is auto generated - do not modify! + * if you need to make a change, please see the modify the groovy scripts in the + * under src/gram/script and then use maven openwire:generate to regenerate + * this file. + * + * + */ +@Category(ParallelTest.class) + +public class SessionIdTest extends DataFileGeneratorTestSupport { + + + public static SessionIdTest SINGLETON = new SessionIdTest(); + + public Object createObject() throws Exception { + SessionId info = new SessionId(); + populateObject(info); + return info; + } + + protected void populateObject(Object object) throws Exception { + super.populateObject(object); + SessionId info = (SessionId) object; + + info.setConnectionId("ConnectionId:1"); + info.setValue(1); + } +} diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v9/SessionInfoTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v9/SessionInfoTest.java index 938296abf88..6e6316fa0dd 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v9/SessionInfoTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v9/SessionInfoTest.java @@ -1 +1,60 @@ -/** * * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.activemq.openwire.v9; import java.io.DataInputStream; import java.io.DataOutputStream; import java.io.IOException; import org.apache.activemq.openwire.*; import org.apache.activemq.command.*; /** * Test case for the OpenWire marshalling for SessionInfo * * * NOTE!: This file is auto generated - do not modify! * if you need to make a change, please see the modify the groovy scripts in the * under src/gram/script and then use maven openwire:generate to regenerate * this file. * * */ public class SessionInfoTest extends BaseCommandTestSupport { public static SessionInfoTest SINGLETON = new SessionInfoTest(); public Object createObject() throws Exception { SessionInfo info = new SessionInfo(); populateObject(info); return info; } protected void populateObject(Object object) throws Exception { super.populateObject(object); SessionInfo info = (SessionInfo) object; info.setSessionId(createSessionId("SessionId:1")); } } \ No newline at end of file +/** + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.apache.activemq.openwire.v9; + +import java.io.DataInputStream; +import java.io.DataOutputStream; +import java.io.IOException; + +import org.apache.activemq.openwire.*; +import org.apache.activemq.command.*; + + +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; +/** + * Test case for the OpenWire marshalling for SessionInfo + * + * + * NOTE!: This file is auto generated - do not modify! + * if you need to make a change, please see the modify the groovy scripts in the + * under src/gram/script and then use maven openwire:generate to regenerate + * this file. + * + * + */ +@Category(ParallelTest.class) + +public class SessionInfoTest extends BaseCommandTestSupport { + + + public static SessionInfoTest SINGLETON = new SessionInfoTest(); + + public Object createObject() throws Exception { + SessionInfo info = new SessionInfo(); + populateObject(info); + return info; + } + + protected void populateObject(Object object) throws Exception { + super.populateObject(object); + SessionInfo info = (SessionInfo) object; + + info.setSessionId(createSessionId("SessionId:1")); + } +} diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v9/ShutdownInfoTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v9/ShutdownInfoTest.java index be4b398e298..735de81fb76 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v9/ShutdownInfoTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v9/ShutdownInfoTest.java @@ -1 +1,59 @@ -/** * * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.activemq.openwire.v9; import java.io.DataInputStream; import java.io.DataOutputStream; import java.io.IOException; import org.apache.activemq.openwire.*; import org.apache.activemq.command.*; /** * Test case for the OpenWire marshalling for ShutdownInfo * * * NOTE!: This file is auto generated - do not modify! * if you need to make a change, please see the modify the groovy scripts in the * under src/gram/script and then use maven openwire:generate to regenerate * this file. * * */ public class ShutdownInfoTest extends BaseCommandTestSupport { public static ShutdownInfoTest SINGLETON = new ShutdownInfoTest(); public Object createObject() throws Exception { ShutdownInfo info = new ShutdownInfo(); populateObject(info); return info; } protected void populateObject(Object object) throws Exception { super.populateObject(object); ShutdownInfo info = (ShutdownInfo) object; } } \ No newline at end of file +/** + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.apache.activemq.openwire.v9; + +import java.io.DataInputStream; +import java.io.DataOutputStream; +import java.io.IOException; + +import org.apache.activemq.openwire.*; +import org.apache.activemq.command.*; + + +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; +/** + * Test case for the OpenWire marshalling for ShutdownInfo + * + * + * NOTE!: This file is auto generated - do not modify! + * if you need to make a change, please see the modify the groovy scripts in the + * under src/gram/script and then use maven openwire:generate to regenerate + * this file. + * + * + */ +@Category(ParallelTest.class) + +public class ShutdownInfoTest extends BaseCommandTestSupport { + + + public static ShutdownInfoTest SINGLETON = new ShutdownInfoTest(); + + public Object createObject() throws Exception { + ShutdownInfo info = new ShutdownInfo(); + populateObject(info); + return info; + } + + protected void populateObject(Object object) throws Exception { + super.populateObject(object); + ShutdownInfo info = (ShutdownInfo) object; + + } +} diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v9/SubscriptionInfoTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v9/SubscriptionInfoTest.java index 33667690100..7a39171b904 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v9/SubscriptionInfoTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v9/SubscriptionInfoTest.java @@ -1 +1,64 @@ -/** * * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.activemq.openwire.v9; import java.io.DataInputStream; import java.io.DataOutputStream; import java.io.IOException; import org.apache.activemq.openwire.*; import org.apache.activemq.command.*; /** * Test case for the OpenWire marshalling for SubscriptionInfo * * * NOTE!: This file is auto generated - do not modify! * if you need to make a change, please see the modify the groovy scripts in the * under src/gram/script and then use maven openwire:generate to regenerate * this file. * * */ public class SubscriptionInfoTest extends DataFileGeneratorTestSupport { public static SubscriptionInfoTest SINGLETON = new SubscriptionInfoTest(); public Object createObject() throws Exception { SubscriptionInfo info = new SubscriptionInfo(); populateObject(info); return info; } protected void populateObject(Object object) throws Exception { super.populateObject(object); SubscriptionInfo info = (SubscriptionInfo) object; info.setClientId("ClientId:1"); info.setDestination(createActiveMQDestination("Destination:2")); info.setSelector("Selector:3"); info.setSubcriptionName("SubcriptionName:4"); info.setSubscribedDestination(createActiveMQDestination("SubscribedDestination:5")); } } \ No newline at end of file +/** + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.apache.activemq.openwire.v9; + +import java.io.DataInputStream; +import java.io.DataOutputStream; +import java.io.IOException; + +import org.apache.activemq.openwire.*; +import org.apache.activemq.command.*; + + +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; +/** + * Test case for the OpenWire marshalling for SubscriptionInfo + * + * + * NOTE!: This file is auto generated - do not modify! + * if you need to make a change, please see the modify the groovy scripts in the + * under src/gram/script and then use maven openwire:generate to regenerate + * this file. + * + * + */ +@Category(ParallelTest.class) + +public class SubscriptionInfoTest extends DataFileGeneratorTestSupport { + + + public static SubscriptionInfoTest SINGLETON = new SubscriptionInfoTest(); + + public Object createObject() throws Exception { + SubscriptionInfo info = new SubscriptionInfo(); + populateObject(info); + return info; + } + + protected void populateObject(Object object) throws Exception { + super.populateObject(object); + SubscriptionInfo info = (SubscriptionInfo) object; + + info.setClientId("ClientId:1"); + info.setDestination(createActiveMQDestination("Destination:2")); + info.setSelector("Selector:3"); + info.setSubcriptionName("SubcriptionName:4"); + info.setSubscribedDestination(createActiveMQDestination("SubscribedDestination:5")); + } +} diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v9/TransactionIdTestSupport.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v9/TransactionIdTestSupport.java index 3f61dcece44..f7c600f604c 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v9/TransactionIdTestSupport.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v9/TransactionIdTestSupport.java @@ -1 +1,47 @@ -/** * * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.activemq.openwire.v9; import java.io.DataInputStream; import java.io.DataOutputStream; import java.io.IOException; import org.apache.activemq.openwire.*; import org.apache.activemq.command.*; /** * Test case for the OpenWire marshalling for TransactionId * * * NOTE!: This file is auto generated - do not modify! * if you need to make a change, please see the modify the groovy scripts in the * under src/gram/script and then use maven openwire:generate to regenerate * this file. * * */ public abstract class TransactionIdTestSupport extends DataFileGeneratorTestSupport { protected void populateObject(Object object) throws Exception { super.populateObject(object); TransactionId info = (TransactionId) object; } } \ No newline at end of file +/** + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.apache.activemq.openwire.v9; + +import java.io.DataInputStream; +import java.io.DataOutputStream; +import java.io.IOException; + +import org.apache.activemq.openwire.*; +import org.apache.activemq.command.*; +/** + * Test case for the OpenWire marshalling for TransactionId + * + * + * NOTE!: This file is auto generated - do not modify! + * if you need to make a change, please see the modify the groovy scripts in the + * under src/gram/script and then use maven openwire:generate to regenerate + * this file. + * + * + */ + + +public abstract class TransactionIdTestSupport extends DataFileGeneratorTestSupport { + + + protected void populateObject(Object object) throws Exception { + super.populateObject(object); + TransactionId info = (TransactionId) object; + + } +} diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v9/TransactionInfoTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v9/TransactionInfoTest.java index d08dd818f67..eb2c90796ff 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v9/TransactionInfoTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v9/TransactionInfoTest.java @@ -1 +1,62 @@ -/** * * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.activemq.openwire.v9; import java.io.DataInputStream; import java.io.DataOutputStream; import java.io.IOException; import org.apache.activemq.openwire.*; import org.apache.activemq.command.*; /** * Test case for the OpenWire marshalling for TransactionInfo * * * NOTE!: This file is auto generated - do not modify! * if you need to make a change, please see the modify the groovy scripts in the * under src/gram/script and then use maven openwire:generate to regenerate * this file. * * */ public class TransactionInfoTest extends BaseCommandTestSupport { public static TransactionInfoTest SINGLETON = new TransactionInfoTest(); public Object createObject() throws Exception { TransactionInfo info = new TransactionInfo(); populateObject(info); return info; } protected void populateObject(Object object) throws Exception { super.populateObject(object); TransactionInfo info = (TransactionInfo) object; info.setConnectionId(createConnectionId("ConnectionId:1")); info.setTransactionId(createTransactionId("TransactionId:2")); info.setType((byte) 1); } } \ No newline at end of file +/** + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.apache.activemq.openwire.v9; + +import java.io.DataInputStream; +import java.io.DataOutputStream; +import java.io.IOException; + +import org.apache.activemq.openwire.*; +import org.apache.activemq.command.*; + + +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; +/** + * Test case for the OpenWire marshalling for TransactionInfo + * + * + * NOTE!: This file is auto generated - do not modify! + * if you need to make a change, please see the modify the groovy scripts in the + * under src/gram/script and then use maven openwire:generate to regenerate + * this file. + * + * + */ +@Category(ParallelTest.class) + +public class TransactionInfoTest extends BaseCommandTestSupport { + + + public static TransactionInfoTest SINGLETON = new TransactionInfoTest(); + + public Object createObject() throws Exception { + TransactionInfo info = new TransactionInfo(); + populateObject(info); + return info; + } + + protected void populateObject(Object object) throws Exception { + super.populateObject(object); + TransactionInfo info = (TransactionInfo) object; + + info.setConnectionId(createConnectionId("ConnectionId:1")); + info.setTransactionId(createTransactionId("TransactionId:2")); + info.setType((byte) 1); + } +} diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v9/XATransactionIdTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v9/XATransactionIdTest.java index f73711ea27e..089db90059b 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v9/XATransactionIdTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/openwire/v9/XATransactionIdTest.java @@ -1 +1,62 @@ -/** * * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.activemq.openwire.v9; import java.io.DataInputStream; import java.io.DataOutputStream; import java.io.IOException; import org.apache.activemq.openwire.*; import org.apache.activemq.command.*; /** * Test case for the OpenWire marshalling for XATransactionId * * * NOTE!: This file is auto generated - do not modify! * if you need to make a change, please see the modify the groovy scripts in the * under src/gram/script and then use maven openwire:generate to regenerate * this file. * * */ public class XATransactionIdTest extends TransactionIdTestSupport { public static XATransactionIdTest SINGLETON = new XATransactionIdTest(); public Object createObject() throws Exception { XATransactionId info = new XATransactionId(); populateObject(info); return info; } protected void populateObject(Object object) throws Exception { super.populateObject(object); XATransactionId info = (XATransactionId) object; info.setFormatId(1); info.setGlobalTransactionId("GlobalTransactionId:1".getBytes()); info.setBranchQualifier("BranchQualifier:2".getBytes()); } } \ No newline at end of file +/** + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.apache.activemq.openwire.v9; + +import java.io.DataInputStream; +import java.io.DataOutputStream; +import java.io.IOException; + +import org.apache.activemq.openwire.*; +import org.apache.activemq.command.*; + + +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; +/** + * Test case for the OpenWire marshalling for XATransactionId + * + * + * NOTE!: This file is auto generated - do not modify! + * if you need to make a change, please see the modify the groovy scripts in the + * under src/gram/script and then use maven openwire:generate to regenerate + * this file. + * + * + */ +@Category(ParallelTest.class) + +public class XATransactionIdTest extends TransactionIdTestSupport { + + + public static XATransactionIdTest SINGLETON = new XATransactionIdTest(); + + public Object createObject() throws Exception { + XATransactionId info = new XATransactionId(); + populateObject(info); + return info; + } + + protected void populateObject(Object object) throws Exception { + super.populateObject(object); + XATransactionId info = (XATransactionId) object; + + info.setFormatId(1); + info.setGlobalTransactionId("GlobalTransactionId:1".getBytes()); + info.setBranchQualifier("BranchQualifier:2".getBytes()); + } +} diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/perf/MemoryAllocationTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/perf/MemoryAllocationTest.java index d92e4251b5d..0ce69917663 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/perf/MemoryAllocationTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/perf/MemoryAllocationTest.java @@ -32,10 +32,13 @@ import org.apache.activemq.broker.BrokerService; import org.slf4j.Logger; import org.slf4j.LoggerFactory; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * */ +@Category(ParallelTest.class) public class MemoryAllocationTest extends TestCase { protected static final int MESSAGE_COUNT = 2000; diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/perf/NumberOfDestinationsTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/perf/NumberOfDestinationsTest.java index 39e2c5c4f26..4248f1681a0 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/perf/NumberOfDestinationsTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/perf/NumberOfDestinationsTest.java @@ -34,9 +34,12 @@ import org.apache.activemq.store.kahadb.KahaDBPersistenceAdapter; import org.slf4j.Logger; import org.slf4j.LoggerFactory; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * */ +@Category(ParallelTest.class) public class NumberOfDestinationsTest extends TestCase { protected static final int MESSAGE_COUNT = 1; protected static final int NUMBER_OF_DESTINATIONS = 100000; diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/plugin/BrokerStatisticsPluginTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/plugin/BrokerStatisticsPluginTest.java index c20d6b8fd7d..08cdfb7f70d 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/plugin/BrokerStatisticsPluginTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/plugin/BrokerStatisticsPluginTest.java @@ -41,12 +41,15 @@ import org.apache.activemq.command.ActiveMQDestination; import org.slf4j.Logger; import org.slf4j.LoggerFactory; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * A BrokerStatisticsPluginTest * A testcase for https://issues.apache.org/activemq/browse/AMQ-2379 * */ +@Category(ParallelTest.class) public class BrokerStatisticsPluginTest extends TestCase{ private static final Logger LOG = LoggerFactory.getLogger(BrokerStatisticsPluginTest.class); diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/pool/JmsSendReceiveTwoConnectionsWithSenderUsingPoolTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/pool/JmsSendReceiveTwoConnectionsWithSenderUsingPoolTest.java index 4df3f57a3f4..70a2c6eda54 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/pool/JmsSendReceiveTwoConnectionsWithSenderUsingPoolTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/pool/JmsSendReceiveTwoConnectionsWithSenderUsingPoolTest.java @@ -23,10 +23,13 @@ import org.junit.Test; import org.slf4j.Logger; import org.slf4j.LoggerFactory; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * */ +@Category(ParallelTest.class) public class JmsSendReceiveTwoConnectionsWithSenderUsingPoolTest extends JmsTopicSendReceiveWithTwoConnectionsTest { protected static final Logger LOG = LoggerFactory.getLogger(JmsSendReceiveTwoConnectionsWithSenderUsingPoolTest.class); protected PooledConnectionFactory senderConnectionFactory = new PooledConnectionFactory("vm://localhost?broker.persistent=false"); diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/proxy/ProxyTestSupport.java b/activemq-unit-tests/src/test/java/org/apache/activemq/proxy/ProxyTestSupport.java index 9cfd3e6664b..32118484a52 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/proxy/ProxyTestSupport.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/proxy/ProxyTestSupport.java @@ -29,6 +29,8 @@ import org.apache.activemq.transport.TransportFactory; import org.apache.activemq.usage.SystemUsage; + + public class ProxyTestSupport extends BrokerTestSupport { protected ArrayList connections = new ArrayList(); diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/security/CachedLDAPSecurityLegacyTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/security/CachedLDAPSecurityLegacyTest.java index 30150a7ce55..2bfae5518ab 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/security/CachedLDAPSecurityLegacyTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/security/CachedLDAPSecurityLegacyTest.java @@ -34,6 +34,8 @@ import static org.junit.Assert.assertNotNull; import static org.junit.Assert.fail; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; @RunWith( FrameworkRunner.class ) @@ -41,6 +43,7 @@ @ApplyLdifFiles( "org/apache/activemq/security/activemq-apacheds-legacy.ldif" ) +@Category(ParallelTest.class) public class CachedLDAPSecurityLegacyTest extends AbstractLdapTestUnit { public BrokerService broker; diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/security/DoSTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/security/DoSTest.java index 3657dbc3d9f..4f4eec69b1d 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/security/DoSTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/security/DoSTest.java @@ -38,6 +38,7 @@ * the transport was adequately destroyed on the broker side. */ + public class DoSTest extends JmsTestSupport { private static final Logger LOG = LoggerFactory.getLogger(DoSTest.class); diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/security/SecurityJMXTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/security/SecurityJMXTest.java index 05950b71e29..4e4460c0731 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/security/SecurityJMXTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/security/SecurityJMXTest.java @@ -54,7 +54,10 @@ import org.apache.logging.log4j.core.layout.MessageLayout; import org.slf4j.Logger; import org.slf4j.LoggerFactory; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; +@Category(ParallelTest.class) public class SecurityJMXTest extends TestCase { private static final Logger LOG = LoggerFactory.getLogger(SecurityJMXTest.class); diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/security/XBeanSecurityWithGuestNoCredentialsOnlyTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/security/XBeanSecurityWithGuestNoCredentialsOnlyTest.java index a844b1b6ff3..e796cf0a23a 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/security/XBeanSecurityWithGuestNoCredentialsOnlyTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/security/XBeanSecurityWithGuestNoCredentialsOnlyTest.java @@ -36,6 +36,8 @@ import org.slf4j.Logger; import org.slf4j.LoggerFactory; + + public class XBeanSecurityWithGuestNoCredentialsOnlyTest extends JmsTestSupport { private static final Logger LOG = LoggerFactory.getLogger(XBeanSecurityWithGuestNoCredentialsOnlyTest.class); diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/security/XBeanSecurityWithGuestTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/security/XBeanSecurityWithGuestTest.java index f6fbf548614..8f2eac3e109 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/security/XBeanSecurityWithGuestTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/security/XBeanSecurityWithGuestTest.java @@ -36,6 +36,8 @@ import org.slf4j.Logger; import org.slf4j.LoggerFactory; + + public class XBeanSecurityWithGuestTest extends JmsTestSupport { private static final Logger LOG = LoggerFactory.getLogger(XBeanSecurityWithGuestTest.class); diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/statistics/AbstractInflightMessageSizeTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/statistics/AbstractInflightMessageSizeTest.java index 0c41b726228..e4bbe26847a 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/statistics/AbstractInflightMessageSizeTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/statistics/AbstractInflightMessageSizeTest.java @@ -49,10 +49,13 @@ import org.junit.Before; import org.junit.Test; import org.junit.runners.Parameterized.Parameters; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * This test shows Inflight Message sizes are correct for various acknowledgement modes. */ +@Category(ParallelTest.class) public abstract class AbstractInflightMessageSizeTest { protected BrokerService brokerService; diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/statistics/DurableSubscriptionInflightMessageSizeTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/statistics/DurableSubscriptionInflightMessageSizeTest.java index 9c1cd1ca38a..7a3631f5714 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/statistics/DurableSubscriptionInflightMessageSizeTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/statistics/DurableSubscriptionInflightMessageSizeTest.java @@ -23,9 +23,11 @@ import org.apache.activemq.broker.region.Topic; import org.apache.activemq.command.ActiveMQDestination; import org.apache.activemq.command.ActiveMQTopic; +import org.apache.activemq.test.annotations.ParallelTest; import org.apache.activemq.util.SubscriptionKey; import org.junit.Assume; import org.junit.Test; +import org.junit.experimental.categories.Category; import org.junit.runner.RunWith; import org.junit.runners.Parameterized; @@ -33,6 +35,7 @@ * This test shows Inflight Message sizes are correct for various acknowledgement modes * using a DurableSubscription */ +@Category(ParallelTest.class) @RunWith(Parameterized.class) public class DurableSubscriptionInflightMessageSizeTest extends AbstractInflightMessageSizeTest { diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/statistics/QueueSubscriptionInflightMessageSizeTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/statistics/QueueSubscriptionInflightMessageSizeTest.java index 97107efebeb..9577f8ea5f3 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/statistics/QueueSubscriptionInflightMessageSizeTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/statistics/QueueSubscriptionInflightMessageSizeTest.java @@ -24,6 +24,8 @@ import org.apache.activemq.broker.region.Subscription; import org.apache.activemq.command.ActiveMQDestination; import org.apache.activemq.command.ActiveMQQueue; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; import org.junit.runner.RunWith; import org.junit.runners.Parameterized; @@ -31,6 +33,7 @@ * This test shows Inflight Message sizes are correct for various acknowledgement modes * using a QueueSubscription */ +@Category(ParallelTest.class) @RunWith(Parameterized.class) public class QueueSubscriptionInflightMessageSizeTest extends AbstractInflightMessageSizeTest { diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/statistics/TopicSubscriptionInflightMessageSizeTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/statistics/TopicSubscriptionInflightMessageSizeTest.java index 51455f94f5b..54e60857bb4 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/statistics/TopicSubscriptionInflightMessageSizeTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/statistics/TopicSubscriptionInflightMessageSizeTest.java @@ -25,9 +25,11 @@ import org.apache.activemq.broker.region.Subscription; import org.apache.activemq.command.ActiveMQDestination; import org.apache.activemq.command.ActiveMQTopic; +import org.apache.activemq.test.annotations.ParallelTest; import org.apache.activemq.util.Wait; import org.junit.Assume; import org.junit.Test; +import org.junit.experimental.categories.Category; import org.junit.runner.RunWith; import org.junit.runners.Parameterized; @@ -35,6 +37,7 @@ * This test shows Inflight Message sizes are correct for various acknowledgement modes * using a TopicSubscription */ +@Category(ParallelTest.class) @RunWith(Parameterized.class) public class TopicSubscriptionInflightMessageSizeTest extends AbstractInflightMessageSizeTest { diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/store/StoreOrderTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/store/StoreOrderTest.java index fec2f5e86a2..58c853e1bad 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/store/StoreOrderTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/store/StoreOrderTest.java @@ -44,8 +44,11 @@ import org.junit.After; import org.junit.Before; import org.junit.Test; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; // https://issues.apache.org/activemq/browse/AMQ-2594 +@Category(ParallelTest.class) public abstract class StoreOrderTest { private static final Logger LOG = LoggerFactory.getLogger(StoreOrderTest.class); diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/store/StorePerDestinationTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/store/StorePerDestinationTest.java index da8d5865cd4..d1b057887b5 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/store/StorePerDestinationTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/store/StorePerDestinationTest.java @@ -16,13 +16,6 @@ */ package org.apache.activemq.store; -import java.io.File; -import java.io.IOException; -import java.util.ArrayList; -import java.util.Vector; -import java.util.concurrent.ExecutorService; -import java.util.concurrent.Executors; -import java.util.concurrent.TimeUnit; import jakarta.jms.Connection; import jakarta.jms.JMSException; import jakarta.jms.MessageConsumer; @@ -44,6 +37,14 @@ import org.slf4j.Logger; import org.slf4j.LoggerFactory; +import java.io.File; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Vector; +import java.util.concurrent.ExecutorService; +import java.util.concurrent.Executors; +import java.util.concurrent.TimeUnit; + import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertTrue; diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/store/jdbc/JDBCTablePrefixAssignedTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/store/jdbc/JDBCTablePrefixAssignedTest.java index 57fa152a12d..3c25a7c0176 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/store/jdbc/JDBCTablePrefixAssignedTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/store/jdbc/JDBCTablePrefixAssignedTest.java @@ -43,7 +43,10 @@ import org.junit.Test; import org.slf4j.Logger; import org.slf4j.LoggerFactory; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; +@Category(ParallelTest.class) public class JDBCTablePrefixAssignedTest { private static final Logger LOG = LoggerFactory.getLogger(JDBCTablePrefixAssignedTest.class); diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/store/kahadb/KahaDBOffsetRecoveryListenerTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/store/kahadb/KahaDBOffsetRecoveryListenerTest.java index 613b620d72f..86499d70eca 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/store/kahadb/KahaDBOffsetRecoveryListenerTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/store/kahadb/KahaDBOffsetRecoveryListenerTest.java @@ -17,11 +17,12 @@ package org.apache.activemq.store.kahadb; -import java.io.File; -import java.io.IOException; -import java.util.LinkedList; -import java.util.List; - +import jakarta.jms.Connection; +import jakarta.jms.JMSException; +import jakarta.jms.MessageConsumer; +import jakarta.jms.MessageProducer; +import jakarta.jms.Session; +import jakarta.jms.TextMessage; import org.apache.activemq.ActiveMQConnectionFactory; import org.apache.activemq.broker.BrokerService; import org.apache.activemq.command.ActiveMQQueue; @@ -30,6 +31,7 @@ import org.apache.activemq.store.MessageRecoveryContext; import org.apache.activemq.store.MessageRecoveryListener; import org.apache.activemq.store.MessageStore; +import org.apache.activemq.util.IOHelper; import org.junit.After; import org.junit.Before; import org.junit.Rule; @@ -38,12 +40,10 @@ import org.slf4j.Logger; import org.slf4j.LoggerFactory; -import jakarta.jms.Connection; -import jakarta.jms.JMSException; -import jakarta.jms.MessageConsumer; -import jakarta.jms.MessageProducer; -import jakarta.jms.Session; -import jakarta.jms.TextMessage; +import java.io.File; +import java.io.IOException; +import java.util.LinkedList; +import java.util.List; import static org.junit.Assert.assertEquals; @@ -57,14 +57,8 @@ public class KahaDBOffsetRecoveryListenerTest { @Rule public TestName testName = new TestName(); - protected final int PRETEST_MSG_COUNT = 17531; - @Before public void beforeEach() throws Exception { - // Send+Recv a odd number of messages beyond cache sizes - // to confirm the queue's sequence number gets pushed off - sendMessages(PRETEST_MSG_COUNT, testName.getMethodName()); - assertEquals(Integer.valueOf(PRETEST_MSG_COUNT), Integer.valueOf(receiveMessages(testName.getMethodName()))); } @After @@ -85,7 +79,7 @@ protected BrokerService createBroker(KahaDBStore kaha) throws Exception { private KahaDBStore createStore(boolean delete) throws IOException { KahaDBStore kaha = new KahaDBStore(); kaha.setJournalMaxFileLength(1024*100); - kaha.setDirectory(new File("target" + File.separator + "activemq-data" + File.separator + "kahadb-recovery-tests")); + kaha.setDirectory(new File(IOHelper.getDefaultDataDirectory(), "kahadb-recovery-tests")); if( delete ) { kaha.deleteAllMessages(); } diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/store/kahadb/KahaDBStoreRecoveryExpiryTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/store/kahadb/KahaDBStoreRecoveryExpiryTest.java index e70a2d59cd6..a6634b2d759 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/store/kahadb/KahaDBStoreRecoveryExpiryTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/store/kahadb/KahaDBStoreRecoveryExpiryTest.java @@ -39,7 +39,10 @@ import org.junit.After; import org.junit.Before; import org.junit.Test; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; +@Category(ParallelTest.class) public class KahaDBStoreRecoveryExpiryTest { private BrokerService broker; diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/store/kahadb/KahaDBTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/store/kahadb/KahaDBTest.java index d06544f673d..7c557a33d5d 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/store/kahadb/KahaDBTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/store/kahadb/KahaDBTest.java @@ -43,10 +43,13 @@ import org.apache.logging.log4j.core.config.Property; import org.apache.logging.log4j.core.filter.AbstractFilter; import org.apache.logging.log4j.core.layout.MessageLayout; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * @author chirino */ +@Category(ParallelTest.class) public class KahaDBTest extends TestCase { protected BrokerService createBroker(KahaDBStore kaha) throws Exception { diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/store/kahadb/KahaDBVersionTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/store/kahadb/KahaDBVersionTest.java index dd52cedded5..3a0bafefc9d 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/store/kahadb/KahaDBVersionTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/store/kahadb/KahaDBVersionTest.java @@ -36,10 +36,13 @@ import org.apache.activemq.util.IOHelper; import org.slf4j.Logger; import org.slf4j.LoggerFactory; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * @author chirino */ +@Category(ParallelTest.class) public class KahaDBVersionTest extends TestCase { static String basedir; static { diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/store/kahadb/MKahaDBIndexLocationTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/store/kahadb/MKahaDBIndexLocationTest.java index 0d97c473122..ebe2f84f982 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/store/kahadb/MKahaDBIndexLocationTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/store/kahadb/MKahaDBIndexLocationTest.java @@ -36,7 +36,10 @@ import static org.apache.activemq.store.kahadb.MultiKahaDBPersistenceAdapter.nameFromDestinationFilter; import static org.junit.Assert.*; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; +@Category(ParallelTest.class) public class MKahaDBIndexLocationTest { private static final Logger LOG = LoggerFactory.getLogger(MKahaDBIndexLocationTest.class); diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/store/kahadb/MKahaDBStoreLimitTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/store/kahadb/MKahaDBStoreLimitTest.java index 9551c1575a7..7f4883ad4d4 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/store/kahadb/MKahaDBStoreLimitTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/store/kahadb/MKahaDBStoreLimitTest.java @@ -44,7 +44,10 @@ import java.util.concurrent.atomic.AtomicBoolean; import static org.junit.Assert.*; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; +@Category(ParallelTest.class) public class MKahaDBStoreLimitTest { private static final Logger LOG = LoggerFactory.getLogger(MKahaDBStoreLimitTest.class); diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/store/kahadb/perf/KahaBulkLoadingTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/store/kahadb/perf/KahaBulkLoadingTest.java index a50d0c20975..d67c5bad2d2 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/store/kahadb/perf/KahaBulkLoadingTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/store/kahadb/perf/KahaBulkLoadingTest.java @@ -16,20 +16,13 @@ */ package org.apache.activemq.store.kahadb.perf; -import java.io.File; -import java.io.IOException; -import java.net.URISyntaxException; -import java.util.concurrent.atomic.AtomicBoolean; - import jakarta.jms.BytesMessage; import jakarta.jms.ConnectionFactory; import jakarta.jms.DeliveryMode; import jakarta.jms.MessageConsumer; import jakarta.jms.MessageProducer; import jakarta.jms.Session; - import junit.framework.Test; - import org.apache.activemq.ActiveMQConnectionFactory; import org.apache.activemq.JmsTestSupport; import org.apache.activemq.broker.BrokerService; @@ -39,6 +32,11 @@ import org.slf4j.Logger; import org.slf4j.LoggerFactory; +import java.io.File; +import java.io.IOException; +import java.net.URISyntaxException; +import java.util.concurrent.atomic.AtomicBoolean; + /** * This tests bulk loading and unloading of messages to a Queue.s * diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/test/JmsTopicSendReceiveWithTwoConnectionsAndByteSelectorTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/test/JmsTopicSendReceiveWithTwoConnectionsAndByteSelectorTest.java index 42ac819b594..6e63d8a8d07 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/test/JmsTopicSendReceiveWithTwoConnectionsAndByteSelectorTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/test/JmsTopicSendReceiveWithTwoConnectionsAndByteSelectorTest.java @@ -19,7 +19,10 @@ import jakarta.jms.JMSException; import jakarta.jms.Message; import jakarta.jms.MessageConsumer; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; +@Category(ParallelTest.class) public class JmsTopicSendReceiveWithTwoConnectionsAndByteSelectorTest extends JmsTopicSendReceiveWithTwoConnectionsTest { @Override diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/test/JmsTopicSendReceiveWithTwoConnectionsAndEmbeddedBrokerTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/test/JmsTopicSendReceiveWithTwoConnectionsAndEmbeddedBrokerTest.java index e72a8245f91..6682897baaa 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/test/JmsTopicSendReceiveWithTwoConnectionsAndEmbeddedBrokerTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/test/JmsTopicSendReceiveWithTwoConnectionsAndEmbeddedBrokerTest.java @@ -19,7 +19,10 @@ import org.apache.activemq.ActiveMQConnectionFactory; import org.apache.activemq.broker.BrokerService; import org.apache.activemq.broker.TransportConnector; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; +@Category(ParallelTest.class) public class JmsTopicSendReceiveWithTwoConnectionsAndEmbeddedBrokerTest extends JmsTopicSendReceiveWithTwoConnectionsTest { protected BrokerService broker; diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/test/annotations/ParallelTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/test/annotations/ParallelTest.java new file mode 100644 index 00000000000..62be82ba305 --- /dev/null +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/test/annotations/ParallelTest.java @@ -0,0 +1,27 @@ +/** + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.apache.activemq.test.annotations; + + +/** + * Marker interface used with {@code @Category(ParallelTest.class)} to opt a + * test class or method into the {@code all-parallel} Maven profile. Only tests + * explicitly tagged with this category execute when the profile is enabled, + * which allows a gradual migration toward full parallelism. + */ +public interface ParallelTest { +} diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/test/retroactive/RetroactiveConsumerTestWithSimpleMessageListTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/test/retroactive/RetroactiveConsumerTestWithSimpleMessageListTest.java index 5fd4adc816a..99776a1c43b 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/test/retroactive/RetroactiveConsumerTestWithSimpleMessageListTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/test/retroactive/RetroactiveConsumerTestWithSimpleMessageListTest.java @@ -34,10 +34,13 @@ import org.apache.activemq.util.MessageIdList; import org.slf4j.Logger; import org.slf4j.LoggerFactory; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * */ +@Category(ParallelTest.class) public class RetroactiveConsumerTestWithSimpleMessageListTest extends EmbeddedBrokerTestSupport { private static final Logger LOG = LoggerFactory.getLogger(RetroactiveConsumerTestWithSimpleMessageListTest.class); diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/test/retroactive/RetroactiveConsumerWithMessageQueryTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/test/retroactive/RetroactiveConsumerWithMessageQueryTest.java index a00fa458636..a0bc3e8d58c 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/test/retroactive/RetroactiveConsumerWithMessageQueryTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/test/retroactive/RetroactiveConsumerWithMessageQueryTest.java @@ -33,10 +33,13 @@ import org.apache.activemq.util.MessageIdList; import org.slf4j.Logger; import org.slf4j.LoggerFactory; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * */ +@Category(ParallelTest.class) public class RetroactiveConsumerWithMessageQueryTest extends EmbeddedBrokerTestSupport { private static final Logger LOG = LoggerFactory.getLogger(RetroactiveConsumerWithMessageQueryTest.class); diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/test/rollback/CloseRollbackRedeliveryQueueTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/test/rollback/CloseRollbackRedeliveryQueueTest.java index 3789ab3811b..9f7b0fe2c92 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/test/rollback/CloseRollbackRedeliveryQueueTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/test/rollback/CloseRollbackRedeliveryQueueTest.java @@ -29,7 +29,10 @@ import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.jms.core.MessageCreator; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; +@Category(ParallelTest.class) public class CloseRollbackRedeliveryQueueTest extends EmbeddedBrokerTestSupport { private static final transient Logger LOG = LoggerFactory.getLogger(CloseRollbackRedeliveryQueueTest.class); diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/test/rollback/RollbacksWhileConsumingLargeQueueTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/test/rollback/RollbacksWhileConsumingLargeQueueTest.java index d4f87d5ba07..9f211555f0d 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/test/rollback/RollbacksWhileConsumingLargeQueueTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/test/rollback/RollbacksWhileConsumingLargeQueueTest.java @@ -35,10 +35,13 @@ import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.jms.core.MessageCreator; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * */ +@Category(ParallelTest.class) public class RollbacksWhileConsumingLargeQueueTest extends EmbeddedBrokerTestSupport implements MessageListener { private static final transient Logger LOG = LoggerFactory.getLogger(RollbacksWhileConsumingLargeQueueTest.class); diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/transport/MaxFrameSizeEnabledTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/transport/MaxFrameSizeEnabledTest.java index 207dcd165e6..ed6635480d5 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/transport/MaxFrameSizeEnabledTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/transport/MaxFrameSizeEnabledTest.java @@ -52,6 +52,9 @@ public class MaxFrameSizeEnabledTest { public static final String PASSWORD = "password"; public static final String SERVER_KEYSTORE = "src/test/resources/org/apache/activemq/security/broker1.ks"; public static final String TRUST_KEYSTORE = "src/test/resources/org/apache/activemq/security/broker1.ks"; + private static final int CONNECTION_COUNT = 3; + private static final int MESSAGE_ATTEMPTS = 3; + private static final int BODY_SIZE = 20000; // large enough to trip 2k limit, compressible enough for 60k private BrokerService broker; private final String transportType; @@ -69,74 +72,74 @@ public MaxFrameSizeEnabledTest(String transportType, boolean clientSideEnabled, @Parameterized.Parameters(name="transportType={0},clientSideEnable={1},clientSideFailoverEnable={2},serverSideEnabled={3}") public static Collection data() { return Arrays.asList(new Object[][] { - //Both client and server side max frame check enabled - {"tcp", true, false, true}, - {"tcp", true, true, true}, - {"ssl", true, false, true}, - {"ssl", true, true, true}, - {"nio", true, false, true}, - {"nio", true, true, true}, - {"nio+ssl", true, false, true}, - {"nio+ssl", true, true, true}, - {"auto", true, false, true}, - {"auto", true, true, true}, - {"auto+ssl", true, false, true}, - {"auto+ssl", true, true, true}, - {"auto+nio", true, false, true}, - {"auto+nio", true, true, true}, - {"auto+nio+ssl", true, false, true}, - {"auto+nio+ssl", true, true, true}, - - //Client side enabled but server side disabled - {"tcp", true, false, false}, - {"tcp", true, true, false}, - {"ssl", true, false, false}, - {"ssl", true, true, false}, - {"nio", true, false, false}, - {"nio", true, true, false}, - {"nio+ssl", true, false, false}, - {"nio+ssl", true, true, false}, - {"auto", true, false, false}, - {"auto", true, true, false}, - {"auto+ssl", true, false, false}, - {"auto+ssl", true, true, false}, - {"auto+nio", true, false, false}, - {"auto+nio", true, true, false}, - {"auto+nio+ssl", true, false, false}, - {"auto+nio+ssl", true, true, false}, - - //Client side disabled but server side enabled - // - // AMQ-8515 client=false, failover=true, server=true - // results in infinite retries since broker closes - // socket, so we don't test that combo - {"tcp", false, false, true}, - {"ssl", false, false, true}, - {"nio", false, false, true}, - {"nio+ssl", false, false, true}, - {"auto", false, false, true}, - {"auto+ssl", false, false, true}, - {"auto+nio", false, false, true}, - {"auto+nio+ssl", false, false, true}, - - //Client side and server side disabled - {"tcp", false, false, false}, - {"tcp", false, true, false}, - {"ssl", false, false, false}, - {"ssl", false, true, false}, - {"nio", false, false, false}, - {"nio", false, true, false}, - {"nio+ssl", false, false, false}, - {"nio+ssl", false, true, false}, - {"auto", false, false, false}, - {"auto", false, true, false}, - {"auto+ssl", false, false, false}, - {"auto+ssl", false, true, false}, - {"auto+nio", false, false, false}, - {"auto+nio", false, true, false}, - {"auto+nio+ssl", false, false, false}, - {"auto+nio+ssl", false, true, false}, - }); + //Both client and server side max frame check enabled + {"tcp", true, false, true}, + {"tcp", true, true, true}, + {"ssl", true, false, true}, + {"ssl", true, true, true}, + {"nio", true, false, true}, + {"nio", true, true, true}, + {"nio+ssl", true, false, true}, + {"nio+ssl", true, true, true}, + {"auto", true, false, true}, + {"auto", true, true, true}, + {"auto+ssl", true, false, true}, + {"auto+ssl", true, true, true}, + {"auto+nio", true, false, true}, + {"auto+nio", true, true, true}, + {"auto+nio+ssl", true, false, true}, + {"auto+nio+ssl", true, true, true}, + + //Client side enabled but server side disabled + {"tcp", true, false, false}, + {"tcp", true, true, false}, + {"ssl", true, false, false}, + {"ssl", true, true, false}, + {"nio", true, false, false}, + {"nio", true, true, false}, + {"nio+ssl", true, false, false}, + {"nio+ssl", true, true, false}, + {"auto", true, false, false}, + {"auto", true, true, false}, + {"auto+ssl", true, false, false}, + {"auto+ssl", true, true, false}, + {"auto+nio", true, false, false}, + {"auto+nio", true, true, false}, + {"auto+nio+ssl", true, false, false}, + {"auto+nio+ssl", true, true, false}, + + //Client side disabled but server side enabled + // + // AMQ-8515 client=false, failover=true, server=true + // results in infinite retries since broker closes + // socket, so we don't test that combo + {"tcp", false, false, true}, + {"ssl", false, false, true}, + {"nio", false, false, true}, + {"nio+ssl", false, false, true}, + {"auto", false, false, true}, + {"auto+ssl", false, false, true}, + {"auto+nio", false, false, true}, + {"auto+nio+ssl", false, false, true}, + + //Client side and server side disabled + {"tcp", false, false, false}, + {"tcp", false, true, false}, + {"ssl", false, false, false}, + {"ssl", false, true, false}, + {"nio", false, false, false}, + {"nio", false, true, false}, + {"nio+ssl", false, false, false}, + {"nio+ssl", false, true, false}, + {"auto", false, false, false}, + {"auto", false, true, false}, + {"auto+ssl", false, false, false}, + {"auto+ssl", false, true, false}, + {"auto+nio", false, false, false}, + {"auto+nio", false, true, false}, + {"auto+nio+ssl", false, false, false}, + {"auto+nio+ssl", false, true, false}, + }); } @BeforeClass @@ -190,22 +193,21 @@ protected void testMaxFrameSize(String transportType, String clientUri, boolean final ActiveMQConnectionFactory factory = new ActiveMQConnectionFactory(clientUri); factory.setUseCompression(useCompression); - for (int i = 0; i < 10; i++) { + for (int i = 0; i < CONNECTION_COUNT; i++) { Connection connection = factory.createConnection(); connection.start(); connections.add(connection); } //Generate a body that is too large - StringBuffer body = new StringBuffer(); - Random r = new Random(); - for (int i = 0; i < 10000; i++) { - body.append(r.nextInt()); + StringBuilder body = new StringBuilder(BODY_SIZE + 16); + for (int i = 0; i < BODY_SIZE; i++) { + body.append((char) ('A' + (i % 26))); } - //Try sending 10 large messages rapidly in a loop to make sure all + //Try sending a few large messages rapidly in a loop to make sure all //nio threads are allowed to send again and do not close server-side - for (int i = 0; i < 10; i++) { + for (int i = 0; i < MESSAGE_ATTEMPTS; i++) { boolean maxFrameSizeException = false; boolean otherException = false; @@ -259,7 +261,7 @@ protected void testMaxFrameSize(String transportType, String clientUri, boolean messageConsumer = session.createConsumer(destination); producer.send(session.createTextMessage("Hello")); - int maxLoops = 50; + int maxLoops = 20; boolean found = false; do { Message message = messageConsumer.receive(200l); @@ -269,7 +271,7 @@ protected void testMaxFrameSize(String transportType, String clientUri, boolean found = true; } maxLoops++; - } while (!found && maxLoops <= 50); + } while (!found && maxLoops <= 20); } catch (Exception e) { nextException = true; @@ -281,12 +283,12 @@ protected void testMaxFrameSize(String transportType, String clientUri, boolean if (connectionsShouldBeOpen(useCompression)) { //Verify that all connections are active - assertTrue(Wait.waitFor(() -> broker.getConnectorByName(transportType).getConnections().size() == 10, - 3000, 500)); + assertTrue(Wait.waitFor(() -> broker.getConnectorByName(transportType).getConnections().size() == CONNECTION_COUNT, + 3000, 500)); } else { //Verify that all connections are closed assertTrue(Wait.waitFor(() -> broker.getConnectorByName(transportType).getConnections().size() == 0, - 3000, 500)); + 3000, 500)); } if (isNio() && connectionsShouldBeOpen(useCompression)) { @@ -307,7 +309,7 @@ private boolean connectionsShouldBeOpen(boolean useCompression) { private boolean isFailover() { return clientSideFailoverEnabled; } - + private boolean isSsl() { return transportType.contains("ssl"); } @@ -342,7 +344,7 @@ private String getClientParams() { private String getClientUri(int port) { if(isFailover()) { - return "failover:(" + (isSsl() ? "ssl" : "tcp") + "://localhost:" + port + ")" + getClientParams() + "&maxReconnectAttempts=1&startupMaxReconnectAttempts=1"; + return "failover:(" + (isSsl() ? "ssl" : "tcp") + "://localhost:" + port + ")" + getClientParams() + "&maxReconnectAttempts=1&startupMaxReconnectAttempts=1"; } else { return (isSsl() ? "ssl" : "tcp") + "://localhost:" + port + getClientParams(); } diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/transport/SoWriteTimeoutClientTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/transport/SoWriteTimeoutClientTest.java index b74a9cad6f7..8d23af2a2d5 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/transport/SoWriteTimeoutClientTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/transport/SoWriteTimeoutClientTest.java @@ -34,7 +34,10 @@ import org.apache.activemq.util.Wait; import org.slf4j.Logger; import org.slf4j.LoggerFactory; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; +@Category(ParallelTest.class) public class SoWriteTimeoutClientTest extends JmsTestSupport { private static final Logger LOG = LoggerFactory.getLogger(SoWriteTimeoutClientTest.class); diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/transport/discovery/DiscoveryNetworkReconnectTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/transport/discovery/DiscoveryNetworkReconnectTest.java index 68662e162b7..378c54b2a87 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/transport/discovery/DiscoveryNetworkReconnectTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/transport/discovery/DiscoveryNetworkReconnectTest.java @@ -16,15 +16,6 @@ */ package org.apache.activemq.transport.discovery; -import static org.junit.Assert.assertTrue; - -import java.net.URI; -import java.util.concurrent.Semaphore; -import java.util.concurrent.TimeUnit; - -import javax.management.ObjectInstance; -import javax.management.ObjectName; - import org.apache.activemq.broker.BrokerService; import org.apache.activemq.broker.jmx.ManagementContext; import org.apache.activemq.transport.discovery.multicast.MulticastDiscoveryAgentFactory; @@ -46,6 +37,14 @@ import org.slf4j.Logger; import org.slf4j.LoggerFactory; +import javax.management.ObjectInstance; +import javax.management.ObjectName; +import java.net.URI; +import java.util.concurrent.Semaphore; +import java.util.concurrent.TimeUnit; + +import static org.junit.Assert.assertTrue; + @RunWith(JMock.class) public class DiscoveryNetworkReconnectTest { diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/transport/discovery/DiscoveryUriTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/transport/discovery/DiscoveryUriTest.java index 849e0df7413..4e95224f09d 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/transport/discovery/DiscoveryUriTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/transport/discovery/DiscoveryUriTest.java @@ -24,7 +24,10 @@ import jakarta.jms.*; import java.net.URI; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; +@Category(ParallelTest.class) public class DiscoveryUriTest extends EmbeddedBrokerTestSupport { @Override diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/transport/failover/FailoverReadInactivityBlockWriteTimeoutClientTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/transport/failover/FailoverReadInactivityBlockWriteTimeoutClientTest.java index 45451ef1449..b4e41438c69 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/transport/failover/FailoverReadInactivityBlockWriteTimeoutClientTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/transport/failover/FailoverReadInactivityBlockWriteTimeoutClientTest.java @@ -39,7 +39,10 @@ import org.apache.activemq.util.Wait; import org.slf4j.Logger; import org.slf4j.LoggerFactory; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; +@Category(ParallelTest.class) public class FailoverReadInactivityBlockWriteTimeoutClientTest extends JmsTestSupport { private static final Logger LOG = LoggerFactory.getLogger(FailoverReadInactivityBlockWriteTimeoutClientTest.class); diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/transport/failover/FailoverTransportBackupsTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/transport/failover/FailoverTransportBackupsTest.java index ed39268df9d..9cfb3065650 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/transport/failover/FailoverTransportBackupsTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/transport/failover/FailoverTransportBackupsTest.java @@ -35,7 +35,10 @@ import org.junit.Test; import org.slf4j.Logger; import org.slf4j.LoggerFactory; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; +@Category(ParallelTest.class) public class FailoverTransportBackupsTest { private static final Logger LOG = LoggerFactory.getLogger(FailoverTransportBackupsTest.class); diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/transport/failover/ReconnectTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/transport/failover/ReconnectTest.java index 25f7ea9a2de..792cbd29e08 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/transport/failover/ReconnectTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/transport/failover/ReconnectTest.java @@ -40,7 +40,10 @@ import org.apache.activemq.util.Wait; import org.slf4j.Logger; import org.slf4j.LoggerFactory; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; +@Category(ParallelTest.class) public class ReconnectTest extends TestCase { public static final int MESSAGES_PER_ITTERATION = 10; diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/transport/tcp/TcpTransportBindTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/transport/tcp/TcpTransportBindTest.java index fb03a93e150..7ee4df41f0c 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/transport/tcp/TcpTransportBindTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/transport/tcp/TcpTransportBindTest.java @@ -26,7 +26,10 @@ import org.apache.activemq.ActiveMQConnectionFactory; import org.apache.activemq.EmbeddedBrokerTestSupport; import org.apache.activemq.broker.BrokerService; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; +@Category(ParallelTest.class) public class TcpTransportBindTest extends EmbeddedBrokerTestSupport { String addr = "tcp://localhost:0"; diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/transport/vm/VMTransportBrokerTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/transport/vm/VMTransportBrokerTest.java index c4f9ab2063f..703b5719c78 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/transport/vm/VMTransportBrokerTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/transport/vm/VMTransportBrokerTest.java @@ -18,7 +18,10 @@ import junit.framework.Test; import org.apache.activemq.transport.TransportBrokerTestSupport; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; +@Category(ParallelTest.class) public class VMTransportBrokerTest extends TransportBrokerTestSupport { protected String getBindLocation() { diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/transport/vm/VMTransportEmbeddedBrokerTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/transport/vm/VMTransportEmbeddedBrokerTest.java index b1fc21509b9..14802cc0734 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/transport/vm/VMTransportEmbeddedBrokerTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/transport/vm/VMTransportEmbeddedBrokerTest.java @@ -33,12 +33,15 @@ import org.apache.activemq.transport.Transport; import org.apache.activemq.transport.TransportFactory; import org.apache.activemq.util.IOExceptionSupport; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * Used to see if the VM transport starts an embedded broker on demand. * * */ +@Category(ParallelTest.class) public class VMTransportEmbeddedBrokerTest extends BrokerTestSupport { public static void main(String[] args) { diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/transport/vm/VMTransportWaitForTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/transport/vm/VMTransportWaitForTest.java index 05df0d71934..c87fb459947 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/transport/vm/VMTransportWaitForTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/transport/vm/VMTransportWaitForTest.java @@ -34,7 +34,10 @@ import org.junit.Test; import org.slf4j.Logger; import org.slf4j.LoggerFactory; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; +@Category(ParallelTest.class) public class VMTransportWaitForTest { static final Logger LOG = LoggerFactory.getLogger(VMTransportWaitForTest.class); diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/usage/CompositeMessageCursorUsageTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/usage/CompositeMessageCursorUsageTest.java index ce057791461..c14748bf375 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/usage/CompositeMessageCursorUsageTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/usage/CompositeMessageCursorUsageTest.java @@ -30,7 +30,10 @@ import org.apache.activemq.broker.jmx.QueueViewMBean; import org.springframework.jms.core.JmsTemplate; import org.springframework.jms.core.MessageCreator; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; +@Category(ParallelTest.class) public class CompositeMessageCursorUsageTest extends TestCase { BrokerService broker; diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/usage/JobSchedulerStoreUsageTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/usage/JobSchedulerStoreUsageTest.java index ea95ba52295..3e952a5b1cf 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/usage/JobSchedulerStoreUsageTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/usage/JobSchedulerStoreUsageTest.java @@ -17,13 +17,10 @@ package org.apache.activemq.usage; -import java.io.File; - import jakarta.jms.Connection; import jakarta.jms.Destination; import jakarta.jms.Message; import jakarta.jms.Session; - import org.apache.activemq.ActiveMQConnectionFactory; import org.apache.activemq.EmbeddedBrokerTestSupport; import org.apache.activemq.ScheduledMessage; @@ -34,6 +31,8 @@ import org.slf4j.Logger; import org.slf4j.LoggerFactory; +import java.io.File; + import static org.junit.Assert.assertNotEquals; public class JobSchedulerStoreUsageTest extends EmbeddedBrokerTestSupport { diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/usage/StoreUsageTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/usage/StoreUsageTest.java index 93a65a840e8..928b7193bb2 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/usage/StoreUsageTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/usage/StoreUsageTest.java @@ -17,6 +17,9 @@ package org.apache.activemq.usage; +import jakarta.jms.Connection; +import jakarta.jms.Destination; +import jakarta.jms.Session; import org.apache.activemq.ActiveMQConnectionFactory; import org.apache.activemq.EmbeddedBrokerTestSupport; import org.apache.activemq.broker.BrokerService; @@ -26,9 +29,6 @@ import org.slf4j.Logger; import org.slf4j.LoggerFactory; -import jakarta.jms.Connection; -import jakarta.jms.Destination; -import jakarta.jms.Session; import java.util.concurrent.TimeUnit; public class StoreUsageTest extends EmbeddedBrokerTestSupport { diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/usecases/AdvisoryTopicCleanUpTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/usecases/AdvisoryTopicCleanUpTest.java index e01826dc546..0fb6541a036 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/usecases/AdvisoryTopicCleanUpTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/usecases/AdvisoryTopicCleanUpTest.java @@ -32,7 +32,10 @@ import org.slf4j.LoggerFactory; import jakarta.jms.*; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; +@Category(ParallelTest.class) public class AdvisoryTopicCleanUpTest { private static final Logger LOG = LoggerFactory.getLogger(AdvisoryTopicCleanUpTest.class); diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/usecases/AdvisoryTopicDeletionTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/usecases/AdvisoryTopicDeletionTest.java index 61fa87bf981..ffa4b93a168 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/usecases/AdvisoryTopicDeletionTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/usecases/AdvisoryTopicDeletionTest.java @@ -30,7 +30,10 @@ import org.apache.activemq.command.ActiveMQDestination; import org.slf4j.Logger; import org.slf4j.LoggerFactory; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; +@Category(ParallelTest.class) public class AdvisoryTopicDeletionTest extends TestSupport { private static final Logger LOG = LoggerFactory.getLogger(AdvisoryTopicDeletionTest.class); diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/usecases/AuthorizationFromAdminViewTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/usecases/AuthorizationFromAdminViewTest.java index 33651cb03ce..6e6d03a61db 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/usecases/AuthorizationFromAdminViewTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/usecases/AuthorizationFromAdminViewTest.java @@ -22,7 +22,10 @@ import org.apache.activemq.broker.BrokerService; import org.apache.activemq.security.AuthorizationPlugin; import org.apache.activemq.security.SimpleAuthorizationMap; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; +@Category(ParallelTest.class) public class AuthorizationFromAdminViewTest extends org.apache.activemq.TestSupport { private BrokerService broker; diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/usecases/BatchedMessagePriorityConsumerTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/usecases/BatchedMessagePriorityConsumerTest.java index 01ed5133a13..ba244e72321 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/usecases/BatchedMessagePriorityConsumerTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/usecases/BatchedMessagePriorityConsumerTest.java @@ -25,6 +25,8 @@ import org.slf4j.Logger; import org.slf4j.LoggerFactory; + + public class BatchedMessagePriorityConsumerTest extends JmsTestSupport { private static final Logger LOG = LoggerFactory.getLogger(BatchedMessagePriorityConsumerTest.class); diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/usecases/BrowseDLQTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/usecases/BrowseDLQTest.java index b6f5d861ce2..f6b54bf1606 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/usecases/BrowseDLQTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/usecases/BrowseDLQTest.java @@ -36,10 +36,13 @@ import java.util.concurrent.TimeUnit; import static org.junit.Assert.*; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * @author Christian Posta */ +@Category(ParallelTest.class) public class BrowseDLQTest { private static final int NUM_MESSAGES = 100; diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/usecases/CompositeConsumeTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/usecases/CompositeConsumeTest.java index bae00776bea..73c87514278 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/usecases/CompositeConsumeTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/usecases/CompositeConsumeTest.java @@ -24,10 +24,13 @@ import org.apache.activemq.transport.udp.UdpTransportUsingServerTest; import org.slf4j.Logger; import org.slf4j.LoggerFactory; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * */ +@Category(ParallelTest.class) public class CompositeConsumeTest extends JmsTopicSendReceiveWithTwoConnectionsTest { private static final Logger LOG = LoggerFactory.getLogger(CompositeConsumeTest.class); diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/usecases/CompositePublishTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/usecases/CompositePublishTest.java index 006492d568e..48786767b47 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/usecases/CompositePublishTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/usecases/CompositePublishTest.java @@ -31,10 +31,13 @@ import org.apache.activemq.test.JmsSendReceiveTestSupport; import org.slf4j.Logger; import org.slf4j.LoggerFactory; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * */ +@Category(ParallelTest.class) public class CompositePublishTest extends JmsSendReceiveTestSupport { private static final Logger LOG = LoggerFactory.getLogger(CompositePublishTest.class); diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/usecases/ConsumeUncompressedCompressedMessageTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/usecases/ConsumeUncompressedCompressedMessageTest.java index 627b7fe14dd..59601e2b71f 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/usecases/ConsumeUncompressedCompressedMessageTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/usecases/ConsumeUncompressedCompressedMessageTest.java @@ -45,7 +45,10 @@ import org.junit.Test; import org.slf4j.Logger; import org.slf4j.LoggerFactory; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; +@Category(ParallelTest.class) public class ConsumeUncompressedCompressedMessageTest { private static final Logger LOG = LoggerFactory.getLogger(ConsumeUncompressedCompressedMessageTest.class); diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/usecases/DurableConsumerCloseAndReconnectTcpTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/usecases/DurableConsumerCloseAndReconnectTcpTest.java index d7a639d6bdf..ee5c132f05d 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/usecases/DurableConsumerCloseAndReconnectTcpTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/usecases/DurableConsumerCloseAndReconnectTcpTest.java @@ -37,7 +37,10 @@ import org.apache.activemq.util.URISupport; import org.slf4j.Logger; import org.slf4j.LoggerFactory; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; +@Category(ParallelTest.class) public class DurableConsumerCloseAndReconnectTcpTest extends DurableConsumerCloseAndReconnectTest implements ExceptionListener, TransportListener { private static final Logger LOG = LoggerFactory.getLogger(DurableConsumerCloseAndReconnectTcpTest.class); diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/usecases/DurableSubscriberNonPersistentMessageTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/usecases/DurableSubscriberNonPersistentMessageTest.java index 4e38faa2e70..e867048979a 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/usecases/DurableSubscriberNonPersistentMessageTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/usecases/DurableSubscriberNonPersistentMessageTest.java @@ -50,7 +50,10 @@ import org.apache.activemq.util.Wait; import org.slf4j.Logger; import org.slf4j.LoggerFactory; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; +@Category(ParallelTest.class) public class DurableSubscriberNonPersistentMessageTest extends TestCase { private final Logger LOG = LoggerFactory.getLogger(DurableSubscriberNonPersistentMessageTest.class); diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/usecases/DurableSubscriptionReactivationTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/usecases/DurableSubscriptionReactivationTest.java index b9193f2bea9..159aa4a3b43 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/usecases/DurableSubscriptionReactivationTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/usecases/DurableSubscriptionReactivationTest.java @@ -29,7 +29,10 @@ import org.apache.activemq.EmbeddedBrokerTestSupport; import org.apache.activemq.broker.BrokerService; import org.apache.activemq.store.jdbc.JDBCPersistenceAdapter; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; +@Category(ParallelTest.class) public class DurableSubscriptionReactivationTest extends EmbeddedBrokerTestSupport { public boolean keepDurableSubsActive; diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/usecases/DurableSubscriptionRemoveOfflineTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/usecases/DurableSubscriptionRemoveOfflineTest.java index e1397ab9a5f..e74d12a2388 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/usecases/DurableSubscriptionRemoveOfflineTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/usecases/DurableSubscriptionRemoveOfflineTest.java @@ -28,7 +28,10 @@ import org.apache.activemq.util.Wait; import org.slf4j.Logger; import org.slf4j.LoggerFactory; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; +@Category(ParallelTest.class) public class DurableSubscriptionRemoveOfflineTest extends EmbeddedBrokerTestSupport { private static final Logger LOG = LoggerFactory.getLogger(DurableSubscriptionRemoveOfflineTest.class); diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/usecases/DurableUnsubscribeTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/usecases/DurableUnsubscribeTest.java index 10b14ebfdae..f2ab25b6e10 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/usecases/DurableUnsubscribeTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/usecases/DurableUnsubscribeTest.java @@ -29,7 +29,10 @@ import org.apache.activemq.broker.BrokerService; import org.apache.activemq.broker.region.Destination; import org.apache.activemq.command.ActiveMQTopic; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; +@Category(ParallelTest.class) public class DurableUnsubscribeTest extends org.apache.activemq.TestSupport { private BrokerService broker; diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/usecases/ExpiredMessagesTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/usecases/ExpiredMessagesTest.java index 8c128b09dc7..7378737539c 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/usecases/ExpiredMessagesTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/usecases/ExpiredMessagesTest.java @@ -49,7 +49,12 @@ import static org.apache.activemq.TestSupport.getDestination; import static org.apache.activemq.TestSupport.getDestinationConsumers; import static org.apache.activemq.TestSupport.getDestinationStatistics; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; + + +@Category(ParallelTest.class) public class ExpiredMessagesTest extends CombinationTestSupport { private static final Logger LOG = LoggerFactory.getLogger(ExpiredMessagesTest.class); diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/usecases/ExpiredMessagesWithNoConsumerTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/usecases/ExpiredMessagesWithNoConsumerTest.java index 5db65b1f7a6..f7bd5fad8fc 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/usecases/ExpiredMessagesWithNoConsumerTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/usecases/ExpiredMessagesWithNoConsumerTest.java @@ -16,10 +16,6 @@ */ package org.apache.activemq.usecases; -import java.util.concurrent.CountDownLatch; -import java.util.concurrent.TimeUnit; -import java.util.concurrent.atomic.AtomicLong; - import jakarta.jms.Connection; import jakarta.jms.DeliveryMode; import jakarta.jms.Message; @@ -29,10 +25,7 @@ import jakarta.jms.Session; import jakarta.jms.Topic; import jakarta.jms.TopicSubscriber; -import javax.management.ObjectName; - import junit.framework.Test; - import org.apache.activemq.ActiveMQConnectionFactory; import org.apache.activemq.CombinationTestSupport; import org.apache.activemq.broker.BrokerService; @@ -50,6 +43,11 @@ import org.slf4j.Logger; import org.slf4j.LoggerFactory; +import javax.management.ObjectName; +import java.util.concurrent.CountDownLatch; +import java.util.concurrent.TimeUnit; +import java.util.concurrent.atomic.AtomicLong; + public class ExpiredMessagesWithNoConsumerTest extends CombinationTestSupport { private static final Logger LOG = LoggerFactory.getLogger(ExpiredMessagesWithNoConsumerTest.class); diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/usecases/JMXRemoveQueueThenSendIgnoredTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/usecases/JMXRemoveQueueThenSendIgnoredTest.java index b0d6d3dbe38..1463284aa54 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/usecases/JMXRemoveQueueThenSendIgnoredTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/usecases/JMXRemoveQueueThenSendIgnoredTest.java @@ -38,7 +38,10 @@ import org.junit.Test; import org.slf4j.Logger; import org.slf4j.LoggerFactory; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; +@Category(ParallelTest.class) public class JMXRemoveQueueThenSendIgnoredTest { private static final Logger LOG = LoggerFactory.getLogger(JMXRemoveQueueThenSendIgnoredTest.class); diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/usecases/JdbcDurableSubDupTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/usecases/JdbcDurableSubDupTest.java index dbf607df3c3..ee8cfa20c3b 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/usecases/JdbcDurableSubDupTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/usecases/JdbcDurableSubDupTest.java @@ -45,7 +45,10 @@ import org.junit.Test; import org.slf4j.Logger; import org.slf4j.LoggerFactory; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; +@Category(ParallelTest.class) public class JdbcDurableSubDupTest { private static final Logger LOG = LoggerFactory.getLogger(JdbcDurableSubDupTest.class); diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/usecases/LargeQueueSparseDeleteTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/usecases/LargeQueueSparseDeleteTest.java index a9799491ff4..0ed081c194d 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/usecases/LargeQueueSparseDeleteTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/usecases/LargeQueueSparseDeleteTest.java @@ -29,12 +29,15 @@ import org.junit.Assert; import org.slf4j.Logger; import org.slf4j.LoggerFactory; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * This unit test creates a fixed size queue and moves the last message in the * queue to another queue. The test is used to very the performance of * {@link org.apache.activemq.broker.region.Queue#moveMatchingMessagesTo(org.apache.activemq.broker.ConnectionContext, String, org.apache.activemq.command.ActiveMQDestination)}. */ +@Category(ParallelTest.class) public class LargeQueueSparseDeleteTest extends EmbeddedBrokerTestSupport { private static final Logger LOG = LoggerFactory.getLogger(LargeQueueSparseDeleteTest.class); diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/usecases/MemoryLimitTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/usecases/MemoryLimitTest.java index adc4e88f150..23e7dcae3f3 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/usecases/MemoryLimitTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/usecases/MemoryLimitTest.java @@ -16,15 +16,12 @@ */ package org.apache.activemq.usecases; -import java.util.Arrays; - import jakarta.jms.BytesMessage; import jakarta.jms.Connection; import jakarta.jms.Message; import jakarta.jms.MessageConsumer; import jakarta.jms.Queue; import jakarta.jms.Session; - import org.apache.activemq.ActiveMQConnectionFactory; import org.apache.activemq.TestSupport; import org.apache.activemq.broker.BrokerService; @@ -45,6 +42,8 @@ import org.slf4j.Logger; import org.slf4j.LoggerFactory; +import java.util.Arrays; + @RunWith(value = Parameterized.class) public class MemoryLimitTest extends TestSupport { private static final Logger LOG = LoggerFactory.getLogger(MemoryLimitTest.class); diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/usecases/MessageGroupCloseTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/usecases/MessageGroupCloseTest.java index d64e5db0e40..912544b2b05 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/usecases/MessageGroupCloseTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/usecases/MessageGroupCloseTest.java @@ -25,6 +25,8 @@ import jakarta.jms.Queue; import java.util.*; import java.util.concurrent.CountDownLatch; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /* * Test plan: @@ -34,6 +36,7 @@ * Expected: for each group, messages 1-5 are handled by one consumer and messages 6-10 are handled by the other consumer. Messages * 1 and 6 have the JMSXGroupFirstForConsumer property set to true. */ +@Category(ParallelTest.class) public class MessageGroupCloseTest extends TestCase { private static final Logger LOG = LoggerFactory.getLogger(MessageGroupNewConsumerTest.class); private Connection connection; diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/usecases/MessageGroupDelayedTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/usecases/MessageGroupDelayedTest.java index 57adfeb3a2c..9c6a42834bb 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/usecases/MessageGroupDelayedTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/usecases/MessageGroupDelayedTest.java @@ -39,7 +39,12 @@ import org.apache.activemq.command.ActiveMQQueue; import org.slf4j.Logger; import org.slf4j.LoggerFactory; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; + + +@Category(ParallelTest.class) public class MessageGroupDelayedTest extends JmsTestSupport { public static final Logger log = LoggerFactory.getLogger(MessageGroupDelayedTest.class); protected Connection connection; diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/usecases/MessageGroupLateArrivalsTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/usecases/MessageGroupLateArrivalsTest.java index c9b914edcb3..4375386d943 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/usecases/MessageGroupLateArrivalsTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/usecases/MessageGroupLateArrivalsTest.java @@ -47,8 +47,11 @@ import org.slf4j.LoggerFactory; import static org.junit.Assert.*; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; @RunWith(BlockJUnit4ClassRunner.class) +@Category(ParallelTest.class) public class MessageGroupLateArrivalsTest { public static final Logger log = LoggerFactory.getLogger(MessageGroupLateArrivalsTest.class); protected Connection connection; diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/usecases/MessageGroupNewConsumerTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/usecases/MessageGroupNewConsumerTest.java index c7ffe2fd3de..24da1b561fd 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/usecases/MessageGroupNewConsumerTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/usecases/MessageGroupNewConsumerTest.java @@ -31,6 +31,8 @@ import org.slf4j.Logger; import org.slf4j.LoggerFactory; import junit.framework.TestCase; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /* * Test plan: @@ -41,6 +43,7 @@ * All three groups are handled by to consumer1, so consumer2 should not get any messages. * See bug AMQ-2016: Message grouping fails when consumers are added */ +@Category(ParallelTest.class) public class MessageGroupNewConsumerTest extends TestCase { private static final Logger LOG = LoggerFactory.getLogger(MessageGroupNewConsumerTest.class); private Connection connection; diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/usecases/MessageGroupReconnectDistributionTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/usecases/MessageGroupReconnectDistributionTest.java index a7a686a6aa1..482f9f8e578 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/usecases/MessageGroupReconnectDistributionTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/usecases/MessageGroupReconnectDistributionTest.java @@ -48,8 +48,11 @@ import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertTrue; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; @RunWith(Parameterized.class) +@Category(ParallelTest.class) public class MessageGroupReconnectDistributionTest { public static final Logger LOG = LoggerFactory.getLogger(MessageGroupReconnectDistributionTest.class); final Random random = new Random(); diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/usecases/NetworkBrokerNameColonTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/usecases/NetworkBrokerNameColonTest.java index 192dc808150..d0d8fa16da8 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/usecases/NetworkBrokerNameColonTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/usecases/NetworkBrokerNameColonTest.java @@ -24,7 +24,10 @@ import org.apache.activemq.network.NetworkConnector; import org.slf4j.Logger; import org.slf4j.LoggerFactory; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; +@Category(ParallelTest.class) public class NetworkBrokerNameColonTest extends JmsMultipleBrokersTestSupport { private static final Logger LOG = LoggerFactory.getLogger(NetworkBrokerNameColonTest.class); diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/usecases/NoDuplicateOnTopicNetworkTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/usecases/NoDuplicateOnTopicNetworkTest.java index 0fafd429be5..89d7fd51d8c 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/usecases/NoDuplicateOnTopicNetworkTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/usecases/NoDuplicateOnTopicNetworkTest.java @@ -56,6 +56,8 @@ import org.slf4j.Logger; import org.slf4j.LoggerFactory; + + public class NoDuplicateOnTopicNetworkTest extends CombinationTestSupport { private static final Logger LOG = LoggerFactory .getLogger(NoDuplicateOnTopicNetworkTest.class); diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/usecases/ObjectMessageNotSerializableTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/usecases/ObjectMessageNotSerializableTest.java index 140269c397d..7b7fb9c4f77 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/usecases/ObjectMessageNotSerializableTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/usecases/ObjectMessageNotSerializableTest.java @@ -37,8 +37,13 @@ import org.apache.activemq.command.ActiveMQTopic; import org.slf4j.Logger; import org.slf4j.LoggerFactory; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; + + +@Category(ParallelTest.class) public class ObjectMessageNotSerializableTest extends CombinationTestSupport { private static final Logger LOG = LoggerFactory.getLogger(ObjectMessageNotSerializableTest.class); diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/usecases/PublishOnTopicConsumedMessageTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/usecases/PublishOnTopicConsumedMessageTest.java index 605bb7709a8..9740817b181 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/usecases/PublishOnTopicConsumedMessageTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/usecases/PublishOnTopicConsumedMessageTest.java @@ -20,7 +20,6 @@ import jakarta.jms.JMSException; import jakarta.jms.Message; import jakarta.jms.MessageProducer; - import org.apache.activemq.test.JmsTopicSendReceiveWithTwoConnectionsTest; import org.slf4j.Logger; import org.slf4j.LoggerFactory; diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/usecases/QueueRepeaterTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/usecases/QueueRepeaterTest.java index cf9a5daf003..0536a41fb58 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/usecases/QueueRepeaterTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/usecases/QueueRepeaterTest.java @@ -35,11 +35,15 @@ import org.apache.activemq.command.ActiveMQQueue; import org.slf4j.Logger; import org.slf4j.LoggerFactory; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; +import org.apache.activemq.test.annotations.ParallelTest; /** * @author pragmasoft * */ +@Category(ParallelTest.class) public final class QueueRepeaterTest extends TestCase { private static final Logger LOG = LoggerFactory.getLogger(QueueRepeaterTest.class); diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/usecases/RequestReplyNoAdvisoryNetworkTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/usecases/RequestReplyNoAdvisoryNetworkTest.java index 47b868e1b19..b73ae5e077e 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/usecases/RequestReplyNoAdvisoryNetworkTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/usecases/RequestReplyNoAdvisoryNetworkTest.java @@ -49,7 +49,10 @@ import org.apache.activemq.xbean.XBeanBrokerFactory; import org.slf4j.Logger; import org.slf4j.LoggerFactory; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; +@Category(ParallelTest.class) public class RequestReplyNoAdvisoryNetworkTest extends JmsMultipleBrokersTestSupport { private static final transient Logger LOG = LoggerFactory.getLogger(RequestReplyNoAdvisoryNetworkTest.class); diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/usecases/SelectorAwareVTThatDropsMessagesWhenNoConsumer.java b/activemq-unit-tests/src/test/java/org/apache/activemq/usecases/SelectorAwareVTThatDropsMessagesWhenNoConsumer.java index 45e9a0ae389..af8874535f8 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/usecases/SelectorAwareVTThatDropsMessagesWhenNoConsumer.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/usecases/SelectorAwareVTThatDropsMessagesWhenNoConsumer.java @@ -42,7 +42,10 @@ import java.util.concurrent.atomic.AtomicInteger; import static org.junit.Assert.assertEquals; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; +@Category(ParallelTest.class) public class SelectorAwareVTThatDropsMessagesWhenNoConsumer { protected static final Logger LOG = LoggerFactory.getLogger(SelectorAwareVTThatDropsMessagesWhenNoConsumer.class); private static final String QUEUE_NAME="TestQ"; diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/usecases/StartAndStopClientAndBrokerDoesNotLeaveThreadsRunningTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/usecases/StartAndStopClientAndBrokerDoesNotLeaveThreadsRunningTest.java index a530d7a21cc..5607896223d 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/usecases/StartAndStopClientAndBrokerDoesNotLeaveThreadsRunningTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/usecases/StartAndStopClientAndBrokerDoesNotLeaveThreadsRunningTest.java @@ -27,11 +27,14 @@ import org.apache.activemq.ActiveMQConnectionFactory; import org.apache.activemq.broker.BrokerService; import org.apache.activemq.spring.ConsumerBean; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * * */ +@Category(ParallelTest.class) public class StartAndStopClientAndBrokerDoesNotLeaveThreadsRunningTest extends TestCase { public static interface Task { diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/usecases/TestSupport.java b/activemq-unit-tests/src/test/java/org/apache/activemq/usecases/TestSupport.java index bb0ca9ba03c..f2965c2a955 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/usecases/TestSupport.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/usecases/TestSupport.java @@ -28,10 +28,13 @@ import org.apache.activemq.command.ActiveMQMessage; import org.apache.activemq.command.ActiveMQQueue; import org.apache.activemq.command.ActiveMQTopic; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * Useful base class for unit test cases */ +@Category(ParallelTest.class) public abstract class TestSupport extends TestCase { protected ActiveMQConnectionFactory connectionFactory; diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/usecases/TopicSubscriptionSlowConsumerTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/usecases/TopicSubscriptionSlowConsumerTest.java index 93f33d3fe2a..d2bf5dc0b66 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/usecases/TopicSubscriptionSlowConsumerTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/usecases/TopicSubscriptionSlowConsumerTest.java @@ -30,6 +30,8 @@ import jakarta.jms.MessageConsumer; import jakarta.jms.MessageProducer; import jakarta.jms.Session; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** @@ -39,6 +41,7 @@ * */ +@Category(ParallelTest.class) public class TopicSubscriptionSlowConsumerTest extends TestCase { private static final String TOPIC_NAME = "slow.consumer"; diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/usecases/TopicSubscriptionZeroPrefetchTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/usecases/TopicSubscriptionZeroPrefetchTest.java index f41d028bdc3..1bc7abcb7c7 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/usecases/TopicSubscriptionZeroPrefetchTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/usecases/TopicSubscriptionZeroPrefetchTest.java @@ -16,15 +16,6 @@ */ package org.apache.activemq.usecases; -import static org.junit.Assert.assertFalse; -import static org.junit.Assert.assertTrue; - -import java.util.concurrent.CountDownLatch; -import java.util.concurrent.ExecutorService; -import java.util.concurrent.Executors; -import java.util.concurrent.TimeUnit; -import java.util.concurrent.atomic.AtomicBoolean; - import jakarta.jms.Connection; import jakarta.jms.DeliveryMode; import jakarta.jms.JMSException; @@ -32,7 +23,6 @@ import jakarta.jms.MessageConsumer; import jakarta.jms.MessageProducer; import jakarta.jms.Session; - import org.apache.activemq.ActiveMQConnectionFactory; import org.apache.activemq.ActiveMQSession; import org.apache.activemq.broker.BrokerService; @@ -48,6 +38,15 @@ import org.slf4j.Logger; import org.slf4j.LoggerFactory; +import java.util.concurrent.CountDownLatch; +import java.util.concurrent.ExecutorService; +import java.util.concurrent.Executors; +import java.util.concurrent.TimeUnit; +import java.util.concurrent.atomic.AtomicBoolean; + +import static org.junit.Assert.assertFalse; +import static org.junit.Assert.assertTrue; + public class TopicSubscriptionZeroPrefetchTest { private static final Logger LOG = LoggerFactory.getLogger(TopicSubscriptionZeroPrefetchTest.class); diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/usecases/TransactionRollbackOrderTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/usecases/TransactionRollbackOrderTest.java index 20bc13dfc35..8d703774b05 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/usecases/TransactionRollbackOrderTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/usecases/TransactionRollbackOrderTest.java @@ -35,6 +35,9 @@ import org.apache.activemq.command.ActiveMQQueue; import org.slf4j.Logger; import org.slf4j.LoggerFactory; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; +import org.apache.activemq.test.annotations.ParallelTest; /** * Test case for AMQ-268 @@ -42,6 +45,7 @@ * @author Paul Smith * */ +@Category(ParallelTest.class) public final class TransactionRollbackOrderTest extends TestCase { private static final Logger LOG = LoggerFactory.getLogger(TransactionRollbackOrderTest.class); diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/usecases/TransactionTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/usecases/TransactionTest.java index ab8dd8d96a9..0ec572bdccd 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/usecases/TransactionTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/usecases/TransactionTest.java @@ -36,11 +36,15 @@ import org.apache.activemq.command.ActiveMQQueue; import org.slf4j.Logger; import org.slf4j.LoggerFactory; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; +import org.apache.activemq.test.annotations.ParallelTest; /** * @author pragmasoft * */ +@Category(ParallelTest.class) public final class TransactionTest extends TestCase { private static final Logger LOG = LoggerFactory.getLogger(TransactionTest.class); diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/usecases/TwoBrokerMulticastQueueTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/usecases/TwoBrokerMulticastQueueTest.java index 2cb88ee20bd..c217c24a776 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/usecases/TwoBrokerMulticastQueueTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/usecases/TwoBrokerMulticastQueueTest.java @@ -36,6 +36,8 @@ import org.apache.activemq.util.MessageIdList; import org.apache.activemq.xbean.XBeanBrokerFactory; + + public class TwoBrokerMulticastQueueTest extends CombinationTestSupport { public static final int MESSAGE_COUNT = 100; diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/usecases/TwoBrokerTempQueueAdvisoryTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/usecases/TwoBrokerTempQueueAdvisoryTest.java index d897ce80647..4139ad6389c 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/usecases/TwoBrokerTempQueueAdvisoryTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/usecases/TwoBrokerTempQueueAdvisoryTest.java @@ -55,8 +55,11 @@ import org.apache.activemq.util.Wait; import org.slf4j.Logger; import org.slf4j.LoggerFactory; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; +@Category(ParallelTest.class) public class TwoBrokerTempQueueAdvisoryTest extends JmsMultipleBrokersTestSupport { private static final Logger LOG = LoggerFactory.getLogger(TwoBrokerTempQueueAdvisoryTest.class); diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/usecases/TwoBrokerTopicSendReceiveTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/usecases/TwoBrokerTopicSendReceiveTest.java index 3a261c340b3..a70a6875a22 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/usecases/TwoBrokerTopicSendReceiveTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/usecases/TwoBrokerTopicSendReceiveTest.java @@ -16,12 +16,8 @@ */ package org.apache.activemq.usecases; -import java.util.HashMap; -import java.util.Iterator; - import jakarta.jms.Connection; import jakarta.jms.JMSException; - import org.apache.activemq.ActiveMQConnectionFactory; import org.apache.activemq.broker.BrokerService; import org.apache.activemq.test.JmsTopicSendReceiveWithTwoConnectionsTest; @@ -31,6 +27,9 @@ import org.slf4j.LoggerFactory; import org.springframework.core.io.ClassPathResource; +import java.util.HashMap; +import java.util.Iterator; + /** * */ diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/util/LinkedNodeTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/util/LinkedNodeTest.java index 86c526213c8..1ddc6162e2a 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/util/LinkedNodeTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/util/LinkedNodeTest.java @@ -17,10 +17,13 @@ package org.apache.activemq.util; import junit.framework.TestCase; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; /** * @author chirino */ +@Category(ParallelTest.class) public class LinkedNodeTest extends TestCase { static class IntLinkedNode extends LinkedNode { diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/util/ReflectionSupportTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/util/ReflectionSupportTest.java index 9ca05b4d73f..dfad166097d 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/util/ReflectionSupportTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/util/ReflectionSupportTest.java @@ -28,7 +28,10 @@ import org.apache.activemq.command.ActiveMQDestination; import org.apache.activemq.command.ActiveMQQueue; import org.apache.activemq.command.ActiveMQTopic; +import org.apache.activemq.test.annotations.ParallelTest; +import org.junit.experimental.categories.Category; +@Category(ParallelTest.class) public class ReflectionSupportTest extends TestCase { List favorites = new ArrayList(); diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/xbean/MultipleTestsWithEmbeddedBrokerTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/xbean/MultipleTestsWithEmbeddedBrokerTest.java index b30c107ca5f..e8094d9f7ab 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/xbean/MultipleTestsWithEmbeddedBrokerTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/xbean/MultipleTestsWithEmbeddedBrokerTest.java @@ -17,7 +17,6 @@ package org.apache.activemq.xbean; import jakarta.jms.Connection; - import org.apache.activemq.EmbeddedBrokerTestSupport; import org.slf4j.Logger; import org.slf4j.LoggerFactory; diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/xbean/MultipleTestsWithSpringFactoryBeanTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/xbean/MultipleTestsWithSpringFactoryBeanTest.java index 6932aa0a36a..9315bc5faab 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/xbean/MultipleTestsWithSpringFactoryBeanTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/xbean/MultipleTestsWithSpringFactoryBeanTest.java @@ -18,9 +18,7 @@ import jakarta.jms.Connection; import jakarta.jms.ConnectionFactory; - import junit.framework.TestCase; - import org.apache.activemq.ActiveMQConnectionFactory; import org.apache.activemq.broker.BrokerService; import org.slf4j.Logger;