activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gtu...@apache.org
Subject svn commit: r902908 [7/7] - in /activemq/trunk/activemq-core: ./ src/main/java/org/apache/activemq/ 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/...
Date Mon, 25 Jan 2010 18:19:57 GMT
Added: activemq/trunk/activemq-core/src/test/java/org/apache/activemq/openwire/v6/MessageDispatchNotificationTest.java
URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-core/src/test/java/org/apache/activemq/openwire/v6/MessageDispatchNotificationTest.java?rev=902908&view=auto
==============================================================================
--- activemq/trunk/activemq-core/src/test/java/org/apache/activemq/openwire/v6/MessageDispatchNotificationTest.java (added)
+++ activemq/trunk/activemq-core/src/test/java/org/apache/activemq/openwire/v6/MessageDispatchNotificationTest.java Mon Jan 25 18:19:54 2010
@@ -0,0 +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.v6;
+
+import java.io.DataInputStream;
+import 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.
+ *
+ * @version $Revision$
+ */
+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"));
+    }
+}

Propchange: activemq/trunk/activemq-core/src/test/java/org/apache/activemq/openwire/v6/MessageDispatchNotificationTest.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: activemq/trunk/activemq-core/src/test/java/org/apache/activemq/openwire/v6/MessageDispatchNotificationTest.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Added: activemq/trunk/activemq-core/src/test/java/org/apache/activemq/openwire/v6/MessageDispatchTest.java
URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-core/src/test/java/org/apache/activemq/openwire/v6/MessageDispatchTest.java?rev=902908&view=auto
==============================================================================
--- activemq/trunk/activemq-core/src/test/java/org/apache/activemq/openwire/v6/MessageDispatchTest.java (added)
+++ activemq/trunk/activemq-core/src/test/java/org/apache/activemq/openwire/v6/MessageDispatchTest.java Mon Jan 25 18:19:54 2010
@@ -0,0 +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.v6;
+
+import java.io.DataInputStream;
+import 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.
+ *
+ * @version $Revision$
+ */
+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);
+    }
+}

Propchange: activemq/trunk/activemq-core/src/test/java/org/apache/activemq/openwire/v6/MessageDispatchTest.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: activemq/trunk/activemq-core/src/test/java/org/apache/activemq/openwire/v6/MessageDispatchTest.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Added: activemq/trunk/activemq-core/src/test/java/org/apache/activemq/openwire/v6/MessageIdTest.java
URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-core/src/test/java/org/apache/activemq/openwire/v6/MessageIdTest.java?rev=902908&view=auto
==============================================================================
--- activemq/trunk/activemq-core/src/test/java/org/apache/activemq/openwire/v6/MessageIdTest.java (added)
+++ activemq/trunk/activemq-core/src/test/java/org/apache/activemq/openwire/v6/MessageIdTest.java Mon Jan 25 18:19:54 2010
@@ -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.v6;
+
+import java.io.DataInputStream;
+import 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.
+ *
+ * @version $Revision$
+ */
+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);
+    }
+}

Propchange: activemq/trunk/activemq-core/src/test/java/org/apache/activemq/openwire/v6/MessageIdTest.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: activemq/trunk/activemq-core/src/test/java/org/apache/activemq/openwire/v6/MessageIdTest.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Added: activemq/trunk/activemq-core/src/test/java/org/apache/activemq/openwire/v6/MessagePullTest.java
URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-core/src/test/java/org/apache/activemq/openwire/v6/MessagePullTest.java?rev=902908&view=auto
==============================================================================
--- activemq/trunk/activemq-core/src/test/java/org/apache/activemq/openwire/v6/MessagePullTest.java (added)
+++ activemq/trunk/activemq-core/src/test/java/org/apache/activemq/openwire/v6/MessagePullTest.java Mon Jan 25 18:19:54 2010
@@ -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.v6;
+
+import java.io.DataInputStream;
+import 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.
+ *
+ * @version $Revision$
+ */
+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"));
+    }
+}

