diff --git a/Jenkinsfile b/Jenkinsfile index d1891aad95e..af270e689b4 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -131,7 +131,7 @@ pipeline { sh 'mvn -version' // all tests is very very long (10 hours on Apache Jenkins) // sh 'mvn -B -e test -pl activemq-unit-tests -Dactivemq.tests=all' - sh 'mvn -B -e -fae test -Dsurefire.rerunFailingTestsCount=3' + sh 'mvn -B -e -fae test -Dsurefire.rerunFailingTestsCount=3 -Pall-parallel -Dactivemq.tests=parallel' } post { always { diff --git a/activemq-kahadb-store/src/main/java/org/apache/activemq/store/kahadb/scheduler/JobSchedulerImpl.java b/activemq-kahadb-store/src/main/java/org/apache/activemq/store/kahadb/scheduler/JobSchedulerImpl.java index 29e9e23ee83..25d086e343c 100644 --- a/activemq-kahadb-store/src/main/java/org/apache/activemq/store/kahadb/scheduler/JobSchedulerImpl.java +++ b/activemq-kahadb-store/src/main/java/org/apache/activemq/store/kahadb/scheduler/JobSchedulerImpl.java @@ -268,6 +268,16 @@ private void doReschedule(final String jobId, long executionTime, long nextExecu this.store.store(update); } + private void doSchedule(final List toSchedule) { + for (Closure closure : toSchedule) { + try { + closure.run(); + } catch (final Exception e) { + LOG.warn("Failed to schedule job", e); + } + } + } + private void doRemove(final List toRemove) throws IOException { for (Closure closure : toRemove) { closure.run(); @@ -727,6 +737,7 @@ protected void mainLoop() { // needed before firing the job event. List toRemove = new ArrayList<>(); List toReschedule = new ArrayList<>(); + List toSchedule = new ArrayList<>(); try { this.store.readLockIndex(); @@ -776,12 +787,18 @@ protected void mainLoop() { // we have a separate schedule to run at this time // so the cron job is used to set of a separate schedule // hence we won't fire the original cron job to the - // listeners but we do need to start a separate schedule - String jobId = ID_GENERATOR.generateId(); - ByteSequence payload = getPayload(job.getLocation()); - schedule(jobId, payload, "", job.getDelay(), job.getPeriod(), job.getRepeat()); - waitTime = job.getDelay() != 0 ? job.getDelay() : job.getPeriod(); - this.scheduleTime.setWaitTime(waitTime); + // listeners, but we do need to start a separate schedule + toSchedule.add(() -> { + try { + String jobId = ID_GENERATOR.generateId(); + ByteSequence payload = getPayload(job.getLocation()); + schedule(jobId, payload, "", job.getDelay(), job.getPeriod(), job.getRepeat()); + } catch (Exception e) { + LOG.warn("Failed to schedule cron follow-up job", e); + } + }); + long wait = job.getDelay() != 0 ? job.getDelay() : job.getPeriod(); + this.scheduleTime.setWaitTime(wait); } } else { toRemove.add(() -> doRemove(executionTime, job.getJobId())); @@ -797,6 +814,10 @@ protected void mainLoop() { } finally { this.store.readUnlockIndex(); + // deferred execution of all jobs to be scheduled to avoid deadlock with indexLock + doSchedule(toSchedule); + + // now reschedule all jobs that need rescheduling doReschedule(toReschedule); // now remove all jobs that have not been rescheduled, @@ -805,6 +826,7 @@ protected void mainLoop() { } this.scheduleTime.pause(); + } catch (Exception ioe) { LOG.error("{} Failed to schedule job", this.name, ioe); try { diff --git a/activemq-mqtt/pom.xml b/activemq-mqtt/pom.xml index b9618bd6252..cc483c179d0 100644 --- a/activemq-mqtt/pom.xml +++ b/activemq-mqtt/pom.xml @@ -28,6 +28,11 @@ activemq-mqtt jar ActiveMQ :: MQTT Protocol + + + 3.5.3 + + The ActiveMQ MQTT Protocol Implementation @@ -198,24 +203,6 @@ - - maven-surefire-plugin - - 1 - false - ${surefire.argLine} - alphabetical - - target - - - - **/PahoMQTNioTTest.java - - - org.apache.activemq.protobuf activemq-protobuf @@ -293,6 +280,83 @@ + + all-parallel + + true + + activemq.tests + parallel + + + + 2C + + + + + org.apache.maven.plugins + maven-surefire-plugin + ${surefire.version} + + true + + + + parallel + test + + test + + + false + ${parallel.tests.fork.count} + false + 600 + balanced + false + org.apache.activemq.transport.mqtt.ParallelTest + + true + ${project.build.directory}/parallel-tests-${surefire.forkNumber}/ + true + false + + 20000 + + + + + serial + test + + test + + + false + balanced + false + org.apache.activemq.transport.mqtt.ParallelTest + + true + ${project.build.directory}/ + true + false + + + + + + + org.apache.maven.surefire + surefire-junit47 + ${surefire.version} + + + + + + diff --git a/activemq-mqtt/src/test/java/org/apache/activemq/transport/mqtt/MQTTAuthTest.java b/activemq-mqtt/src/test/java/org/apache/activemq/transport/mqtt/MQTTAuthTest.java index a7c790e7b3b..96acd0e6c43 100644 --- a/activemq-mqtt/src/test/java/org/apache/activemq/transport/mqtt/MQTTAuthTest.java +++ b/activemq-mqtt/src/test/java/org/apache/activemq/transport/mqtt/MQTTAuthTest.java @@ -47,15 +47,16 @@ import org.fusesource.mqtt.codec.CONNACK; import org.fusesource.mqtt.codec.MQTTFrame; 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; import org.slf4j.Logger; import org.slf4j.LoggerFactory; - /** * Tests various use cases that require authentication or authorization over MQTT */ +@Category(ParallelTest.class) @RunWith(Parameterized.class) public class MQTTAuthTest extends MQTTAuthTestSupport { diff --git a/activemq-mqtt/src/test/java/org/apache/activemq/transport/mqtt/MQTTCodecTest.java b/activemq-mqtt/src/test/java/org/apache/activemq/transport/mqtt/MQTTCodecTest.java index 49722d8eecf..c68a0bcc6b0 100644 --- a/activemq-mqtt/src/test/java/org/apache/activemq/transport/mqtt/MQTTCodecTest.java +++ b/activemq-mqtt/src/test/java/org/apache/activemq/transport/mqtt/MQTTCodecTest.java @@ -39,12 +39,14 @@ import org.fusesource.mqtt.codec.UNSUBSCRIBE; import org.junit.Before; import org.junit.Test; +import org.junit.experimental.categories.Category; import org.slf4j.Logger; import org.slf4j.LoggerFactory; /** * Tests the functionality of the MQTTCodec class. */ +@Category(ParallelTest.class) public class MQTTCodecTest { private static final Logger LOG = LoggerFactory.getLogger(MQTTCodecTest.class); diff --git a/activemq-mqtt/src/test/java/org/apache/activemq/transport/mqtt/MQTTCompositeQueueRetainedTest.java b/activemq-mqtt/src/test/java/org/apache/activemq/transport/mqtt/MQTTCompositeQueueRetainedTest.java index 2f7e7d7853a..0bb23dd0891 100644 --- a/activemq-mqtt/src/test/java/org/apache/activemq/transport/mqtt/MQTTCompositeQueueRetainedTest.java +++ b/activemq-mqtt/src/test/java/org/apache/activemq/transport/mqtt/MQTTCompositeQueueRetainedTest.java @@ -42,9 +42,12 @@ import org.apache.activemq.util.ByteSequence; import org.junit.Test; +import org.junit.experimental.categories.Category; + /** * */ +@Category(ParallelTest.class) public class MQTTCompositeQueueRetainedTest extends MQTTTestSupport { // configure composite topic diff --git a/activemq-mqtt/src/test/java/org/apache/activemq/transport/mqtt/MQTTConnectTest.java b/activemq-mqtt/src/test/java/org/apache/activemq/transport/mqtt/MQTTConnectTest.java index 59f122dc9ca..91bf14367d2 100644 --- a/activemq-mqtt/src/test/java/org/apache/activemq/transport/mqtt/MQTTConnectTest.java +++ b/activemq-mqtt/src/test/java/org/apache/activemq/transport/mqtt/MQTTConnectTest.java @@ -41,10 +41,12 @@ import org.slf4j.Logger; import org.slf4j.LoggerFactory; +import org.junit.experimental.categories.Category; /** * Test that connection attempts that don't send a CONNECT frame will * get cleaned up by the inactivity monitor. */ +@Category(ParallelTest.class) @RunWith(Parameterized.class) public class MQTTConnectTest extends MQTTTestSupport { diff --git a/activemq-mqtt/src/test/java/org/apache/activemq/transport/mqtt/MQTTMaxFrameSizeTest.java b/activemq-mqtt/src/test/java/org/apache/activemq/transport/mqtt/MQTTMaxFrameSizeTest.java index e5282b31ad5..73b304d9862 100644 --- a/activemq-mqtt/src/test/java/org/apache/activemq/transport/mqtt/MQTTMaxFrameSizeTest.java +++ b/activemq-mqtt/src/test/java/org/apache/activemq/transport/mqtt/MQTTMaxFrameSizeTest.java @@ -31,9 +31,11 @@ import org.slf4j.Logger; import org.slf4j.LoggerFactory; +import org.junit.experimental.categories.Category; /** * Test that the maxFrameSize configuration value is applied across the transports. */ +@Category(ParallelTest.class) @RunWith(Parameterized.class) public class MQTTMaxFrameSizeTest extends MQTTTestSupport { diff --git a/activemq-mqtt/src/test/java/org/apache/activemq/transport/mqtt/MQTTNIOSSLTest.java b/activemq-mqtt/src/test/java/org/apache/activemq/transport/mqtt/MQTTNIOSSLTest.java index b6dd9f91581..16ffe9077ed 100644 --- a/activemq-mqtt/src/test/java/org/apache/activemq/transport/mqtt/MQTTNIOSSLTest.java +++ b/activemq-mqtt/src/test/java/org/apache/activemq/transport/mqtt/MQTTNIOSSLTest.java @@ -16,6 +16,8 @@ */ package org.apache.activemq.transport.mqtt; +import org.junit.experimental.categories.Category; + /** * Run the basic tests with the NIO Transport. */ diff --git a/activemq-mqtt/src/test/java/org/apache/activemq/transport/mqtt/MQTTNIOTest.java b/activemq-mqtt/src/test/java/org/apache/activemq/transport/mqtt/MQTTNIOTest.java index abb5d6c4b82..9bb4b0ee9ac 100644 --- a/activemq-mqtt/src/test/java/org/apache/activemq/transport/mqtt/MQTTNIOTest.java +++ b/activemq-mqtt/src/test/java/org/apache/activemq/transport/mqtt/MQTTNIOTest.java @@ -16,9 +16,12 @@ */ package org.apache.activemq.transport.mqtt; +import org.junit.experimental.categories.Category; + /** * Run the basic tests with the NIO Transport. */ +@Category(ParallelTest.class) public class MQTTNIOTest extends MQTTTest { @Override diff --git a/activemq-mqtt/src/test/java/org/apache/activemq/transport/mqtt/MQTTOverlapedSubscriptionsTest.java b/activemq-mqtt/src/test/java/org/apache/activemq/transport/mqtt/MQTTOverlapedSubscriptionsTest.java index 6d75ab7e067..c550f683923 100644 --- a/activemq-mqtt/src/test/java/org/apache/activemq/transport/mqtt/MQTTOverlapedSubscriptionsTest.java +++ b/activemq-mqtt/src/test/java/org/apache/activemq/transport/mqtt/MQTTOverlapedSubscriptionsTest.java @@ -29,7 +29,9 @@ import org.junit.After; import org.junit.Before; import org.junit.Test; +import org.junit.experimental.categories.Category; +@Category(ParallelTest.class) public class MQTTOverlapedSubscriptionsTest { private BrokerService brokerService; diff --git a/activemq-mqtt/src/test/java/org/apache/activemq/transport/mqtt/MQTTPingReqTest.java b/activemq-mqtt/src/test/java/org/apache/activemq/transport/mqtt/MQTTPingReqTest.java index 7e8f070c6ea..fc27ead4ee1 100644 --- a/activemq-mqtt/src/test/java/org/apache/activemq/transport/mqtt/MQTTPingReqTest.java +++ b/activemq-mqtt/src/test/java/org/apache/activemq/transport/mqtt/MQTTPingReqTest.java @@ -52,10 +52,12 @@ import org.slf4j.Logger; import org.slf4j.LoggerFactory; +import org.junit.experimental.categories.Category; /** * Test to show that a PINGRESP will only be sent for a PINGREQ * packet after a CONNECT packet has been received. */ +@Category(ParallelTest.class) @RunWith(Parameterized.class) public class MQTTPingReqTest extends MQTTTestSupport { diff --git a/activemq-mqtt/src/test/java/org/apache/activemq/transport/mqtt/MQTTProtocolConverterTest.java b/activemq-mqtt/src/test/java/org/apache/activemq/transport/mqtt/MQTTProtocolConverterTest.java index c445f924ac8..b21577aa73d 100644 --- a/activemq-mqtt/src/test/java/org/apache/activemq/transport/mqtt/MQTTProtocolConverterTest.java +++ b/activemq-mqtt/src/test/java/org/apache/activemq/transport/mqtt/MQTTProtocolConverterTest.java @@ -37,12 +37,14 @@ import org.fusesource.mqtt.codec.MQTTFrame; import org.junit.Before; import org.junit.Test; +import org.junit.experimental.categories.Category; import org.mockito.ArgumentCaptor; import org.mockito.Mockito; /** * Tests for various usage scenarios of the protocol converter */ +@Category(ParallelTest.class) public class MQTTProtocolConverterTest { private MQTTTransport transport; diff --git a/activemq-mqtt/src/test/java/org/apache/activemq/transport/mqtt/MQTTSSLTest.java b/activemq-mqtt/src/test/java/org/apache/activemq/transport/mqtt/MQTTSSLTest.java index 609c49d225b..8b41e0d2894 100644 --- a/activemq-mqtt/src/test/java/org/apache/activemq/transport/mqtt/MQTTSSLTest.java +++ b/activemq-mqtt/src/test/java/org/apache/activemq/transport/mqtt/MQTTSSLTest.java @@ -16,9 +16,12 @@ */ package org.apache.activemq.transport.mqtt; +import org.junit.experimental.categories.Category; + /** * Run the basic tests with the NIO Transport. */ +@Category(ParallelTest.class) public class MQTTSSLTest extends MQTTTest { @Override diff --git a/activemq-mqtt/src/test/java/org/apache/activemq/transport/mqtt/MQTTSubscriptionRecoveryTest.java b/activemq-mqtt/src/test/java/org/apache/activemq/transport/mqtt/MQTTSubscriptionRecoveryTest.java index 0b7f9581797..3696c399697 100644 --- a/activemq-mqtt/src/test/java/org/apache/activemq/transport/mqtt/MQTTSubscriptionRecoveryTest.java +++ b/activemq-mqtt/src/test/java/org/apache/activemq/transport/mqtt/MQTTSubscriptionRecoveryTest.java @@ -34,9 +34,11 @@ import org.slf4j.Logger; import org.slf4j.LoggerFactory; +import org.junit.experimental.categories.Category; /** * Test that all previous QoS 2 subscriptions are recovered on Broker restart. */ +@Category(ParallelTest.class) @RunWith(Parameterized.class) public class MQTTSubscriptionRecoveryTest extends MQTTTestSupport { diff --git a/activemq-mqtt/src/test/java/org/apache/activemq/transport/mqtt/MQTTTestSupport.java b/activemq-mqtt/src/test/java/org/apache/activemq/transport/mqtt/MQTTTestSupport.java index 881ad634243..4c23cee7eee 100644 --- a/activemq-mqtt/src/test/java/org/apache/activemq/transport/mqtt/MQTTTestSupport.java +++ b/activemq-mqtt/src/test/java/org/apache/activemq/transport/mqtt/MQTTTestSupport.java @@ -39,6 +39,7 @@ import org.apache.activemq.broker.jmx.TopicViewMBean; import org.apache.activemq.store.kahadb.KahaDBStore; import org.apache.activemq.transport.mqtt.util.ResourceLoadingSslContext; +import org.apache.activemq.util.IOHelper; import org.fusesource.mqtt.client.MQTT; import org.fusesource.mqtt.client.Tracer; import org.fusesource.mqtt.codec.MQTTFrame; @@ -53,8 +54,6 @@ public class MQTTTestSupport { private static final Logger LOG = LoggerFactory.getLogger(MQTTTestSupport.class); - public static final String KAHADB_DIRECTORY = "target/activemq-data/"; - protected BrokerService brokerService; protected int port; protected String jmsUri = "vm://localhost"; @@ -143,7 +142,7 @@ protected BrokerService createBroker(boolean deleteAllMessages) throws Exception brokerService.setPersistent(isPersistent()); if (isPersistent()) { KahaDBStore kaha = new KahaDBStore(); - kaha.setDirectory(new File(KAHADB_DIRECTORY + getTestName())); + kaha.setDirectory(new File(IOHelper.getDefaultDataDirectory() + "/" + getTestName())); brokerService.setPersistenceAdapter(kaha); } brokerService.setAdvisorySupport(advisorySupport); diff --git a/activemq-mqtt/src/test/java/org/apache/activemq/transport/mqtt/MQTTVirtualTopicSubscriptionsTest.java b/activemq-mqtt/src/test/java/org/apache/activemq/transport/mqtt/MQTTVirtualTopicSubscriptionsTest.java index d84ce894c1f..c7d601bb10b 100644 --- a/activemq-mqtt/src/test/java/org/apache/activemq/transport/mqtt/MQTTVirtualTopicSubscriptionsTest.java +++ b/activemq-mqtt/src/test/java/org/apache/activemq/transport/mqtt/MQTTVirtualTopicSubscriptionsTest.java @@ -42,6 +42,7 @@ import org.fusesource.mqtt.client.Topic; import org.junit.Before; import org.junit.Test; +import org.junit.experimental.categories.Category; import org.slf4j.Logger; import org.slf4j.LoggerFactory; @@ -55,6 +56,7 @@ /** * Run the basic tests with the NIO Transport. */ +@Category(ParallelTest.class) public class MQTTVirtualTopicSubscriptionsTest extends MQTTTest { private static final Logger LOG = LoggerFactory.getLogger(MQTTVirtualTopicSubscriptionsTest.class); diff --git a/activemq-mqtt/src/test/java/org/apache/activemq/transport/mqtt/PahoMQTTNIOTest.java b/activemq-mqtt/src/test/java/org/apache/activemq/transport/mqtt/PahoMQTTNIOTest.java index 88c8780df87..b5102bd5236 100644 --- a/activemq-mqtt/src/test/java/org/apache/activemq/transport/mqtt/PahoMQTTNIOTest.java +++ b/activemq-mqtt/src/test/java/org/apache/activemq/transport/mqtt/PahoMQTTNIOTest.java @@ -16,9 +16,12 @@ */ package org.apache.activemq.transport.mqtt; +import org.junit.experimental.categories.Category; + /** * Test the NIO transport with this Test group */ +@Category(ParallelTest.class) public class PahoMQTTNIOTest extends PahoMQTTTest { @Override diff --git a/activemq-mqtt/src/test/java/org/apache/activemq/transport/mqtt/PahoMQTTTest.java b/activemq-mqtt/src/test/java/org/apache/activemq/transport/mqtt/PahoMQTTTest.java index 362ded3dcc1..1c010d745d2 100644 --- a/activemq-mqtt/src/test/java/org/apache/activemq/transport/mqtt/PahoMQTTTest.java +++ b/activemq-mqtt/src/test/java/org/apache/activemq/transport/mqtt/PahoMQTTTest.java @@ -47,6 +47,9 @@ import org.slf4j.Logger; import org.slf4j.LoggerFactory; +import org.junit.experimental.categories.Category; + +@Category(ParallelTest.class) public class PahoMQTTTest extends MQTTTestSupport { private static final Logger LOG = LoggerFactory.getLogger(PahoMQTTTest.class); diff --git a/activemq-mqtt/src/test/java/org/apache/activemq/transport/mqtt/PahoVirtualTopicMQTTTest.java b/activemq-mqtt/src/test/java/org/apache/activemq/transport/mqtt/PahoVirtualTopicMQTTTest.java index be9e8b3361d..1c3b527bc09 100644 --- a/activemq-mqtt/src/test/java/org/apache/activemq/transport/mqtt/PahoVirtualTopicMQTTTest.java +++ b/activemq-mqtt/src/test/java/org/apache/activemq/transport/mqtt/PahoVirtualTopicMQTTTest.java @@ -22,12 +22,14 @@ import org.eclipse.paho.client.mqttv3.MqttConnectOptions; import org.junit.Before; import org.junit.Test; +import org.junit.experimental.categories.Category; import jakarta.jms.MessageConsumer; import jakarta.jms.Session; import static org.junit.Assert.assertEquals; +@Category(ParallelTest.class) public class PahoVirtualTopicMQTTTest extends PahoMQTTTest { @Override diff --git a/activemq-mqtt/src/test/java/org/apache/activemq/transport/mqtt/ParallelTest.java b/activemq-mqtt/src/test/java/org/apache/activemq/transport/mqtt/ParallelTest.java new file mode 100644 index 00000000000..dfeb9081264 --- /dev/null +++ b/activemq-mqtt/src/test/java/org/apache/activemq/transport/mqtt/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.transport.mqtt; + + +/** + * 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-mqtt/src/test/java/org/apache/activemq/transport/mqtt/auto/MQTTAutoNioSslTest.java b/activemq-mqtt/src/test/java/org/apache/activemq/transport/mqtt/auto/MQTTAutoNioSslTest.java index e777385f1b8..2db79bd928e 100644 --- a/activemq-mqtt/src/test/java/org/apache/activemq/transport/mqtt/auto/MQTTAutoNioSslTest.java +++ b/activemq-mqtt/src/test/java/org/apache/activemq/transport/mqtt/auto/MQTTAutoNioSslTest.java @@ -17,10 +17,13 @@ package org.apache.activemq.transport.mqtt.auto; import org.apache.activemq.transport.mqtt.MQTTTest; +import org.apache.activemq.transport.mqtt.ParallelTest; +import org.junit.experimental.categories.Category; /** * Run the basic tests with the NIO Transport. */ +@Category(ParallelTest.class) public class MQTTAutoNioSslTest extends MQTTTest { @Override diff --git a/activemq-mqtt/src/test/java/org/apache/activemq/transport/mqtt/auto/MQTTAutoNioTest.java b/activemq-mqtt/src/test/java/org/apache/activemq/transport/mqtt/auto/MQTTAutoNioTest.java index f7023a3ba04..55fe032f0c1 100644 --- a/activemq-mqtt/src/test/java/org/apache/activemq/transport/mqtt/auto/MQTTAutoNioTest.java +++ b/activemq-mqtt/src/test/java/org/apache/activemq/transport/mqtt/auto/MQTTAutoNioTest.java @@ -17,10 +17,13 @@ package org.apache.activemq.transport.mqtt.auto; import org.apache.activemq.transport.mqtt.MQTTTest; +import org.apache.activemq.transport.mqtt.ParallelTest; +import org.junit.experimental.categories.Category; /** * Run the basic tests with the NIO Transport. */ +@Category(ParallelTest.class) public class MQTTAutoNioTest extends MQTTTest { @Override diff --git a/activemq-mqtt/src/test/java/org/apache/activemq/transport/mqtt/auto/MQTTAutoSslAuthTest.java b/activemq-mqtt/src/test/java/org/apache/activemq/transport/mqtt/auto/MQTTAutoSslAuthTest.java index 4fae9c44c68..d2d731fa9a0 100644 --- a/activemq-mqtt/src/test/java/org/apache/activemq/transport/mqtt/auto/MQTTAutoSslAuthTest.java +++ b/activemq-mqtt/src/test/java/org/apache/activemq/transport/mqtt/auto/MQTTAutoSslAuthTest.java @@ -36,6 +36,10 @@ import org.junit.runners.Parameterized; import org.junit.runners.Parameterized.Parameters; +import org.junit.experimental.categories.Category; +import org.apache.activemq.transport.mqtt.ParallelTest; + +@Category(ParallelTest.class) @RunWith(Parameterized.class) public class MQTTAutoSslAuthTest extends MQTTTestSupport { diff --git a/activemq-mqtt/src/test/java/org/apache/activemq/transport/mqtt/auto/MQTTAutoSslTest.java b/activemq-mqtt/src/test/java/org/apache/activemq/transport/mqtt/auto/MQTTAutoSslTest.java index e31f49495b5..0d490e1f122 100644 --- a/activemq-mqtt/src/test/java/org/apache/activemq/transport/mqtt/auto/MQTTAutoSslTest.java +++ b/activemq-mqtt/src/test/java/org/apache/activemq/transport/mqtt/auto/MQTTAutoSslTest.java @@ -17,10 +17,13 @@ package org.apache.activemq.transport.mqtt.auto; import org.apache.activemq.transport.mqtt.MQTTTest; +import org.apache.activemq.transport.mqtt.ParallelTest; +import org.junit.experimental.categories.Category; /** * Run the basic tests with the NIO Transport. */ +@Category(ParallelTest.class) public class MQTTAutoSslTest extends MQTTTest { @Override diff --git a/activemq-mqtt/src/test/java/org/apache/activemq/transport/mqtt/auto/MQTTAutoTest.java b/activemq-mqtt/src/test/java/org/apache/activemq/transport/mqtt/auto/MQTTAutoTest.java index 7471f6e38f6..dcdf265df4a 100644 --- a/activemq-mqtt/src/test/java/org/apache/activemq/transport/mqtt/auto/MQTTAutoTest.java +++ b/activemq-mqtt/src/test/java/org/apache/activemq/transport/mqtt/auto/MQTTAutoTest.java @@ -17,10 +17,13 @@ package org.apache.activemq.transport.mqtt.auto; import org.apache.activemq.transport.mqtt.MQTTTest; +import org.apache.activemq.transport.mqtt.ParallelTest; +import org.junit.experimental.categories.Category; /** * Run the basic tests with the NIO Transport. */ +@Category(ParallelTest.class) public class MQTTAutoTest extends MQTTTest { @Override diff --git a/activemq-stomp/pom.xml b/activemq-stomp/pom.xml index 51f997c6819..88eb4b58c80 100644 --- a/activemq-stomp/pom.xml +++ b/activemq-stomp/pom.xml @@ -28,6 +28,11 @@ activemq-stomp jar ActiveMQ :: STOMP Protocol + + + 3.5.3 + + The ActiveMQ STOMP Protocol Implementation @@ -123,27 +128,6 @@ - - - maven-surefire-plugin - - 1 - false - ${surefire.argLine} - alphabetical - false - - target - - - **/*Test.* - - - **/StompNIOSSLLoadTest.java - - - - @@ -192,7 +176,81 @@ - + + all-parallel + + true + + activemq.tests + parallel + + + + 2C + + + + + maven-surefire-plugin + ${surefire.version} + + true + + + + org.apache.maven.surefire + surefire-junit47 + ${surefire.version} + + + + + parallel + test + + test + + + false + ${parallel.tests.fork.count} + false + 600 + balanced + false + org.apache.activemq.transport.stomp.ParallelTest + + true + ${project.build.directory}/parallel-tests-${surefire.forkNumber}/ + true + false + + + + + serial + test + + test + + + false + balanced + false + org.apache.activemq.transport.stomp.ParallelTest + + true + ${project.build.directory}/ + true + false + + + + + + + + + activemq.tests.windows.excludes diff --git a/activemq-stomp/src/test/java/org/apache/activemq/transport/stomp/ParallelTest.java b/activemq-stomp/src/test/java/org/apache/activemq/transport/stomp/ParallelTest.java new file mode 100644 index 00000000000..9be27a6df1d --- /dev/null +++ b/activemq-stomp/src/test/java/org/apache/activemq/transport/stomp/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.transport.stomp; + + +/** + * 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-stomp/src/test/java/org/apache/activemq/transport/stomp/Stomp11Test.java b/activemq-stomp/src/test/java/org/apache/activemq/transport/stomp/Stomp11Test.java index 25ee20e109a..a9e75f3e129 100644 --- a/activemq-stomp/src/test/java/org/apache/activemq/transport/stomp/Stomp11Test.java +++ b/activemq-stomp/src/test/java/org/apache/activemq/transport/stomp/Stomp11Test.java @@ -40,6 +40,9 @@ import static org.junit.Assert.*; +import org.junit.experimental.categories.Category; + +@Category(ParallelTest.class) public class Stomp11Test extends StompTestSupport { private static final Logger LOG = LoggerFactory.getLogger(Stomp11Test.class); diff --git a/activemq-stomp/src/test/java/org/apache/activemq/transport/stomp/Stomp12Test.java b/activemq-stomp/src/test/java/org/apache/activemq/transport/stomp/Stomp12Test.java index b7974724978..504a20ff970 100644 --- a/activemq-stomp/src/test/java/org/apache/activemq/transport/stomp/Stomp12Test.java +++ b/activemq-stomp/src/test/java/org/apache/activemq/transport/stomp/Stomp12Test.java @@ -34,6 +34,9 @@ import org.slf4j.Logger; import org.slf4j.LoggerFactory; +import org.junit.experimental.categories.Category; + +@Category(ParallelTest.class) public class Stomp12Test extends StompTestSupport { private static final Logger LOG = LoggerFactory.getLogger(Stomp12Test.class); diff --git a/activemq-stomp/src/test/java/org/apache/activemq/transport/stomp/StompAdvisoryTest.java b/activemq-stomp/src/test/java/org/apache/activemq/transport/stomp/StompAdvisoryTest.java index 434744a93fd..ad89847e62b 100644 --- a/activemq-stomp/src/test/java/org/apache/activemq/transport/stomp/StompAdvisoryTest.java +++ b/activemq-stomp/src/test/java/org/apache/activemq/transport/stomp/StompAdvisoryTest.java @@ -45,6 +45,9 @@ import org.slf4j.Logger; import org.slf4j.LoggerFactory; +import org.junit.experimental.categories.Category; + +@Category(ParallelTest.class) public class StompAdvisoryTest extends StompTestSupport { static final String STATS_DESTINATION_PREFIX = "ActiveMQ.Statistics.Destination"; diff --git a/activemq-stomp/src/test/java/org/apache/activemq/transport/stomp/StompCompositeDestinationTest.java b/activemq-stomp/src/test/java/org/apache/activemq/transport/stomp/StompCompositeDestinationTest.java index 9848f3c316a..d3fced4f9ac 100644 --- a/activemq-stomp/src/test/java/org/apache/activemq/transport/stomp/StompCompositeDestinationTest.java +++ b/activemq-stomp/src/test/java/org/apache/activemq/transport/stomp/StompCompositeDestinationTest.java @@ -39,9 +39,12 @@ import org.slf4j.Logger; import org.slf4j.LoggerFactory; +import org.junit.experimental.categories.Category; + /** * Tests for support of composite destination support over STOMP */ +@Category(ParallelTest.class) public class StompCompositeDestinationTest extends StompTestSupport { private static final Logger LOG = LoggerFactory.getLogger(StompCompositeDestinationTest.class); diff --git a/activemq-stomp/src/test/java/org/apache/activemq/transport/stomp/StompConnectTimeoutTest.java b/activemq-stomp/src/test/java/org/apache/activemq/transport/stomp/StompConnectTimeoutTest.java index 69fd4deb38e..d88bbafe22c 100644 --- a/activemq-stomp/src/test/java/org/apache/activemq/transport/stomp/StompConnectTimeoutTest.java +++ b/activemq-stomp/src/test/java/org/apache/activemq/transport/stomp/StompConnectTimeoutTest.java @@ -34,10 +34,13 @@ import org.slf4j.Logger; import org.slf4j.LoggerFactory; +import org.junit.experimental.categories.Category; + /** * Test that connection attempts that don't send the connect performative * get cleaned up by the inactivity monitor. */ +@Category(ParallelTest.class) @RunWith(Parameterized.class) public class StompConnectTimeoutTest extends StompTestSupport { diff --git a/activemq-stomp/src/test/java/org/apache/activemq/transport/stomp/StompInactivityMonitorTest.java b/activemq-stomp/src/test/java/org/apache/activemq/transport/stomp/StompInactivityMonitorTest.java index 20f4ed9c009..66a4aad83b2 100644 --- a/activemq-stomp/src/test/java/org/apache/activemq/transport/stomp/StompInactivityMonitorTest.java +++ b/activemq-stomp/src/test/java/org/apache/activemq/transport/stomp/StompInactivityMonitorTest.java @@ -33,9 +33,12 @@ import org.slf4j.Logger; import org.slf4j.LoggerFactory; +import org.junit.experimental.categories.Category; + /** * Test that the inactivity monitor works as expected. */ +@Category(ParallelTest.class) @RunWith(Parameterized.class) public class StompInactivityMonitorTest extends StompTestSupport { diff --git a/activemq-stomp/src/test/java/org/apache/activemq/transport/stomp/StompMaxDataSizeTest.java b/activemq-stomp/src/test/java/org/apache/activemq/transport/stomp/StompMaxDataSizeTest.java index ee13da44610..83a4edf6f62 100644 --- a/activemq-stomp/src/test/java/org/apache/activemq/transport/stomp/StompMaxDataSizeTest.java +++ b/activemq-stomp/src/test/java/org/apache/activemq/transport/stomp/StompMaxDataSizeTest.java @@ -29,6 +29,9 @@ import org.junit.Test; +import org.junit.experimental.categories.Category; + +@Category(ParallelTest.class) public class StompMaxDataSizeTest extends StompTestSupport { private static final int TEST_MAX_DATA_SIZE = 64 * 1024; diff --git a/activemq-stomp/src/test/java/org/apache/activemq/transport/stomp/StompMaxFrameSizeTest.java b/activemq-stomp/src/test/java/org/apache/activemq/transport/stomp/StompMaxFrameSizeTest.java index 9d4f2e7e931..34e73829494 100644 --- a/activemq-stomp/src/test/java/org/apache/activemq/transport/stomp/StompMaxFrameSizeTest.java +++ b/activemq-stomp/src/test/java/org/apache/activemq/transport/stomp/StompMaxFrameSizeTest.java @@ -34,6 +34,10 @@ import org.junit.runners.Parameterized; import org.junit.runners.Parameterized.Parameters; +import org.junit.experimental.categories.Category; + + +@Category(ParallelTest.class) @RunWith(Parameterized.class) public class StompMaxFrameSizeTest extends StompTestSupport { @@ -273,7 +277,7 @@ protected void doOversizedTestMessage(int port, boolean useSsl, int dataSize) th stompConnection.sendFrame(frame); - StompFrame received = stompConnection.receive(5000); + StompFrame received = stompConnection.receive(10000); assertNotNull(received); assertEquals("ERROR", received.getAction()); assertTrue(received.getBody().contains("maximum frame size")); diff --git a/activemq-stomp/src/test/java/org/apache/activemq/transport/stomp/StompMissingMessageTest.java b/activemq-stomp/src/test/java/org/apache/activemq/transport/stomp/StompMissingMessageTest.java index 2e82eea8f9b..4deac42bf8f 100644 --- a/activemq-stomp/src/test/java/org/apache/activemq/transport/stomp/StompMissingMessageTest.java +++ b/activemq-stomp/src/test/java/org/apache/activemq/transport/stomp/StompMissingMessageTest.java @@ -26,6 +26,9 @@ import org.slf4j.Logger; import org.slf4j.LoggerFactory; +import org.junit.experimental.categories.Category; + +@Category(ParallelTest.class) public class StompMissingMessageTest extends StompTestSupport { private static final Logger LOG = LoggerFactory.getLogger(StompMissingMessageTest.class); diff --git a/activemq-stomp/src/test/java/org/apache/activemq/transport/stomp/StompNIOSSLLargeMessageTest.java b/activemq-stomp/src/test/java/org/apache/activemq/transport/stomp/StompNIOSSLLargeMessageTest.java index 21e181a4f05..117420cafcf 100644 --- a/activemq-stomp/src/test/java/org/apache/activemq/transport/stomp/StompNIOSSLLargeMessageTest.java +++ b/activemq-stomp/src/test/java/org/apache/activemq/transport/stomp/StompNIOSSLLargeMessageTest.java @@ -35,12 +35,15 @@ import org.apache.activemq.util.DefaultTestAppender; +import org.junit.experimental.categories.Category; + /** * Testcase for AMQ-6526. * Checks if the \ in the Stomp ProtocolException is replaced * with the proper Stomp operation. * */ +@Category(ParallelTest.class) public class StompNIOSSLLargeMessageTest extends StompTestSupport { protected static final Logger LOG = LoggerFactory.getLogger(StompNIOSSLLargeMessageTest.class); diff --git a/activemq-stomp/src/test/java/org/apache/activemq/transport/stomp/StompPrefetchTest.java b/activemq-stomp/src/test/java/org/apache/activemq/transport/stomp/StompPrefetchTest.java index eefc1063e4f..1a224eaee03 100644 --- a/activemq-stomp/src/test/java/org/apache/activemq/transport/stomp/StompPrefetchTest.java +++ b/activemq-stomp/src/test/java/org/apache/activemq/transport/stomp/StompPrefetchTest.java @@ -35,6 +35,9 @@ import org.slf4j.Logger; import org.slf4j.LoggerFactory; +import org.junit.experimental.categories.Category; + +@Category(ParallelTest.class) public class StompPrefetchTest extends StompTestSupport { private static final Logger LOG = LoggerFactory.getLogger(StompPrefetchTest.class); diff --git a/activemq-stomp/src/test/java/org/apache/activemq/transport/stomp/StompSubscriptionRemoveTest.java b/activemq-stomp/src/test/java/org/apache/activemq/transport/stomp/StompSubscriptionRemoveTest.java index 1f69921a721..7c875681c47 100644 --- a/activemq-stomp/src/test/java/org/apache/activemq/transport/stomp/StompSubscriptionRemoveTest.java +++ b/activemq-stomp/src/test/java/org/apache/activemq/transport/stomp/StompSubscriptionRemoveTest.java @@ -34,6 +34,9 @@ import org.slf4j.Logger; import org.slf4j.LoggerFactory; +import org.junit.experimental.categories.Category; + +@Category(ParallelTest.class) public class StompSubscriptionRemoveTest extends StompTestSupport { private static final Logger LOG = LoggerFactory.getLogger(StompSubscriptionRemoveTest.class); diff --git a/activemq-stomp/src/test/java/org/apache/activemq/transport/stomp/StompTelnetTest.java b/activemq-stomp/src/test/java/org/apache/activemq/transport/stomp/StompTelnetTest.java index 487882ad197..ad3e192277d 100644 --- a/activemq-stomp/src/test/java/org/apache/activemq/transport/stomp/StompTelnetTest.java +++ b/activemq-stomp/src/test/java/org/apache/activemq/transport/stomp/StompTelnetTest.java @@ -27,6 +27,9 @@ import org.slf4j.Logger; import org.slf4j.LoggerFactory; +import org.junit.experimental.categories.Category; + +@Category(ParallelTest.class) public class StompTelnetTest extends StompTestSupport { private static final Logger LOG = LoggerFactory.getLogger(StompTelnetTest.class); diff --git a/activemq-stomp/src/test/java/org/apache/activemq/transport/stomp/StompTest.java b/activemq-stomp/src/test/java/org/apache/activemq/transport/stomp/StompTest.java index 9c82261e327..50349ec6cae 100644 --- a/activemq-stomp/src/test/java/org/apache/activemq/transport/stomp/StompTest.java +++ b/activemq-stomp/src/test/java/org/apache/activemq/transport/stomp/StompTest.java @@ -72,6 +72,9 @@ import com.thoughtworks.xstream.io.xml.XppReader; import com.thoughtworks.xstream.io.xml.xppdom.XppFactory; +import org.junit.experimental.categories.Category; + +@Category(ParallelTest.class) public class StompTest extends StompTestSupport { private static final Logger LOG = LoggerFactory.getLogger(StompTest.class); diff --git a/activemq-stomp/src/test/java/org/apache/activemq/transport/stomp/StompTimeStampingBrokerPluginTest.java b/activemq-stomp/src/test/java/org/apache/activemq/transport/stomp/StompTimeStampingBrokerPluginTest.java index 819fc453f85..b786b40b843 100644 --- a/activemq-stomp/src/test/java/org/apache/activemq/transport/stomp/StompTimeStampingBrokerPluginTest.java +++ b/activemq-stomp/src/test/java/org/apache/activemq/transport/stomp/StompTimeStampingBrokerPluginTest.java @@ -39,6 +39,9 @@ import org.slf4j.Logger; import org.slf4j.LoggerFactory; +import org.junit.experimental.categories.Category; + +@Category(ParallelTest.class) public class StompTimeStampingBrokerPluginTest extends StompTestSupport { private static final Logger LOG = LoggerFactory.getLogger(StompTimeStampingBrokerPluginTest.class); diff --git a/activemq-stomp/src/test/java/org/apache/activemq/transport/stomp/StompVirtualTopicTest.java b/activemq-stomp/src/test/java/org/apache/activemq/transport/stomp/StompVirtualTopicTest.java index 19a9f975ec8..4daaaea050d 100644 --- a/activemq-stomp/src/test/java/org/apache/activemq/transport/stomp/StompVirtualTopicTest.java +++ b/activemq-stomp/src/test/java/org/apache/activemq/transport/stomp/StompVirtualTopicTest.java @@ -38,6 +38,9 @@ import org.slf4j.Logger; import org.slf4j.LoggerFactory; +import org.junit.experimental.categories.Category; + +@Category(ParallelTest.class) public class StompVirtualTopicTest extends StompTestSupport { private static final Logger LOG = LoggerFactory.getLogger(StompVirtualTopicTest.class); diff --git a/activemq-stomp/src/test/java/org/apache/activemq/transport/stomp/auto/AutoStompConnectTimeoutTest.java b/activemq-stomp/src/test/java/org/apache/activemq/transport/stomp/auto/AutoStompConnectTimeoutTest.java index e7b372bc753..8e1867daf59 100644 --- a/activemq-stomp/src/test/java/org/apache/activemq/transport/stomp/auto/AutoStompConnectTimeoutTest.java +++ b/activemq-stomp/src/test/java/org/apache/activemq/transport/stomp/auto/AutoStompConnectTimeoutTest.java @@ -36,6 +36,7 @@ import org.slf4j.Logger; import org.slf4j.LoggerFactory; +import org.junit.experimental.categories.Category; /** * Test that connection attempts that don't send the connect get cleaned by * by the protocolDetectionTimeOut property diff --git a/activemq-stomp/src/test/java/org/apache/activemq/transport/stomp/auto/StompAutoSslAuthTest.java b/activemq-stomp/src/test/java/org/apache/activemq/transport/stomp/auto/StompAutoSslAuthTest.java index 7b65596fd33..82d089667d8 100644 --- a/activemq-stomp/src/test/java/org/apache/activemq/transport/stomp/auto/StompAutoSslAuthTest.java +++ b/activemq-stomp/src/test/java/org/apache/activemq/transport/stomp/auto/StompAutoSslAuthTest.java @@ -34,6 +34,7 @@ import org.apache.activemq.broker.BrokerPlugin; import org.apache.activemq.broker.ConnectionContext; import org.apache.activemq.command.ConnectionInfo; +import org.apache.activemq.transport.stomp.ParallelTest; import org.apache.activemq.transport.stomp.Stomp; import org.apache.activemq.transport.stomp.StompTestSupport; import org.junit.Test; @@ -41,6 +42,9 @@ import org.junit.runners.Parameterized; import org.junit.runners.Parameterized.Parameters; +import org.junit.experimental.categories.Category; + +@Category(ParallelTest.class) @RunWith(Parameterized.class) public class StompAutoSslAuthTest extends StompTestSupport { diff --git a/activemq-unit-tests/pom.xml b/activemq-unit-tests/pom.xml index 558ac0d2d4d..83871e2133a 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 + + @@ -392,6 +396,7 @@ maven-surefire-plugin + ${surefire.version} 1 false @@ -429,6 +434,13 @@ false + + + org.apache.maven.surefire + surefire-junit47 + ${surefire.version} + + org.apache.maven.plugins @@ -492,6 +504,81 @@ + + all-parallel + + true + + activemq.tests + parallel + + + + 2C + + + + + org.apache.maven.plugins + maven-surefire-plugin + ${surefire.version} + + true + + + + parallel + test + + test + + + false + ${parallel.tests.fork.count} + false + 600 + balanced + false + org.apache.activemq.test.annotations.ParallelTest + + true + ${project.build.directory}/parallel-tests-${surefire.forkNumber}/ + true + false + + + + + serial + test + + test + + + false + balanced + false + org.apache.activemq.test.annotations.ParallelTest + + true + ${project.build.directory}/ + true + false + + + + + + + org.apache.maven.surefire + surefire-junit47 + ${surefire.version} + + + + + + activemq.tests-all diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/ActiveMQConnectionFactoryTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/ActiveMQConnectionFactoryTest.java index 42a154739a5..1d18e8029ef 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/ActiveMQConnectionFactoryTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/ActiveMQConnectionFactoryTest.java @@ -36,6 +36,8 @@ import org.slf4j.Logger; import org.slf4j.LoggerFactory; + + public class ActiveMQConnectionFactoryTest extends CombinationTestSupport { private static final Logger LOG = LoggerFactory.getLogger(ActiveMQConnectionFactoryTest.class); diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/ActiveMQSslConnectionFactoryTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/ActiveMQSslConnectionFactoryTest.java index 52757ce86f3..26f60b505ce 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/ActiveMQSslConnectionFactoryTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/ActiveMQSslConnectionFactoryTest.java @@ -43,6 +43,8 @@ import static org.junit.Assert.assertArrayEquals; + + public class ActiveMQSslConnectionFactoryTest extends CombinationTestSupport { private static final Log LOG = LogFactory.getLog(ActiveMQSslConnectionFactoryTest.class); diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/ActiveMQXAConnectionFactoryTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/ActiveMQXAConnectionFactoryTest.java index 6fe9f7082f1..e346a2c3da3 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/ActiveMQXAConnectionFactoryTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/ActiveMQXAConnectionFactoryTest.java @@ -54,6 +54,8 @@ import org.slf4j.Logger; import org.slf4j.LoggerFactory; + + public class ActiveMQXAConnectionFactoryTest extends CombinationTestSupport { private static final Logger LOG = LoggerFactory.getLogger(ActiveMQXAConnectionFactoryTest.class); long txGenerator = System.currentTimeMillis(); 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..c76af588b7e 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 @@ -32,6 +32,8 @@ import org.apache.activemq.command.ActiveMQDestination; import org.apache.activemq.command.ActiveMQMessage; + + public class JMSUsecaseTest extends JmsTestSupport { public ActiveMQDestination destination; 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..b99f0dabb15 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 @@ -41,6 +41,8 @@ import org.slf4j.Logger; import org.slf4j.LoggerFactory; + + 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/JmsSendReceiveWithMessageExpirationTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/JmsSendReceiveWithMessageExpirationTest.java index 28c3af358d6..f85ed1c4b8e 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/JmsSendReceiveWithMessageExpirationTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/JmsSendReceiveWithMessageExpirationTest.java @@ -16,7 +16,6 @@ */ package org.apache.activemq; -import static org.junit.Assert.assertEquals; import java.util.Date; import java.util.Vector; @@ -35,7 +34,6 @@ import org.apache.activemq.broker.BrokerRegistry; import org.apache.activemq.broker.BrokerService; import org.apache.activemq.broker.region.DestinationStatistics; -import org.apache.activemq.broker.region.DurableTopicSubscription; import org.apache.activemq.broker.region.Subscription; import org.apache.activemq.command.ActiveMQDestination; import org.apache.activemq.store.TopicMessageStore; 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..d435fd950e6 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 @@ -48,6 +48,8 @@ import org.slf4j.Logger; import org.slf4j.LoggerFactory; + + 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/RedeliveryPolicyTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/RedeliveryPolicyTest.java index 53e341d5422..d3edbf34e10 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 @@ -44,6 +44,8 @@ import org.slf4j.Logger; import org.slf4j.LoggerFactory; + + 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/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/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/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/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/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..4e1a1ce5c5c 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); @@ -230,6 +229,11 @@ public void append(LogEvent event) { numberOfDiscardedJobs.incrementAndGet(); } } + + @Override + public boolean isStarted() { + return true; // false in DefaultTestAppender so Log4j will discard this appender + } }; registerLogAppender(appender); 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..ec1b6c98242 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 @@ -38,6 +38,8 @@ import org.slf4j.Logger; import org.slf4j.LoggerFactory; + + public class AMQ2314Test extends CombinationTestSupport { public boolean consumeAll = false; 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..5cc0d94023b 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 @@ -51,6 +51,8 @@ import org.slf4j.Logger; import org.slf4j.LoggerFactory; + + public class AMQ2413Test extends CombinationTestSupport implements MessageListener { private static final Logger LOG = LoggerFactory.getLogger(AMQ2413Test.class); BrokerService broker; 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..6548005ce2f 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,8 @@ import java.util.concurrent.atomic.AtomicBoolean; import java.util.concurrent.atomic.AtomicInteger; + + 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/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/TransactedStoreUsageSuspendResumeTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/TransactedStoreUsageSuspendResumeTest.java index d6d628ad7b6..cb064f77b86 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/TransactedStoreUsageSuspendResumeTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/TransactedStoreUsageSuspendResumeTest.java @@ -51,7 +51,17 @@ public class TransactedStoreUsageSuspendResumeTest { private static final Logger LOG = LoggerFactory.getLogger(TransactedStoreUsageSuspendResumeTest.class); - private static final int MAX_MESSAGES = 10000; + /** + * Keep volume modest while still triggering store usage blocking. Smaller + * store limits combined with these numbers still exercise the same flow + * control behaviour but in a fraction of the time. + */ + private static final int MAX_MESSAGES = 1000; + private static final int RETAIN_QUEUE_FILL_COUNT = 400; + private static final int SHORT_RETAIN_QUEUE_FILL_COUNT = 200; + private static final int STORE_USAGE_LIMIT = 4 * 1024 * 1024; + private static final int RECEIVE_TIMEOUT_MILLIS = 5000; + private static final int MAX_IDLE_RECEIVES = 12; // 1 minute (RECEIVE_TIMEOUT_MILLIS times MAX_IDLE_RECEIVES attempts) private static final String QUEUE_NAME = "test.queue"; @@ -85,11 +95,18 @@ public void run() { MessageConsumer consumer = session.createConsumer(session.createQueue(QUEUE_NAME)); + int idleReceives = 0; do { - Message message = consumer.receive(5000); + Message message = consumer.receive(RECEIVE_TIMEOUT_MILLIS); if (message != null) { session.commit(); messagesReceivedCountDown.countDown(); + idleReceives = 0; + } else { + idleReceives++; + if (idleReceives >= MAX_IDLE_RECEIVES) { + Assert.fail("Timed out waiting for messages, remaining: " + messagesReceivedCountDown.getCount()); + } } if (messagesReceivedCountDown.getCount() % 500 == 0) { LOG.info("remaining to receive: " + messagesReceivedCountDown.getCount()); @@ -121,7 +138,7 @@ public void setup() throws Exception { kahaDB.setCompactAcksAfterNoGC(5); broker.setPersistenceAdapter(kahaDB); - broker.getSystemUsage().getStoreUsage().setLimit(7*1024*1024); + broker.getSystemUsage().getStoreUsage().setLimit(STORE_USAGE_LIMIT); broker.start(); broker.waitUntilStarted(); @@ -179,7 +196,7 @@ private void sendMessages() throws Exception { BytesMessage message = session.createBytesMessage(); message.writeBytes(new byte[10]); - for (int i=0; i<1240; i++) { + for (int i = 0; i < RETAIN_QUEUE_FILL_COUNT; i++) { // mostly fill the store with retained messages // so consumer only has a small bit of store usage to work with producer.send(retainQueue, message); @@ -190,13 +207,13 @@ private void sendMessages() throws Exception { // some daylight in needed between retainQ and regularQ to free up the store // log4j.logger.org.apache.activemq.store.kahadb.MessageDatabase=TRACE Destination shortRetainQueue = session.createQueue(QUEUE_NAME + "-retain-short"); - for (int i=0; i<1240; i++) { + for (int i = 0; i < SHORT_RETAIN_QUEUE_FILL_COUNT; i++) { producer.send(shortRetainQueue, message); session.commit(); } MessageConsumer consumer = session.createConsumer(shortRetainQueue); - for (int i=0; i<1240; i++) { + for (int i = 0; i < SHORT_RETAIN_QUEUE_FILL_COUNT; i++) { consumer.receive(4000); session.commit(); } 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/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/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/InactiveDurableTopicTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/perf/InactiveDurableTopicTest.java index df52184b05b..dcec99f35ff 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/perf/InactiveDurableTopicTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/perf/InactiveDurableTopicTest.java @@ -16,6 +16,8 @@ */ package org.apache.activemq.perf; +import java.util.concurrent.TimeUnit; + import jakarta.jms.Connection; import jakarta.jms.JMSException; import jakarta.jms.MapMessage; @@ -39,7 +41,11 @@ public class InactiveDurableTopicTest extends TestCase { private static final transient Logger LOG = LoggerFactory.getLogger(InactiveDurableTopicTest.class); - private static final int MESSAGE_COUNT = 2000; + /** + * Keep the payload small so that the test completes quickly but still + * exercises durable subscription behaviour. + */ + private static final int MESSAGE_COUNT = 500; private static final String DEFAULT_PASSWORD = ""; private static final String USERNAME = "testuser"; private static final String CLIENTID = "mytestclient"; @@ -55,21 +61,28 @@ public class InactiveDurableTopicTest extends TestCase { private ActiveMQConnectionFactory connectionFactory; private BrokerService broker; + private static final int SEND_TIMEOUT_MILLIS = (int) TimeUnit.SECONDS.toMillis(30); + private static final long SEND_LOOP_TIMEOUT_MILLIS = TimeUnit.MINUTES.toMillis(2); + private static final long RECEIVE_TIMEOUT_MILLIS = TimeUnit.SECONDS.toMillis(5); + private static final String BROKER_NAME = "inactiveDurableTopicTest"; + @Override protected void setUp() throws Exception { super.setUp(); broker = new BrokerService(); - - //broker.setPersistenceAdapter(new KahaPersistenceAdapter()); - broker.addConnector(ActiveMQConnectionFactory.DEFAULT_BROKER_BIND_URL); + broker.setUseJmx(false); + broker.setBrokerName(BROKER_NAME); + // broker.addConnector(ActiveMQConnectionFactory.DEFAULT_BROKER_BIND_URL); broker.start(); - connectionFactory = new ActiveMQConnectionFactory(ActiveMQConnectionFactory.DEFAULT_BROKER_URL); + // connectionFactory = new ActiveMQConnectionFactory(ActiveMQConnectionFactory.DEFAULT_BROKER_URL); + connectionFactory = new ActiveMQConnectionFactory("vm://" + BROKER_NAME); /* * Doesn't matter if you enable or disable these, so just leaving them * out for this test case connectionFactory.setAlwaysSessionAsync(true); * connectionFactory.setAsyncDispatch(true); */ connectionFactory.setUseAsyncSend(true); + connectionFactory.setSendTimeout(SEND_TIMEOUT_MILLIS); } @Override @@ -124,9 +137,13 @@ public void test2ProducerTestCase() { assertNotNull(msg); msg.setString("key1", "value1"); int loop; + long start = System.currentTimeMillis(); for (loop = 0; loop < MESSAGE_COUNT; loop++) { msg.setInt("key2", loop); publisher.send(msg, DELIVERY_MODE, DELIVERY_PRIORITY, Message.DEFAULT_TIME_TO_LIVE); + if (System.currentTimeMillis() - start > SEND_LOOP_TIMEOUT_MILLIS) { + throw new AssertionFailedError("Timed out sending messages at loop: " + loop); + } if (loop % 5000 == 0) { LOG.info("Sent " + loop + " messages"); } @@ -163,7 +180,10 @@ public void test3CreateSubscription() throws Exception { assertNotNull(subscriber); int loop; for (loop = 0; loop < MESSAGE_COUNT; loop++) { - subscriber.receive(); + Message message = subscriber.receive(RECEIVE_TIMEOUT_MILLIS); + if (message == null) { + throw new AssertionFailedError("Timed out waiting for message " + loop); + } if (loop % 500 == 0) { LOG.debug("Received " + loop + " messages"); } 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/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/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/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/transport/RestrictedThreadPoolInactivityTimeoutTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/transport/RestrictedThreadPoolInactivityTimeoutTest.java index d5e2a1a8428..899f9783af7 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/transport/RestrictedThreadPoolInactivityTimeoutTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/transport/RestrictedThreadPoolInactivityTimeoutTest.java @@ -33,6 +33,8 @@ import java.util.concurrent.CountDownLatch; import java.util.concurrent.TimeUnit; + + public class RestrictedThreadPoolInactivityTimeoutTest extends JmsTestSupport { private static final Logger LOG = LoggerFactory.getLogger(RestrictedThreadPoolInactivityTimeoutTest.class); 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..f03c2758979 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 @@ -35,6 +35,8 @@ import org.slf4j.Logger; import org.slf4j.LoggerFactory; + + 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/SoWriteTimeoutTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/transport/SoWriteTimeoutTest.java index 9b4b5caf49b..8d0fa0af2f3 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/transport/SoWriteTimeoutTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/transport/SoWriteTimeoutTest.java @@ -41,6 +41,8 @@ import org.slf4j.Logger; import org.slf4j.LoggerFactory; + + public class SoWriteTimeoutTest extends JmsTestSupport { private static final Logger LOG = LoggerFactory.getLogger(SoWriteTimeoutTest.class); diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/transport/discovery/DiscoveryTransportNoBrokerTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/transport/discovery/DiscoveryTransportNoBrokerTest.java index cb9c57f8751..03e3f9290b7 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/transport/discovery/DiscoveryTransportNoBrokerTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/transport/discovery/DiscoveryTransportNoBrokerTest.java @@ -34,6 +34,8 @@ import org.slf4j.Logger; import org.slf4j.LoggerFactory; + + public class DiscoveryTransportNoBrokerTest extends CombinationTestSupport { private static final Logger LOG = LoggerFactory.getLogger(DiscoveryTransportNoBrokerTest.class); 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..db7d2edf5c0 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 @@ -40,6 +40,8 @@ import org.slf4j.Logger; import org.slf4j.LoggerFactory; + + 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/tcp/InactivityMonitorTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/transport/tcp/InactivityMonitorTest.java index c1ff0264a7e..b1bab48cda2 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/transport/tcp/InactivityMonitorTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/transport/tcp/InactivityMonitorTest.java @@ -53,6 +53,8 @@ import org.slf4j.Logger; import org.slf4j.LoggerFactory; + + public class InactivityMonitorTest extends CombinationTestSupport implements TransportAcceptListener { private static final Logger LOG = LoggerFactory.getLogger(InactivityMonitorTest.class); diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/transport/tcp/WireformatNegociationTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/transport/tcp/WireformatNegociationTest.java index 76bf221355b..26dc30e084b 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/transport/tcp/WireformatNegociationTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/transport/tcp/WireformatNegociationTest.java @@ -35,6 +35,8 @@ import org.slf4j.Logger; import org.slf4j.LoggerFactory; + + public class WireformatNegociationTest extends CombinationTestSupport { private static final Logger LOG = LoggerFactory.getLogger(WireformatNegociationTest.class); 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/ExpiredMessagesTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/usecases/ExpiredMessagesTest.java index 8c128b09dc7..2852c1d4321 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 @@ -50,6 +50,8 @@ import static org.apache.activemq.TestSupport.getDestinationConsumers; import static org.apache.activemq.TestSupport.getDestinationStatistics; + + 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..94032a2705b 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 @@ -50,6 +50,8 @@ import org.slf4j.Logger; import org.slf4j.LoggerFactory; + + 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/MessageGroupDelayedTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/usecases/MessageGroupDelayedTest.java index 57adfeb3a2c..8ec80c0eb01 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 @@ -40,6 +40,8 @@ import org.slf4j.Logger; import org.slf4j.LoggerFactory; + + 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/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..b2612597cd0 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 @@ -39,6 +39,8 @@ import org.slf4j.LoggerFactory; + + 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/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;