You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@activemq.apache.org by gt...@apache.org on 2008/12/10 17:23:11 UTC
svn commit: r725323 [7/7] - in /activemq/trunk/activemq-core: ./
src/main/java/org/apache/activemq/broker/
src/main/java/org/apache/activemq/broker/region/
src/main/java/org/apache/activemq/command/
src/main/java/org/apache/activemq/network/ src/main/j...
Added: activemq/trunk/activemq-core/src/test/java/org/apache/activemq/openwire/v4/MessageTestSupport.java
URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-core/src/test/java/org/apache/activemq/openwire/v4/MessageTestSupport.java?rev=725323&view=auto
==============================================================================
--- activemq/trunk/activemq-core/src/test/java/org/apache/activemq/openwire/v4/MessageTestSupport.java (added)
+++ activemq/trunk/activemq-core/src/test/java/org/apache/activemq/openwire/v4/MessageTestSupport.java Wed Dec 10 08:23:07 2008
@@ -0,0 +1,94 @@
+/**
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.activemq.openwire.v4;
+
+import java.io.DataInputStream;
+import java.io.DataOutputStream;
+import java.io.IOException;
+
+import org.apache.activemq.openwire.*;
+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.
+ *
+ * @version $Revision$
+ */
+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);
+ }
+}
Propchange: activemq/trunk/activemq-core/src/test/java/org/apache/activemq/openwire/v4/MessageTestSupport.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: activemq/trunk/activemq-core/src/test/java/org/apache/activemq/openwire/v4/MessageTestSupport.java
------------------------------------------------------------------------------
svn:keywords = Rev Date
Added: activemq/trunk/activemq-core/src/test/java/org/apache/activemq/openwire/v4/NetworkBridgeFilterTest.java
URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-core/src/test/java/org/apache/activemq/openwire/v4/NetworkBridgeFilterTest.java?rev=725323&view=auto
==============================================================================
--- activemq/trunk/activemq-core/src/test/java/org/apache/activemq/openwire/v4/NetworkBridgeFilterTest.java (added)
+++ activemq/trunk/activemq-core/src/test/java/org/apache/activemq/openwire/v4/NetworkBridgeFilterTest.java Wed Dec 10 08:23:07 2008
@@ -0,0 +1,57 @@
+/**
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.activemq.openwire.v4;
+
+import java.io.DataInputStream;
+import 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.
+ *
+ * @version $Revision$
+ */
+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"));
+ }
+}
Propchange: activemq/trunk/activemq-core/src/test/java/org/apache/activemq/openwire/v4/NetworkBridgeFilterTest.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: activemq/trunk/activemq-core/src/test/java/org/apache/activemq/openwire/v4/NetworkBridgeFilterTest.java
------------------------------------------------------------------------------
svn:keywords = Rev Date
Added: activemq/trunk/activemq-core/src/test/java/org/apache/activemq/openwire/v4/PartialCommandTest.java
URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-core/src/test/java/org/apache/activemq/openwire/v4/PartialCommandTest.java?rev=725323&view=auto
==============================================================================
--- activemq/trunk/activemq-core/src/test/java/org/apache/activemq/openwire/v4/PartialCommandTest.java (added)
+++ activemq/trunk/activemq-core/src/test/java/org/apache/activemq/openwire/v4/PartialCommandTest.java Wed Dec 10 08:23:07 2008
@@ -0,0 +1,57 @@
+/**
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.activemq.openwire.v4;
+
+import java.io.DataInputStream;
+import 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.
+ *
+ * @version $Revision$
+ */
+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());
+ }
+}
Propchange: activemq/trunk/activemq-core/src/test/java/org/apache/activemq/openwire/v4/PartialCommandTest.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: activemq/trunk/activemq-core/src/test/java/org/apache/activemq/openwire/v4/PartialCommandTest.java
------------------------------------------------------------------------------
svn:keywords = Rev Date
Added: activemq/trunk/activemq-core/src/test/java/org/apache/activemq/openwire/v4/ProducerAckTest.java
URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-core/src/test/java/org/apache/activemq/openwire/v4/ProducerAckTest.java?rev=725323&view=auto
==============================================================================
--- activemq/trunk/activemq-core/src/test/java/org/apache/activemq/openwire/v4/ProducerAckTest.java (added)
+++ activemq/trunk/activemq-core/src/test/java/org/apache/activemq/openwire/v4/ProducerAckTest.java Wed Dec 10 08:23:07 2008
@@ -0,0 +1,57 @@
+/**
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.activemq.openwire.v4;
+
+import java.io.DataInputStream;
+import 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.
+ *
+ * @version $Revision$
+ */
+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);
+ }
+}
Propchange: activemq/trunk/activemq-core/src/test/java/org/apache/activemq/openwire/v4/ProducerAckTest.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: activemq/trunk/activemq-core/src/test/java/org/apache/activemq/openwire/v4/ProducerAckTest.java
------------------------------------------------------------------------------
svn:keywords = Rev Date
Added: activemq/trunk/activemq-core/src/test/java/org/apache/activemq/openwire/v4/ProducerIdTest.java
URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-core/src/test/java/org/apache/activemq/openwire/v4/ProducerIdTest.java?rev=725323&view=auto
==============================================================================
--- activemq/trunk/activemq-core/src/test/java/org/apache/activemq/openwire/v4/ProducerIdTest.java (added)
+++ activemq/trunk/activemq-core/src/test/java/org/apache/activemq/openwire/v4/ProducerIdTest.java Wed Dec 10 08:23:07 2008
@@ -0,0 +1,58 @@
+/**
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.activemq.openwire.v4;
+
+import java.io.DataInputStream;
+import 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.
+ *
+ * @version $Revision$
+ */
+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);
+ }
+}
Propchange: activemq/trunk/activemq-core/src/test/java/org/apache/activemq/openwire/v4/ProducerIdTest.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: activemq/trunk/activemq-core/src/test/java/org/apache/activemq/openwire/v4/ProducerIdTest.java
------------------------------------------------------------------------------
svn:keywords = Rev Date
Added: activemq/trunk/activemq-core/src/test/java/org/apache/activemq/openwire/v4/ProducerInfoTest.java
URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-core/src/test/java/org/apache/activemq/openwire/v4/ProducerInfoTest.java?rev=725323&view=auto
==============================================================================
--- activemq/trunk/activemq-core/src/test/java/org/apache/activemq/openwire/v4/ProducerInfoTest.java (added)
+++ activemq/trunk/activemq-core/src/test/java/org/apache/activemq/openwire/v4/ProducerInfoTest.java Wed Dec 10 08:23:07 2008
@@ -0,0 +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.v4;
+
+import java.io.DataInputStream;
+import 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.
+ *
+ * @version $Revision$
+ */
+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);
+ }
+}
Propchange: activemq/trunk/activemq-core/src/test/java/org/apache/activemq/openwire/v4/ProducerInfoTest.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: activemq/trunk/activemq-core/src/test/java/org/apache/activemq/openwire/v4/ProducerInfoTest.java
------------------------------------------------------------------------------
svn:keywords = Rev Date
Added: activemq/trunk/activemq-core/src/test/java/org/apache/activemq/openwire/v4/RemoveInfoTest.java
URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-core/src/test/java/org/apache/activemq/openwire/v4/RemoveInfoTest.java?rev=725323&view=auto
==============================================================================
--- activemq/trunk/activemq-core/src/test/java/org/apache/activemq/openwire/v4/RemoveInfoTest.java (added)
+++ activemq/trunk/activemq-core/src/test/java/org/apache/activemq/openwire/v4/RemoveInfoTest.java Wed Dec 10 08:23:07 2008
@@ -0,0 +1,56 @@
+/**
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.activemq.openwire.v4;
+
+import java.io.DataInputStream;
+import 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.
+ *
+ * @version $Revision$
+ */
+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"));
+ }
+}
Propchange: activemq/trunk/activemq-core/src/test/java/org/apache/activemq/openwire/v4/RemoveInfoTest.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: activemq/trunk/activemq-core/src/test/java/org/apache/activemq/openwire/v4/RemoveInfoTest.java
------------------------------------------------------------------------------
svn:keywords = Rev Date
Added: activemq/trunk/activemq-core/src/test/java/org/apache/activemq/openwire/v4/RemoveSubscriptionInfoTest.java
URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-core/src/test/java/org/apache/activemq/openwire/v4/RemoveSubscriptionInfoTest.java?rev=725323&view=auto
==============================================================================
--- activemq/trunk/activemq-core/src/test/java/org/apache/activemq/openwire/v4/RemoveSubscriptionInfoTest.java (added)
+++ activemq/trunk/activemq-core/src/test/java/org/apache/activemq/openwire/v4/RemoveSubscriptionInfoTest.java Wed Dec 10 08:23:07 2008
@@ -0,0 +1,58 @@
+/**
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.activemq.openwire.v4;
+
+import java.io.DataInputStream;
+import 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.
+ *
+ * @version $Revision$
+ */
+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");
+ }
+}
Propchange: activemq/trunk/activemq-core/src/test/java/org/apache/activemq/openwire/v4/RemoveSubscriptionInfoTest.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: activemq/trunk/activemq-core/src/test/java/org/apache/activemq/openwire/v4/RemoveSubscriptionInfoTest.java
------------------------------------------------------------------------------
svn:keywords = Rev Date
Added: activemq/trunk/activemq-core/src/test/java/org/apache/activemq/openwire/v4/ReplayCommandTest.java
URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-core/src/test/java/org/apache/activemq/openwire/v4/ReplayCommandTest.java?rev=725323&view=auto
==============================================================================
--- activemq/trunk/activemq-core/src/test/java/org/apache/activemq/openwire/v4/ReplayCommandTest.java (added)
+++ activemq/trunk/activemq-core/src/test/java/org/apache/activemq/openwire/v4/ReplayCommandTest.java Wed Dec 10 08:23:07 2008
@@ -0,0 +1,57 @@
+/**
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.activemq.openwire.v4;
+
+import java.io.DataInputStream;
+import 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.
+ *
+ * @version $Revision$
+ */
+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);
+ }
+}
Propchange: activemq/trunk/activemq-core/src/test/java/org/apache/activemq/openwire/v4/ReplayCommandTest.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: activemq/trunk/activemq-core/src/test/java/org/apache/activemq/openwire/v4/ReplayCommandTest.java
------------------------------------------------------------------------------
svn:keywords = Rev Date
Added: activemq/trunk/activemq-core/src/test/java/org/apache/activemq/openwire/v4/ResponseTest.java
URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-core/src/test/java/org/apache/activemq/openwire/v4/ResponseTest.java?rev=725323&view=auto
==============================================================================
--- activemq/trunk/activemq-core/src/test/java/org/apache/activemq/openwire/v4/ResponseTest.java (added)
+++ activemq/trunk/activemq-core/src/test/java/org/apache/activemq/openwire/v4/ResponseTest.java Wed Dec 10 08:23:07 2008
@@ -0,0 +1,56 @@
+/**
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.activemq.openwire.v4;
+
+import java.io.DataInputStream;
+import 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.
+ *
+ * @version $Revision$
+ */
+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);
+ }
+}
Propchange: activemq/trunk/activemq-core/src/test/java/org/apache/activemq/openwire/v4/ResponseTest.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: activemq/trunk/activemq-core/src/test/java/org/apache/activemq/openwire/v4/ResponseTest.java
------------------------------------------------------------------------------
svn:keywords = Rev Date
Added: activemq/trunk/activemq-core/src/test/java/org/apache/activemq/openwire/v4/SessionIdTest.java
URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-core/src/test/java/org/apache/activemq/openwire/v4/SessionIdTest.java?rev=725323&view=auto
==============================================================================
--- activemq/trunk/activemq-core/src/test/java/org/apache/activemq/openwire/v4/SessionIdTest.java (added)
+++ activemq/trunk/activemq-core/src/test/java/org/apache/activemq/openwire/v4/SessionIdTest.java Wed Dec 10 08:23:07 2008
@@ -0,0 +1,57 @@
+/**
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.activemq.openwire.v4;
+
+import java.io.DataInputStream;
+import 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.
+ *
+ * @version $Revision$
+ */
+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);
+ }
+}
Propchange: activemq/trunk/activemq-core/src/test/java/org/apache/activemq/openwire/v4/SessionIdTest.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: activemq/trunk/activemq-core/src/test/java/org/apache/activemq/openwire/v4/SessionIdTest.java
------------------------------------------------------------------------------
svn:keywords = Rev Date
Added: activemq/trunk/activemq-core/src/test/java/org/apache/activemq/openwire/v4/SessionInfoTest.java
URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-core/src/test/java/org/apache/activemq/openwire/v4/SessionInfoTest.java?rev=725323&view=auto
==============================================================================
--- activemq/trunk/activemq-core/src/test/java/org/apache/activemq/openwire/v4/SessionInfoTest.java (added)
+++ activemq/trunk/activemq-core/src/test/java/org/apache/activemq/openwire/v4/SessionInfoTest.java Wed Dec 10 08:23:07 2008
@@ -0,0 +1,56 @@
+/**
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.activemq.openwire.v4;
+
+import java.io.DataInputStream;
+import 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.
+ *
+ * @version $Revision$
+ */
+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"));
+ }
+}
Propchange: activemq/trunk/activemq-core/src/test/java/org/apache/activemq/openwire/v4/SessionInfoTest.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: activemq/trunk/activemq-core/src/test/java/org/apache/activemq/openwire/v4/SessionInfoTest.java
------------------------------------------------------------------------------
svn:keywords = Rev Date
Added: activemq/trunk/activemq-core/src/test/java/org/apache/activemq/openwire/v4/ShutdownInfoTest.java
URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-core/src/test/java/org/apache/activemq/openwire/v4/ShutdownInfoTest.java?rev=725323&view=auto
==============================================================================
--- activemq/trunk/activemq-core/src/test/java/org/apache/activemq/openwire/v4/ShutdownInfoTest.java (added)
+++ activemq/trunk/activemq-core/src/test/java/org/apache/activemq/openwire/v4/ShutdownInfoTest.java Wed Dec 10 08:23:07 2008
@@ -0,0 +1,55 @@
+/**
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.activemq.openwire.v4;
+
+import java.io.DataInputStream;
+import 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.
+ *
+ * @version $Revision$
+ */
+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;
+
+ }
+}
Propchange: activemq/trunk/activemq-core/src/test/java/org/apache/activemq/openwire/v4/ShutdownInfoTest.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: activemq/trunk/activemq-core/src/test/java/org/apache/activemq/openwire/v4/ShutdownInfoTest.java
------------------------------------------------------------------------------
svn:keywords = Rev Date
Added: activemq/trunk/activemq-core/src/test/java/org/apache/activemq/openwire/v4/SubscriptionInfoTest.java
URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-core/src/test/java/org/apache/activemq/openwire/v4/SubscriptionInfoTest.java?rev=725323&view=auto
==============================================================================
--- activemq/trunk/activemq-core/src/test/java/org/apache/activemq/openwire/v4/SubscriptionInfoTest.java (added)
+++ activemq/trunk/activemq-core/src/test/java/org/apache/activemq/openwire/v4/SubscriptionInfoTest.java Wed Dec 10 08:23:07 2008
@@ -0,0 +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.v4;
+
+import java.io.DataInputStream;
+import 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.
+ *
+ * @version $Revision$
+ */
+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"));
+ }
+}
Propchange: activemq/trunk/activemq-core/src/test/java/org/apache/activemq/openwire/v4/SubscriptionInfoTest.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: activemq/trunk/activemq-core/src/test/java/org/apache/activemq/openwire/v4/SubscriptionInfoTest.java
------------------------------------------------------------------------------
svn:keywords = Rev Date
Added: activemq/trunk/activemq-core/src/test/java/org/apache/activemq/openwire/v4/TransactionIdTestSupport.java
URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-core/src/test/java/org/apache/activemq/openwire/v4/TransactionIdTestSupport.java?rev=725323&view=auto
==============================================================================
--- activemq/trunk/activemq-core/src/test/java/org/apache/activemq/openwire/v4/TransactionIdTestSupport.java (added)
+++ activemq/trunk/activemq-core/src/test/java/org/apache/activemq/openwire/v4/TransactionIdTestSupport.java Wed Dec 10 08:23:07 2008
@@ -0,0 +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.v4;
+
+import java.io.DataInputStream;
+import 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.
+ *
+ * @version $Revision$
+ */
+public abstract class TransactionIdTestSupport extends DataFileGeneratorTestSupport {
+
+
+ protected void populateObject(Object object) throws Exception {
+ super.populateObject(object);
+ TransactionId info = (TransactionId) object;
+
+ }
+}
Propchange: activemq/trunk/activemq-core/src/test/java/org/apache/activemq/openwire/v4/TransactionIdTestSupport.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: activemq/trunk/activemq-core/src/test/java/org/apache/activemq/openwire/v4/TransactionIdTestSupport.java
------------------------------------------------------------------------------
svn:keywords = Rev Date
Added: activemq/trunk/activemq-core/src/test/java/org/apache/activemq/openwire/v4/TransactionInfoTest.java
URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-core/src/test/java/org/apache/activemq/openwire/v4/TransactionInfoTest.java?rev=725323&view=auto
==============================================================================
--- activemq/trunk/activemq-core/src/test/java/org/apache/activemq/openwire/v4/TransactionInfoTest.java (added)
+++ activemq/trunk/activemq-core/src/test/java/org/apache/activemq/openwire/v4/TransactionInfoTest.java Wed Dec 10 08:23:07 2008
@@ -0,0 +1,58 @@
+/**
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.activemq.openwire.v4;
+
+import java.io.DataInputStream;
+import 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.
+ *
+ * @version $Revision$
+ */
+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);
+ }
+}
Propchange: activemq/trunk/activemq-core/src/test/java/org/apache/activemq/openwire/v4/TransactionInfoTest.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: activemq/trunk/activemq-core/src/test/java/org/apache/activemq/openwire/v4/TransactionInfoTest.java
------------------------------------------------------------------------------
svn:keywords = Rev Date
Added: activemq/trunk/activemq-core/src/test/java/org/apache/activemq/openwire/v4/XATransactionIdTest.java
URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-core/src/test/java/org/apache/activemq/openwire/v4/XATransactionIdTest.java?rev=725323&view=auto
==============================================================================
--- activemq/trunk/activemq-core/src/test/java/org/apache/activemq/openwire/v4/XATransactionIdTest.java (added)
+++ activemq/trunk/activemq-core/src/test/java/org/apache/activemq/openwire/v4/XATransactionIdTest.java Wed Dec 10 08:23:07 2008
@@ -0,0 +1,58 @@
+/**
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.activemq.openwire.v4;
+
+import java.io.DataInputStream;
+import 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.
+ *
+ * @version $Revision$
+ */
+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());
+ }
+}
Propchange: activemq/trunk/activemq-core/src/test/java/org/apache/activemq/openwire/v4/XATransactionIdTest.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: activemq/trunk/activemq-core/src/test/java/org/apache/activemq/openwire/v4/XATransactionIdTest.java
------------------------------------------------------------------------------
svn:keywords = Rev Date
Modified: activemq/trunk/activemq-core/src/test/java/org/apache/activemq/usecases/MultiBrokersMultiClientsUsingTcpTest.java
URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-core/src/test/java/org/apache/activemq/usecases/MultiBrokersMultiClientsUsingTcpTest.java?rev=725323&r1=725322&r2=725323&view=diff
==============================================================================
--- activemq/trunk/activemq-core/src/test/java/org/apache/activemq/usecases/MultiBrokersMultiClientsUsingTcpTest.java (original)
+++ activemq/trunk/activemq-core/src/test/java/org/apache/activemq/usecases/MultiBrokersMultiClientsUsingTcpTest.java Wed Dec 10 08:23:07 2008
@@ -60,6 +60,7 @@
NetworkBridgeConfiguration config = new NetworkBridgeConfiguration();
config.setBrokerName(localBroker.getBrokerName());
DemandForwardingBridge bridge = new DemandForwardingBridge(config, TransportFactory.connect(localURI), TransportFactory.connect(remoteURI));
+ bridge.setBrokerService(localBroker);
bridges.add(bridge);
bridge.start();
Modified: activemq/trunk/activemq-core/src/test/java/org/apache/activemq/usecases/NoDuplicateOnTopicNetworkTest.java
URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-core/src/test/java/org/apache/activemq/usecases/NoDuplicateOnTopicNetworkTest.java?rev=725323&r1=725322&r2=725323&view=diff
==============================================================================
--- activemq/trunk/activemq-core/src/test/java/org/apache/activemq/usecases/NoDuplicateOnTopicNetworkTest.java (original)
+++ activemq/trunk/activemq-core/src/test/java/org/apache/activemq/usecases/NoDuplicateOnTopicNetworkTest.java Wed Dec 10 08:23:07 2008
@@ -43,7 +43,7 @@
// when > 1, subscriptions perculate around resulting in duplicates as there is no
// memory of the original subscription.
// solution for 6.0 using org.apache.activemq.command.ConsumerInfo.getNetworkConsumerIds()
- private int ttl = 1;
+ private int ttl = 3;
@Override
protected void setUp() throws Exception {
@@ -113,8 +113,12 @@
});
consumerThread.start();
- Thread.sleep(1000);
+ LOG.info("Started Consumer");
+
+ // ensure subscription has percolated though the network
+ Thread.sleep(2000);
producerThread.start();
+ LOG.info("Started Producer");
producerThread.join();
consumerThread.join();
Modified: activemq/trunk/activemq-core/src/test/java/org/apache/activemq/usecases/ThreeBrokerQueueNetworkUsingTcpTest.java
URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-core/src/test/java/org/apache/activemq/usecases/ThreeBrokerQueueNetworkUsingTcpTest.java?rev=725323&r1=725322&r2=725323&view=diff
==============================================================================
--- activemq/trunk/activemq-core/src/test/java/org/apache/activemq/usecases/ThreeBrokerQueueNetworkUsingTcpTest.java (original)
+++ activemq/trunk/activemq-core/src/test/java/org/apache/activemq/usecases/ThreeBrokerQueueNetworkUsingTcpTest.java Wed Dec 10 08:23:07 2008
@@ -47,6 +47,7 @@
NetworkBridgeConfiguration config = new NetworkBridgeConfiguration();
config.setBrokerName(localBroker.getBrokerName());
DemandForwardingBridge bridge = new DemandForwardingBridge(config, TransportFactory.connect(localURI), TransportFactory.connect(remoteURI));
+ bridge.setBrokerService(localBroker);
bridges.add(bridge);
bridge.start();
Modified: activemq/trunk/activemq-core/src/test/java/org/apache/activemq/usecases/ThreeBrokerTopicNetworkUsingTcpTest.java
URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-core/src/test/java/org/apache/activemq/usecases/ThreeBrokerTopicNetworkUsingTcpTest.java?rev=725323&r1=725322&r2=725323&view=diff
==============================================================================
--- activemq/trunk/activemq-core/src/test/java/org/apache/activemq/usecases/ThreeBrokerTopicNetworkUsingTcpTest.java (original)
+++ activemq/trunk/activemq-core/src/test/java/org/apache/activemq/usecases/ThreeBrokerTopicNetworkUsingTcpTest.java Wed Dec 10 08:23:07 2008
@@ -47,6 +47,7 @@
NetworkBridgeConfiguration config = new NetworkBridgeConfiguration();
config.setBrokerName(localBroker.getBrokerName());
DemandForwardingBridge bridge = new DemandForwardingBridge(config, TransportFactory.connect(localURI), TransportFactory.connect(remoteURI));
+ bridge.setBrokerService(localBroker);
bridges.add(bridge);
bridge.start();