Propchange: activemq/trunk/activemq-core/src/test/java/org/apache/activemq/openwire/v6/MessagePullTest.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: activemq/trunk/activemq-core/src/test/java/org/apache/activemq/openwire/v6/MessagePullTest.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Added: activemq/trunk/activemq-core/src/test/java/org/apache/activemq/openwire/v6/MessageTestSupport.java
URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-core/src/test/java/org/apache/activemq/openwire/v6/MessageTestSupport.java?rev=902908&view=auto
==============================================================================
--- activemq/trunk/activemq-core/src/test/java/org/apache/activemq/openwire/v6/MessageTestSupport.java (added)
+++ activemq/trunk/activemq-core/src/test/java/org/apache/activemq/openwire/v6/MessageTestSupport.java Mon Jan 25 18:19:54 2010
@@ -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.v6;
+
+import java.io.DataInputStream;
+import 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/v6/MessageTestSupport.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: activemq/trunk/activemq-core/src/test/java/org/apache/activemq/openwire/v6/MessageTestSupport.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Added: activemq/trunk/activemq-core/src/test/java/org/apache/activemq/openwire/v6/NetworkBridgeFilterTest.java
URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-core/src/test/java/org/apache/activemq/openwire/v6/NetworkBridgeFilterTest.java?rev=902908&view=auto
==============================================================================
--- activemq/trunk/activemq-core/src/test/java/org/apache/activemq/openwire/v6/NetworkBridgeFilterTest.java (added)
+++ activemq/trunk/activemq-core/src/test/java/org/apache/activemq/openwire/v6/NetworkBridgeFilterTest.java Mon Jan 25 18:19:54 2010
@@ -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.v6;
+
+import java.io.DataInputStream;
+import 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/v6/NetworkBridgeFilterTest.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: activemq/trunk/activemq-core/src/test/java/org/apache/activemq/openwire/v6/NetworkBridgeFilterTest.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Added: activemq/trunk/activemq-core/src/test/java/org/apache/activemq/openwire/v6/PartialCommandTest.java
URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-core/src/test/java/org/apache/activemq/openwire/v6/PartialCommandTest.java?rev=902908&view=auto
==============================================================================
--- activemq/trunk/activemq-core/src/test/java/org/apache/activemq/openwire/v6/PartialCommandTest.java (added)
+++ activemq/trunk/activemq-core/src/test/java/org/apache/activemq/openwire/v6/PartialCommandTest.java Mon Jan 25 18:19:54 2010
@@ -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.v6;
+
+import java.io.DataInputStream;
+import 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/v6/PartialCommandTest.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: activemq/trunk/activemq-core/src/test/java/org/apache/activemq/openwire/v6/PartialCommandTest.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Added: activemq/trunk/activemq-core/src/test/java/org/apache/activemq/openwire/v6/ProducerAckTest.java
URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-core/src/test/java/org/apache/activemq/openwire/v6/ProducerAckTest.java?rev=902908&view=auto
==============================================================================
--- activemq/trunk/activemq-core/src/test/java/org/apache/activemq/openwire/v6/ProducerAckTest.java (added)
+++ activemq/trunk/activemq-core/src/test/java/org/apache/activemq/openwire/v6/ProducerAckTest.java Mon Jan 25 18:19:54 2010
@@ -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.v6;
+
+import java.io.DataInputStream;
+import 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/v6/ProducerAckTest.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: activemq/trunk/activemq-core/src/test/java/org/apache/activemq/openwire/v6/ProducerAckTest.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Added: activemq/trunk/activemq-core/src/test/java/org/apache/activemq/openwire/v6/ProducerIdTest.java
URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-core/src/test/java/org/apache/activemq/openwire/v6/ProducerIdTest.java?rev=902908&view=auto
==============================================================================
--- activemq/trunk/activemq-core/src/test/java/org/apache/activemq/openwire/v6/ProducerIdTest.java (added)
+++ activemq/trunk/activemq-core/src/test/java/org/apache/activemq/openwire/v6/ProducerIdTest.java Mon Jan 25 18:19:54 2010
@@ -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.v6;
+
+import java.io.DataInputStream;
+import 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/v6/ProducerIdTest.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: activemq/trunk/activemq-core/src/test/java/org/apache/activemq/openwire/v6/ProducerIdTest.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Added: activemq/trunk/activemq-core/src/test/java/org/apache/activemq/openwire/v6/ProducerInfoTest.java
URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-core/src/test/java/org/apache/activemq/openwire/v6/ProducerInfoTest.java?rev=902908&view=auto
==============================================================================
--- activemq/trunk/activemq-core/src/test/java/org/apache/activemq/openwire/v6/ProducerInfoTest.java (added)
+++ activemq/trunk/activemq-core/src/test/java/org/apache/activemq/openwire/v6/ProducerInfoTest.java Mon Jan 25 18:19:54 2010
@@ -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.v6;
+
+import java.io.DataInputStream;
+import 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/v6/ProducerInfoTest.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: activemq/trunk/activemq-core/src/test/java/org/apache/activemq/openwire/v6/ProducerInfoTest.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Added: activemq/trunk/activemq-core/src/test/java/org/apache/activemq/openwire/v6/RemoveInfoTest.java
URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-core/src/test/java/org/apache/activemq/openwire/v6/RemoveInfoTest.java?rev=902908&view=auto
==============================================================================
--- activemq/trunk/activemq-core/src/test/java/org/apache/activemq/openwire/v6/RemoveInfoTest.java (added)
+++ activemq/trunk/activemq-core/src/test/java/org/apache/activemq/openwire/v6/RemoveInfoTest.java Mon Jan 25 18:19:54 2010
@@ -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.v6;
+
+import java.io.DataInputStream;
+import 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"));
+        info.setLastDeliveredSequenceId(1);
+    }
+}

Propchange: activemq/trunk/activemq-core/src/test/java/org/apache/activemq/openwire/v6/RemoveInfoTest.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: activemq/trunk/activemq-core/src/test/java/org/apache/activemq/openwire/v6/RemoveInfoTest.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Added: activemq/trunk/activemq-core/src/test/java/org/apache/activemq/openwire/v6/RemoveSubscriptionInfoTest.java
URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-core/src/test/java/org/apache/activemq/openwire/v6/RemoveSubscriptionInfoTest.java?rev=902908&view=auto
==============================================================================
--- activemq/trunk/activemq-core/src/test/java/org/apache/activemq/openwire/v6/RemoveSubscriptionInfoTest.java (added)
+++ activemq/trunk/activemq-core/src/test/java/org/apache/activemq/openwire/v6/RemoveSubscriptionInfoTest.java Mon Jan 25 18:19:54 2010
@@ -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.v6;
+
+import java.io.DataInputStream;
+import 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/v6/RemoveSubscriptionInfoTest.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: activemq/trunk/activemq-core/src/test/java/org/apache/activemq/openwire/v6/RemoveSubscriptionInfoTest.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Added: activemq/trunk/activemq-core/src/test/java/org/apache/activemq/openwire/v6/ReplayCommandTest.java
URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-core/src/test/java/org/apache/activemq/openwire/v6/ReplayCommandTest.java?rev=902908&view=auto
==============================================================================
--- activemq/trunk/activemq-core/src/test/java/org/apache/activemq/openwire/v6/ReplayCommandTest.java (added)
+++ activemq/trunk/activemq-core/src/test/java/org/apache/activemq/openwire/v6/ReplayCommandTest.java Mon Jan 25 18:19:54 2010
@@ -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.v6;
+
+import java.io.DataInputStream;
+import 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/v6/ReplayCommandTest.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: activemq/trunk/activemq-core/src/test/java/org/apache/activemq/openwire/v6/ReplayCommandTest.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Added: activemq/trunk/activemq-core/src/test/java/org/apache/activemq/openwire/v6/ResponseTest.java
URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-core/src/test/java/org/apache/activemq/openwire/v6/ResponseTest.java?rev=902908&view=auto
==============================================================================
--- activemq/trunk/activemq-core/src/test/java/org/apache/activemq/openwire/v6/ResponseTest.java (added)
+++ activemq/trunk/activemq-core/src/test/java/org/apache/activemq/openwire/v6/ResponseTest.java Mon Jan 25 18:19:54 2010
@@ -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.v6;
+
+import java.io.DataInputStream;
+import 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/v6/ResponseTest.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: activemq/trunk/activemq-core/src/test/java/org/apache/activemq/openwire/v6/ResponseTest.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Added: activemq/trunk/activemq-core/src/test/java/org/apache/activemq/openwire/v6/SessionIdTest.java
URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-core/src/test/java/org/apache/activemq/openwire/v6/SessionIdTest.java?rev=902908&view=auto
==============================================================================
--- activemq/trunk/activemq-core/src/test/java/org/apache/activemq/openwire/v6/SessionIdTest.java (added)
+++ activemq/trunk/activemq-core/src/test/java/org/apache/activemq/openwire/v6/SessionIdTest.java Mon Jan 25 18:19:54 2010
@@ -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.v6;
+
+import java.io.DataInputStream;
+import 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/v6/SessionIdTest.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: activemq/trunk/activemq-core/src/test/java/org/apache/activemq/openwire/v6/SessionIdTest.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Added: activemq/trunk/activemq-core/src/test/java/org/apache/activemq/openwire/v6/SessionInfoTest.java
URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-core/src/test/java/org/apache/activemq/openwire/v6/SessionInfoTest.java?rev=902908&view=auto
==============================================================================
--- activemq/trunk/activemq-core/src/test/java/org/apache/activemq/openwire/v6/SessionInfoTest.java (added)
+++ activemq/trunk/activemq-core/src/test/java/org/apache/activemq/openwire/v6/SessionInfoTest.java Mon Jan 25 18:19:54 2010
@@ -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.v6;
+
+import java.io.DataInputStream;
+import 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/v6/SessionInfoTest.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: activemq/trunk/activemq-core/src/test/java/org/apache/activemq/openwire/v6/SessionInfoTest.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Added: activemq/trunk/activemq-core/src/test/java/org/apache/activemq/openwire/v6/ShutdownInfoTest.java
URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-core/src/test/java/org/apache/activemq/openwire/v6/ShutdownInfoTest.java?rev=902908&view=auto
==============================================================================
--- activemq/trunk/activemq-core/src/test/java/org/apache/activemq/openwire/v6/ShutdownInfoTest.java (added)
+++ activemq/trunk/activemq-core/src/test/java/org/apache/activemq/openwire/v6/ShutdownInfoTest.java Mon Jan 25 18:19:54 2010
@@ -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.v6;
+
+import java.io.DataInputStream;
+import 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/v6/ShutdownInfoTest.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: activemq/trunk/activemq-core/src/test/java/org/apache/activemq/openwire/v6/ShutdownInfoTest.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Added: activemq/trunk/activemq-core/src/test/java/org/apache/activemq/openwire/v6/SubscriptionInfoTest.java
URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-core/src/test/java/org/apache/activemq/openwire/v6/SubscriptionInfoTest.java?rev=902908&view=auto
==============================================================================
--- activemq/trunk/activemq-core/src/test/java/org/apache/activemq/openwire/v6/SubscriptionInfoTest.java (added)
+++ activemq/trunk/activemq-core/src/test/java/org/apache/activemq/openwire/v6/SubscriptionInfoTest.java Mon Jan 25 18:19:54 2010
@@ -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.v6;
+
+import java.io.DataInputStream;
+import 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/v6/SubscriptionInfoTest.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: activemq/trunk/activemq-core/src/test/java/org/apache/activemq/openwire/v6/SubscriptionInfoTest.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Added: activemq/trunk/activemq-core/src/test/java/org/apache/activemq/openwire/v6/TransactionIdTestSupport.java
URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-core/src/test/java/org/apache/activemq/openwire/v6/TransactionIdTestSupport.java?rev=902908&view=auto
==============================================================================
--- activemq/trunk/activemq-core/src/test/java/org/apache/activemq/openwire/v6/TransactionIdTestSupport.java (added)
+++ activemq/trunk/activemq-core/src/test/java/org/apache/activemq/openwire/v6/TransactionIdTestSupport.java Mon Jan 25 18:19:54 2010
@@ -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.v6;
+
+import java.io.DataInputStream;
+import 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/v6/TransactionIdTestSupport.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: activemq/trunk/activemq-core/src/test/java/org/apache/activemq/openwire/v6/TransactionIdTestSupport.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Added: activemq/trunk/activemq-core/src/test/java/org/apache/activemq/openwire/v6/TransactionInfoTest.java
URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-core/src/test/java/org/apache/activemq/openwire/v6/TransactionInfoTest.java?rev=902908&view=auto
==============================================================================
--- activemq/trunk/activemq-core/src/test/java/org/apache/activemq/openwire/v6/TransactionInfoTest.java (added)
+++ activemq/trunk/activemq-core/src/test/java/org/apache/activemq/openwire/v6/TransactionInfoTest.java Mon Jan 25 18:19:54 2010
@@ -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.v6;
+
+import java.io.DataInputStream;
+import 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/v6/TransactionInfoTest.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: activemq/trunk/activemq-core/src/test/java/org/apache/activemq/openwire/v6/TransactionInfoTest.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Added: activemq/trunk/activemq-core/src/test/java/org/apache/activemq/openwire/v6/XATransactionIdTest.java
URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-core/src/test/java/org/apache/activemq/openwire/v6/XATransactionIdTest.java?rev=902908&view=auto
==============================================================================
--- activemq/trunk/activemq-core/src/test/java/org/apache/activemq/openwire/v6/XATransactionIdTest.java (added)
+++ activemq/trunk/activemq-core/src/test/java/org/apache/activemq/openwire/v6/XATransactionIdTest.java Mon Jan 25 18:19:54 2010
@@ -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.v6;
+
+import java.io.DataInputStream;
+import 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/v6/XATransactionIdTest.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: activemq/trunk/activemq-core/src/test/java/org/apache/activemq/openwire/v6/XATransactionIdTest.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Modified: activemq/trunk/activemq-core/src/test/java/org/apache/activemq/transport/failover/FailoverConsumerOutstandingCommitTest.java
URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-core/src/test/java/org/apache/activemq/transport/failover/FailoverConsumerOutstandingCommitTest.java?rev=902908&r1=902907&r2=902908&view=diff
==============================================================================
--- activemq/trunk/activemq-core/src/test/java/org/apache/activemq/transport/failover/FailoverConsumerOutstandingCommitTest.java (original)
+++ activemq/trunk/activemq-core/src/test/java/org/apache/activemq/transport/failover/FailoverConsumerOutstandingCommitTest.java Mon Jan 25 18:19:54 2010
@@ -23,7 +23,6 @@
 import java.util.concurrent.Executors;
 import java.util.concurrent.TimeUnit;
 
-import javax.jms.Destination;
 import javax.jms.JMSException;
 import javax.jms.Message;
 import javax.jms.MessageConsumer;
@@ -35,19 +34,13 @@
 
 import org.apache.activemq.ActiveMQConnection;
 import org.apache.activemq.ActiveMQConnectionFactory;
-import org.apache.activemq.ActiveMQMessageConsumer;
-import org.apache.activemq.ActiveMQMessageTransformation;
-import org.apache.activemq.ActiveMQSession;
 import org.apache.activemq.broker.BrokerPlugin;
 import org.apache.activemq.broker.BrokerPluginSupport;
 import org.apache.activemq.broker.BrokerService;
 import org.apache.activemq.broker.ConnectionContext;
 import org.apache.activemq.broker.region.policy.PolicyEntry;
 import org.apache.activemq.broker.region.policy.PolicyMap;
-import org.apache.activemq.command.ConsumerId;
-import org.apache.activemq.command.SessionId;
 import org.apache.activemq.command.TransactionId;
-import org.apache.activemq.util.Wait;
 import org.apache.commons.logging.Log;
 import org.apache.commons.logging.LogFactory;
 import org.junit.After;
@@ -138,6 +131,8 @@
 
 
         final CountDownLatch commitDoneLatch = new CountDownLatch(1);
+        final CountDownLatch messagesReceived = new CountDownLatch(2);
+
         final MessageConsumer testConsumer = consumerSession.createConsumer(destination);
         testConsumer.setMessageListener(new MessageListener() {
 
@@ -145,12 +140,14 @@
                 LOG.info("consume one and commit");
                
                 assertNotNull("got message", message);
+               
                 try {
                     consumerSession.commit();
                 } catch (JMSException e) {
                     e.printStackTrace();
                 }
                 commitDoneLatch.countDown();
+                messagesReceived.countDown();
                 LOG.info("done commit");
             }
         });
@@ -163,10 +160,85 @@
         broker.start();
 
         assertTrue("consumer added through failover", commitDoneLatch.await(20, TimeUnit.SECONDS));
-          
+        assertTrue("another message was recieved after failover", messagesReceived.await(20, TimeUnit.SECONDS));
+        
         connection.close();
     }
+
+	@Test
+	public void testFailoverConsumerOutstandingSendTx() throws Exception {
+        final boolean watchTopicAdvisories = true;
+        broker = createBroker(true);
+
+        broker.setPlugins(new BrokerPlugin[] { new BrokerPluginSupport() {
+            @Override
+            public void commitTransaction(ConnectionContext context,
+                    TransactionId xid, boolean onePhase) throws Exception {
+                // so commit will hang as if reply is lost
+                context.setDontSendReponse(true);
+                Executors.newSingleThreadExecutor().execute(new Runnable() {
+                    public void run() {
+                        LOG.info("Stopping broker before commit...");
+                        try {
+                            broker.stop();
+                        } catch (Exception e) {
+                            e.printStackTrace();
+                        }
+                    }
+                });
+            }
+        } });
+        broker.start();
+
+        ActiveMQConnectionFactory cf = new ActiveMQConnectionFactory("failover:(" + url + ")");
+        cf.setWatchTopicAdvisories(watchTopicAdvisories);
+        cf.setDispatchAsync(false);
+
+        final ActiveMQConnection connection = (ActiveMQConnection) cf.createConnection();
+        connection.start();
+
+        final Session producerSession = connection.createSession(false, Session.AUTO_ACKNOWLEDGE);
+        final Queue destination = producerSession.createQueue(QUEUE_NAME
+                + "?jms.consumer.prefetch=" + prefetch);
+
+        final Session consumerSession = connection.createSession(true, Session.SESSION_TRANSACTED);
+
+        final CountDownLatch commitDoneLatch = new CountDownLatch(1);
+        final CountDownLatch messagesReceived = new CountDownLatch(2);
+
+        final MessageConsumer testConsumer = consumerSession.createConsumer(destination);
+        testConsumer.setMessageListener(new MessageListener() {
+
+            public void onMessage(Message message) {
+                LOG.info("consume one and commit");
+
+                assertNotNull("got message", message);
+                try {
+                    produceMessage(consumerSession, destination, 1);
+                    consumerSession.commit();
+                } catch (JMSException e) {
+                    e.printStackTrace();
+                }
+                commitDoneLatch.countDown();
+                messagesReceived.countDown();
+                LOG.info("done commit");
+            }
+        });
+
+        produceMessage(producerSession, destination, prefetch * 2);
+
+        // will be stopped by the plugin
+        broker.waitUntilStopped();
+        broker = createBroker(false);
+        broker.start();
+
+        assertTrue("consumer added through failover", commitDoneLatch.await(20, TimeUnit.SECONDS));
+
+        assertTrue("another message was received after failover", messagesReceived.await(20, TimeUnit.SECONDS));
         
+        connection.close();
+    }
+
     private void produceMessage(final Session producerSession, Queue destination, long count)
         throws JMSException {
         MessageProducer producer = producerSession.createProducer(destination);

Modified: activemq/trunk/activemq-core/src/test/java/org/apache/activemq/transport/tcp/WireformatNegociationTest.java
URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-core/src/test/java/org/apache/activemq/transport/tcp/WireformatNegociationTest.java?rev=902908&r1=902907&r2=902908&view=diff
==============================================================================
--- activemq/trunk/activemq-core/src/test/java/org/apache/activemq/transport/tcp/WireformatNegociationTest.java (original)
+++ activemq/trunk/activemq-core/src/test/java/org/apache/activemq/transport/tcp/WireformatNegociationTest.java Mon Jan 25 18:19:54 2010
@@ -212,10 +212,10 @@
         assertNull("Async error: " + asyncError, asyncError.get());
 
         assertNotNull(clientWF.get());
-        assertEquals(5, clientWF.get().getVersion());
+        assertEquals(CommandTypes.PROTOCOL_VERSION, clientWF.get().getVersion());
 
         assertNotNull(serverWF.get());
-        assertEquals(5, serverWF.get().getVersion());
+        assertEquals(CommandTypes.PROTOCOL_VERSION, serverWF.get().getVersion());
     }
 
 }



Mime
View raw message