activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tab...@apache.org
Subject svn commit: r593609 [2/2] - in /activemq/activemq-cpp/trunk/src/test/activemq/connector/openwire/marshal: v1/ v2/
Date Fri, 09 Nov 2007 17:54:14 GMT
Modified: activemq/activemq-cpp/trunk/src/test/activemq/connector/openwire/marshal/v1/SubscriptionInfoMarshallerTest.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/src/test/activemq/connector/openwire/marshal/v1/SubscriptionInfoMarshallerTest.cpp?rev=593609&r1=593608&r2=593609&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/src/test/activemq/connector/openwire/marshal/v1/SubscriptionInfoMarshallerTest.cpp (original)
+++ activemq/activemq-cpp/trunk/src/test/activemq/connector/openwire/marshal/v1/SubscriptionInfoMarshallerTest.cpp Fri Nov  9 09:54:05 2007
@@ -87,7 +87,7 @@
         marshaller.looseMarshal( &openWireFormat, &outCommand, &dataOut );
 
         // Now read it back in and make sure it's all right.
-        ByteArrayInputStream bais( baos.getByteArray(), baos.getByteArraySize() );
+        ByteArrayInputStream bais( baos.toByteArray(), baos.size() );
         DataInputStream dataIn( &bais );
         unsigned char dataType = dataIn.readByte();
         CPPUNIT_ASSERT( dataType == outCommand.getDataStructureType() );
@@ -133,7 +133,7 @@
         marshaller.tightMarshal2( &openWireFormat, &outCommand, &dataOut, &bs );
 
         // Now read it back in and make sure it's all right.
-        ByteArrayInputStream bais( baos.getByteArray(), baos.getByteArraySize() );
+        ByteArrayInputStream bais( baos.toByteArray(), baos.size() );
         DataInputStream dataIn( &bais );
 
         unsigned char dataType = dataIn.readByte();

Modified: activemq/activemq-cpp/trunk/src/test/activemq/connector/openwire/marshal/v1/TransactionInfoMarshallerTest.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/src/test/activemq/connector/openwire/marshal/v1/TransactionInfoMarshallerTest.cpp?rev=593609&r1=593608&r2=593609&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/src/test/activemq/connector/openwire/marshal/v1/TransactionInfoMarshallerTest.cpp (original)
+++ activemq/activemq-cpp/trunk/src/test/activemq/connector/openwire/marshal/v1/TransactionInfoMarshallerTest.cpp Fri Nov  9 09:54:05 2007
@@ -87,7 +87,7 @@
         marshaller.looseMarshal( &openWireFormat, &outCommand, &dataOut );
 
         // Now read it back in and make sure it's all right.
-        ByteArrayInputStream bais( baos.getByteArray(), baos.getByteArraySize() );
+        ByteArrayInputStream bais( baos.toByteArray(), baos.size() );
         DataInputStream dataIn( &bais );
         unsigned char dataType = dataIn.readByte();
         CPPUNIT_ASSERT( dataType == outCommand.getDataStructureType() );
@@ -133,7 +133,7 @@
         marshaller.tightMarshal2( &openWireFormat, &outCommand, &dataOut, &bs );
 
         // Now read it back in and make sure it's all right.
-        ByteArrayInputStream bais( baos.getByteArray(), baos.getByteArraySize() );
+        ByteArrayInputStream bais( baos.toByteArray(), baos.size() );
         DataInputStream dataIn( &bais );
 
         unsigned char dataType = dataIn.readByte();

Modified: activemq/activemq-cpp/trunk/src/test/activemq/connector/openwire/marshal/v1/WireFormatInfoMarshallerTest.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/src/test/activemq/connector/openwire/marshal/v1/WireFormatInfoMarshallerTest.cpp?rev=593609&r1=593608&r2=593609&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/src/test/activemq/connector/openwire/marshal/v1/WireFormatInfoMarshallerTest.cpp (original)
+++ activemq/activemq-cpp/trunk/src/test/activemq/connector/openwire/marshal/v1/WireFormatInfoMarshallerTest.cpp Fri Nov  9 09:54:05 2007
@@ -87,7 +87,7 @@
         marshaller.looseMarshal( &openWireFormat, &outCommand, &dataOut );
 
         // Now read it back in and make sure it's all right.
-        ByteArrayInputStream bais( baos.getByteArray(), baos.getByteArraySize() );
+        ByteArrayInputStream bais( baos.toByteArray(), baos.size() );
         DataInputStream dataIn( &bais );
         unsigned char dataType = dataIn.readByte();
         CPPUNIT_ASSERT( dataType == outCommand.getDataStructureType() );
@@ -133,7 +133,7 @@
         marshaller.tightMarshal2( &openWireFormat, &outCommand, &dataOut, &bs );
 
         // Now read it back in and make sure it's all right.
-        ByteArrayInputStream bais( baos.getByteArray(), baos.getByteArraySize() );
+        ByteArrayInputStream bais( baos.toByteArray(), baos.size() );
         DataInputStream dataIn( &bais );
 
         unsigned char dataType = dataIn.readByte();

Modified: activemq/activemq-cpp/trunk/src/test/activemq/connector/openwire/marshal/v1/XATransactionIdMarshallerTest.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/src/test/activemq/connector/openwire/marshal/v1/XATransactionIdMarshallerTest.cpp?rev=593609&r1=593608&r2=593609&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/src/test/activemq/connector/openwire/marshal/v1/XATransactionIdMarshallerTest.cpp (original)
+++ activemq/activemq-cpp/trunk/src/test/activemq/connector/openwire/marshal/v1/XATransactionIdMarshallerTest.cpp Fri Nov  9 09:54:05 2007
@@ -87,7 +87,7 @@
         marshaller.looseMarshal( &openWireFormat, &outCommand, &dataOut );
 
         // Now read it back in and make sure it's all right.
-        ByteArrayInputStream bais( baos.getByteArray(), baos.getByteArraySize() );
+        ByteArrayInputStream bais( baos.toByteArray(), baos.size() );
         DataInputStream dataIn( &bais );
         unsigned char dataType = dataIn.readByte();
         CPPUNIT_ASSERT( dataType == outCommand.getDataStructureType() );
@@ -133,7 +133,7 @@
         marshaller.tightMarshal2( &openWireFormat, &outCommand, &dataOut, &bs );
 
         // Now read it back in and make sure it's all right.
-        ByteArrayInputStream bais( baos.getByteArray(), baos.getByteArraySize() );
+        ByteArrayInputStream bais( baos.toByteArray(), baos.size() );
         DataInputStream dataIn( &bais );
 
         unsigned char dataType = dataIn.readByte();

Modified: activemq/activemq-cpp/trunk/src/test/activemq/connector/openwire/marshal/v2/ActiveMQBytesMessageMarshallerTest.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/src/test/activemq/connector/openwire/marshal/v2/ActiveMQBytesMessageMarshallerTest.cpp?rev=593609&r1=593608&r2=593609&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/src/test/activemq/connector/openwire/marshal/v2/ActiveMQBytesMessageMarshallerTest.cpp (original)
+++ activemq/activemq-cpp/trunk/src/test/activemq/connector/openwire/marshal/v2/ActiveMQBytesMessageMarshallerTest.cpp Fri Nov  9 09:54:05 2007
@@ -87,7 +87,7 @@
         marshaller.looseMarshal( &openWireFormat, &outCommand, &dataOut );
 
         // Now read it back in and make sure it's all right.
-        ByteArrayInputStream bais( baos.getByteArray(), baos.getByteArraySize() );
+        ByteArrayInputStream bais( baos.toByteArray(), baos.size() );
         DataInputStream dataIn( &bais );
         unsigned char dataType = dataIn.readByte();
         CPPUNIT_ASSERT( dataType == outCommand.getDataStructureType() );
@@ -133,7 +133,7 @@
         marshaller.tightMarshal2( &openWireFormat, &outCommand, &dataOut, &bs );
 
         // Now read it back in and make sure it's all right.
-        ByteArrayInputStream bais( baos.getByteArray(), baos.getByteArraySize() );
+        ByteArrayInputStream bais( baos.toByteArray(), baos.size() );
         DataInputStream dataIn( &bais );
 
         unsigned char dataType = dataIn.readByte();

Modified: activemq/activemq-cpp/trunk/src/test/activemq/connector/openwire/marshal/v2/ActiveMQMapMessageMarshallerTest.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/src/test/activemq/connector/openwire/marshal/v2/ActiveMQMapMessageMarshallerTest.cpp?rev=593609&r1=593608&r2=593609&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/src/test/activemq/connector/openwire/marshal/v2/ActiveMQMapMessageMarshallerTest.cpp (original)
+++ activemq/activemq-cpp/trunk/src/test/activemq/connector/openwire/marshal/v2/ActiveMQMapMessageMarshallerTest.cpp Fri Nov  9 09:54:05 2007
@@ -87,7 +87,7 @@
         marshaller.looseMarshal( &openWireFormat, &outCommand, &dataOut );
 
         // Now read it back in and make sure it's all right.
-        ByteArrayInputStream bais( baos.getByteArray(), baos.getByteArraySize() );
+        ByteArrayInputStream bais( baos.toByteArray(), baos.size() );
         DataInputStream dataIn( &bais );
         unsigned char dataType = dataIn.readByte();
         CPPUNIT_ASSERT( dataType == outCommand.getDataStructureType() );
@@ -133,7 +133,7 @@
         marshaller.tightMarshal2( &openWireFormat, &outCommand, &dataOut, &bs );
 
         // Now read it back in and make sure it's all right.
-        ByteArrayInputStream bais( baos.getByteArray(), baos.getByteArraySize() );
+        ByteArrayInputStream bais( baos.toByteArray(), baos.size() );
         DataInputStream dataIn( &bais );
 
         unsigned char dataType = dataIn.readByte();

Modified: activemq/activemq-cpp/trunk/src/test/activemq/connector/openwire/marshal/v2/ActiveMQMessageMarshallerTest.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/src/test/activemq/connector/openwire/marshal/v2/ActiveMQMessageMarshallerTest.cpp?rev=593609&r1=593608&r2=593609&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/src/test/activemq/connector/openwire/marshal/v2/ActiveMQMessageMarshallerTest.cpp (original)
+++ activemq/activemq-cpp/trunk/src/test/activemq/connector/openwire/marshal/v2/ActiveMQMessageMarshallerTest.cpp Fri Nov  9 09:54:05 2007
@@ -87,7 +87,7 @@
         marshaller.looseMarshal( &openWireFormat, &outCommand, &dataOut );
 
         // Now read it back in and make sure it's all right.
-        ByteArrayInputStream bais( baos.getByteArray(), baos.getByteArraySize() );
+        ByteArrayInputStream bais( baos.toByteArray(), baos.size() );
         DataInputStream dataIn( &bais );
         unsigned char dataType = dataIn.readByte();
         CPPUNIT_ASSERT( dataType == outCommand.getDataStructureType() );
@@ -133,7 +133,7 @@
         marshaller.tightMarshal2( &openWireFormat, &outCommand, &dataOut, &bs );
 
         // Now read it back in and make sure it's all right.
-        ByteArrayInputStream bais( baos.getByteArray(), baos.getByteArraySize() );
+        ByteArrayInputStream bais( baos.toByteArray(), baos.size() );
         DataInputStream dataIn( &bais );
 
         unsigned char dataType = dataIn.readByte();

Modified: activemq/activemq-cpp/trunk/src/test/activemq/connector/openwire/marshal/v2/ActiveMQObjectMessageMarshallerTest.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/src/test/activemq/connector/openwire/marshal/v2/ActiveMQObjectMessageMarshallerTest.cpp?rev=593609&r1=593608&r2=593609&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/src/test/activemq/connector/openwire/marshal/v2/ActiveMQObjectMessageMarshallerTest.cpp (original)
+++ activemq/activemq-cpp/trunk/src/test/activemq/connector/openwire/marshal/v2/ActiveMQObjectMessageMarshallerTest.cpp Fri Nov  9 09:54:05 2007
@@ -87,7 +87,7 @@
         marshaller.looseMarshal( &openWireFormat, &outCommand, &dataOut );
 
         // Now read it back in and make sure it's all right.
-        ByteArrayInputStream bais( baos.getByteArray(), baos.getByteArraySize() );
+        ByteArrayInputStream bais( baos.toByteArray(), baos.size() );
         DataInputStream dataIn( &bais );
         unsigned char dataType = dataIn.readByte();
         CPPUNIT_ASSERT( dataType == outCommand.getDataStructureType() );
@@ -133,7 +133,7 @@
         marshaller.tightMarshal2( &openWireFormat, &outCommand, &dataOut, &bs );
 
         // Now read it back in and make sure it's all right.
-        ByteArrayInputStream bais( baos.getByteArray(), baos.getByteArraySize() );
+        ByteArrayInputStream bais( baos.toByteArray(), baos.size() );
         DataInputStream dataIn( &bais );
 
         unsigned char dataType = dataIn.readByte();

Modified: activemq/activemq-cpp/trunk/src/test/activemq/connector/openwire/marshal/v2/ActiveMQQueueMarshallerTest.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/src/test/activemq/connector/openwire/marshal/v2/ActiveMQQueueMarshallerTest.cpp?rev=593609&r1=593608&r2=593609&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/src/test/activemq/connector/openwire/marshal/v2/ActiveMQQueueMarshallerTest.cpp (original)
+++ activemq/activemq-cpp/trunk/src/test/activemq/connector/openwire/marshal/v2/ActiveMQQueueMarshallerTest.cpp Fri Nov  9 09:54:05 2007
@@ -87,7 +87,7 @@
         marshaller.looseMarshal( &openWireFormat, &outCommand, &dataOut );
 
         // Now read it back in and make sure it's all right.
-        ByteArrayInputStream bais( baos.getByteArray(), baos.getByteArraySize() );
+        ByteArrayInputStream bais( baos.toByteArray(), baos.size() );
         DataInputStream dataIn( &bais );
         unsigned char dataType = dataIn.readByte();
         CPPUNIT_ASSERT( dataType == outCommand.getDataStructureType() );
@@ -133,7 +133,7 @@
         marshaller.tightMarshal2( &openWireFormat, &outCommand, &dataOut, &bs );
 
         // Now read it back in and make sure it's all right.
-        ByteArrayInputStream bais( baos.getByteArray(), baos.getByteArraySize() );
+        ByteArrayInputStream bais( baos.toByteArray(), baos.size() );
         DataInputStream dataIn( &bais );
 
         unsigned char dataType = dataIn.readByte();

Modified: activemq/activemq-cpp/trunk/src/test/activemq/connector/openwire/marshal/v2/ActiveMQStreamMessageMarshallerTest.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/src/test/activemq/connector/openwire/marshal/v2/ActiveMQStreamMessageMarshallerTest.cpp?rev=593609&r1=593608&r2=593609&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/src/test/activemq/connector/openwire/marshal/v2/ActiveMQStreamMessageMarshallerTest.cpp (original)
+++ activemq/activemq-cpp/trunk/src/test/activemq/connector/openwire/marshal/v2/ActiveMQStreamMessageMarshallerTest.cpp Fri Nov  9 09:54:05 2007
@@ -87,7 +87,7 @@
         marshaller.looseMarshal( &openWireFormat, &outCommand, &dataOut );
 
         // Now read it back in and make sure it's all right.
-        ByteArrayInputStream bais( baos.getByteArray(), baos.getByteArraySize() );
+        ByteArrayInputStream bais( baos.toByteArray(), baos.size() );
         DataInputStream dataIn( &bais );
         unsigned char dataType = dataIn.readByte();
         CPPUNIT_ASSERT( dataType == outCommand.getDataStructureType() );
@@ -133,7 +133,7 @@
         marshaller.tightMarshal2( &openWireFormat, &outCommand, &dataOut, &bs );
 
         // Now read it back in and make sure it's all right.
-        ByteArrayInputStream bais( baos.getByteArray(), baos.getByteArraySize() );
+        ByteArrayInputStream bais( baos.toByteArray(), baos.size() );
         DataInputStream dataIn( &bais );
 
         unsigned char dataType = dataIn.readByte();

Modified: activemq/activemq-cpp/trunk/src/test/activemq/connector/openwire/marshal/v2/ActiveMQTempQueueMarshallerTest.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/src/test/activemq/connector/openwire/marshal/v2/ActiveMQTempQueueMarshallerTest.cpp?rev=593609&r1=593608&r2=593609&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/src/test/activemq/connector/openwire/marshal/v2/ActiveMQTempQueueMarshallerTest.cpp (original)
+++ activemq/activemq-cpp/trunk/src/test/activemq/connector/openwire/marshal/v2/ActiveMQTempQueueMarshallerTest.cpp Fri Nov  9 09:54:05 2007
@@ -87,7 +87,7 @@
         marshaller.looseMarshal( &openWireFormat, &outCommand, &dataOut );
 
         // Now read it back in and make sure it's all right.
-        ByteArrayInputStream bais( baos.getByteArray(), baos.getByteArraySize() );
+        ByteArrayInputStream bais( baos.toByteArray(), baos.size() );
         DataInputStream dataIn( &bais );
         unsigned char dataType = dataIn.readByte();
         CPPUNIT_ASSERT( dataType == outCommand.getDataStructureType() );
@@ -133,7 +133,7 @@
         marshaller.tightMarshal2( &openWireFormat, &outCommand, &dataOut, &bs );
 
         // Now read it back in and make sure it's all right.
-        ByteArrayInputStream bais( baos.getByteArray(), baos.getByteArraySize() );
+        ByteArrayInputStream bais( baos.toByteArray(), baos.size() );
         DataInputStream dataIn( &bais );
 
         unsigned char dataType = dataIn.readByte();

Modified: activemq/activemq-cpp/trunk/src/test/activemq/connector/openwire/marshal/v2/ActiveMQTempTopicMarshallerTest.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/src/test/activemq/connector/openwire/marshal/v2/ActiveMQTempTopicMarshallerTest.cpp?rev=593609&r1=593608&r2=593609&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/src/test/activemq/connector/openwire/marshal/v2/ActiveMQTempTopicMarshallerTest.cpp (original)
+++ activemq/activemq-cpp/trunk/src/test/activemq/connector/openwire/marshal/v2/ActiveMQTempTopicMarshallerTest.cpp Fri Nov  9 09:54:05 2007
@@ -87,7 +87,7 @@
         marshaller.looseMarshal( &openWireFormat, &outCommand, &dataOut );
 
         // Now read it back in and make sure it's all right.
-        ByteArrayInputStream bais( baos.getByteArray(), baos.getByteArraySize() );
+        ByteArrayInputStream bais( baos.toByteArray(), baos.size() );
         DataInputStream dataIn( &bais );
         unsigned char dataType = dataIn.readByte();
         CPPUNIT_ASSERT( dataType == outCommand.getDataStructureType() );
@@ -133,7 +133,7 @@
         marshaller.tightMarshal2( &openWireFormat, &outCommand, &dataOut, &bs );
 
         // Now read it back in and make sure it's all right.
-        ByteArrayInputStream bais( baos.getByteArray(), baos.getByteArraySize() );
+        ByteArrayInputStream bais( baos.toByteArray(), baos.size() );
         DataInputStream dataIn( &bais );
 
         unsigned char dataType = dataIn.readByte();

Modified: activemq/activemq-cpp/trunk/src/test/activemq/connector/openwire/marshal/v2/ActiveMQTextMessageMarshallerTest.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/src/test/activemq/connector/openwire/marshal/v2/ActiveMQTextMessageMarshallerTest.cpp?rev=593609&r1=593608&r2=593609&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/src/test/activemq/connector/openwire/marshal/v2/ActiveMQTextMessageMarshallerTest.cpp (original)
+++ activemq/activemq-cpp/trunk/src/test/activemq/connector/openwire/marshal/v2/ActiveMQTextMessageMarshallerTest.cpp Fri Nov  9 09:54:05 2007
@@ -87,7 +87,7 @@
         marshaller.looseMarshal( &openWireFormat, &outCommand, &dataOut );
 
         // Now read it back in and make sure it's all right.
-        ByteArrayInputStream bais( baos.getByteArray(), baos.getByteArraySize() );
+        ByteArrayInputStream bais( baos.toByteArray(), baos.size() );
         DataInputStream dataIn( &bais );
         unsigned char dataType = dataIn.readByte();
         CPPUNIT_ASSERT( dataType == outCommand.getDataStructureType() );
@@ -133,7 +133,7 @@
         marshaller.tightMarshal2( &openWireFormat, &outCommand, &dataOut, &bs );
 
         // Now read it back in and make sure it's all right.
-        ByteArrayInputStream bais( baos.getByteArray(), baos.getByteArraySize() );
+        ByteArrayInputStream bais( baos.toByteArray(), baos.size() );
         DataInputStream dataIn( &bais );
 
         unsigned char dataType = dataIn.readByte();

Modified: activemq/activemq-cpp/trunk/src/test/activemq/connector/openwire/marshal/v2/ActiveMQTopicMarshallerTest.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/src/test/activemq/connector/openwire/marshal/v2/ActiveMQTopicMarshallerTest.cpp?rev=593609&r1=593608&r2=593609&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/src/test/activemq/connector/openwire/marshal/v2/ActiveMQTopicMarshallerTest.cpp (original)
+++ activemq/activemq-cpp/trunk/src/test/activemq/connector/openwire/marshal/v2/ActiveMQTopicMarshallerTest.cpp Fri Nov  9 09:54:05 2007
@@ -87,7 +87,7 @@
         marshaller.looseMarshal( &openWireFormat, &outCommand, &dataOut );
 
         // Now read it back in and make sure it's all right.
-        ByteArrayInputStream bais( baos.getByteArray(), baos.getByteArraySize() );
+        ByteArrayInputStream bais( baos.toByteArray(), baos.size() );
         DataInputStream dataIn( &bais );
         unsigned char dataType = dataIn.readByte();
         CPPUNIT_ASSERT( dataType == outCommand.getDataStructureType() );
@@ -133,7 +133,7 @@
         marshaller.tightMarshal2( &openWireFormat, &outCommand, &dataOut, &bs );
 
         // Now read it back in and make sure it's all right.
-        ByteArrayInputStream bais( baos.getByteArray(), baos.getByteArraySize() );
+        ByteArrayInputStream bais( baos.toByteArray(), baos.size() );
         DataInputStream dataIn( &bais );
 
         unsigned char dataType = dataIn.readByte();

Modified: activemq/activemq-cpp/trunk/src/test/activemq/connector/openwire/marshal/v2/BrokerIdMarshallerTest.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/src/test/activemq/connector/openwire/marshal/v2/BrokerIdMarshallerTest.cpp?rev=593609&r1=593608&r2=593609&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/src/test/activemq/connector/openwire/marshal/v2/BrokerIdMarshallerTest.cpp (original)
+++ activemq/activemq-cpp/trunk/src/test/activemq/connector/openwire/marshal/v2/BrokerIdMarshallerTest.cpp Fri Nov  9 09:54:05 2007
@@ -87,7 +87,7 @@
         marshaller.looseMarshal( &openWireFormat, &outCommand, &dataOut );
 
         // Now read it back in and make sure it's all right.
-        ByteArrayInputStream bais( baos.getByteArray(), baos.getByteArraySize() );
+        ByteArrayInputStream bais( baos.toByteArray(), baos.size() );
         DataInputStream dataIn( &bais );
         unsigned char dataType = dataIn.readByte();
         CPPUNIT_ASSERT( dataType == outCommand.getDataStructureType() );
@@ -133,7 +133,7 @@
         marshaller.tightMarshal2( &openWireFormat, &outCommand, &dataOut, &bs );
 
         // Now read it back in and make sure it's all right.
-        ByteArrayInputStream bais( baos.getByteArray(), baos.getByteArraySize() );
+        ByteArrayInputStream bais( baos.toByteArray(), baos.size() );
         DataInputStream dataIn( &bais );
 
         unsigned char dataType = dataIn.readByte();

Modified: activemq/activemq-cpp/trunk/src/test/activemq/connector/openwire/marshal/v2/BrokerInfoMarshallerTest.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/src/test/activemq/connector/openwire/marshal/v2/BrokerInfoMarshallerTest.cpp?rev=593609&r1=593608&r2=593609&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/src/test/activemq/connector/openwire/marshal/v2/BrokerInfoMarshallerTest.cpp (original)
+++ activemq/activemq-cpp/trunk/src/test/activemq/connector/openwire/marshal/v2/BrokerInfoMarshallerTest.cpp Fri Nov  9 09:54:05 2007
@@ -87,7 +87,7 @@
         marshaller.looseMarshal( &openWireFormat, &outCommand, &dataOut );
 
         // Now read it back in and make sure it's all right.
-        ByteArrayInputStream bais( baos.getByteArray(), baos.getByteArraySize() );
+        ByteArrayInputStream bais( baos.toByteArray(), baos.size() );
         DataInputStream dataIn( &bais );
         unsigned char dataType = dataIn.readByte();
         CPPUNIT_ASSERT( dataType == outCommand.getDataStructureType() );
@@ -133,7 +133,7 @@
         marshaller.tightMarshal2( &openWireFormat, &outCommand, &dataOut, &bs );
 
         // Now read it back in and make sure it's all right.
-        ByteArrayInputStream bais( baos.getByteArray(), baos.getByteArraySize() );
+        ByteArrayInputStream bais( baos.toByteArray(), baos.size() );
         DataInputStream dataIn( &bais );
 
         unsigned char dataType = dataIn.readByte();

Modified: activemq/activemq-cpp/trunk/src/test/activemq/connector/openwire/marshal/v2/ConnectionControlMarshallerTest.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/src/test/activemq/connector/openwire/marshal/v2/ConnectionControlMarshallerTest.cpp?rev=593609&r1=593608&r2=593609&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/src/test/activemq/connector/openwire/marshal/v2/ConnectionControlMarshallerTest.cpp (original)
+++ activemq/activemq-cpp/trunk/src/test/activemq/connector/openwire/marshal/v2/ConnectionControlMarshallerTest.cpp Fri Nov  9 09:54:05 2007
@@ -87,7 +87,7 @@
         marshaller.looseMarshal( &openWireFormat, &outCommand, &dataOut );
 
         // Now read it back in and make sure it's all right.
-        ByteArrayInputStream bais( baos.getByteArray(), baos.getByteArraySize() );
+        ByteArrayInputStream bais( baos.toByteArray(), baos.size() );
         DataInputStream dataIn( &bais );
         unsigned char dataType = dataIn.readByte();
         CPPUNIT_ASSERT( dataType == outCommand.getDataStructureType() );
@@ -133,7 +133,7 @@
         marshaller.tightMarshal2( &openWireFormat, &outCommand, &dataOut, &bs );
 
         // Now read it back in and make sure it's all right.
-        ByteArrayInputStream bais( baos.getByteArray(), baos.getByteArraySize() );
+        ByteArrayInputStream bais( baos.toByteArray(), baos.size() );
         DataInputStream dataIn( &bais );
 
         unsigned char dataType = dataIn.readByte();

Modified: activemq/activemq-cpp/trunk/src/test/activemq/connector/openwire/marshal/v2/ConnectionErrorMarshallerTest.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/src/test/activemq/connector/openwire/marshal/v2/ConnectionErrorMarshallerTest.cpp?rev=593609&r1=593608&r2=593609&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/src/test/activemq/connector/openwire/marshal/v2/ConnectionErrorMarshallerTest.cpp (original)
+++ activemq/activemq-cpp/trunk/src/test/activemq/connector/openwire/marshal/v2/ConnectionErrorMarshallerTest.cpp Fri Nov  9 09:54:05 2007
@@ -87,7 +87,7 @@
         marshaller.looseMarshal( &openWireFormat, &outCommand, &dataOut );
 
         // Now read it back in and make sure it's all right.
-        ByteArrayInputStream bais( baos.getByteArray(), baos.getByteArraySize() );
+        ByteArrayInputStream bais( baos.toByteArray(), baos.size() );
         DataInputStream dataIn( &bais );
         unsigned char dataType = dataIn.readByte();
         CPPUNIT_ASSERT( dataType == outCommand.getDataStructureType() );
@@ -133,7 +133,7 @@
         marshaller.tightMarshal2( &openWireFormat, &outCommand, &dataOut, &bs );
 
         // Now read it back in and make sure it's all right.
-        ByteArrayInputStream bais( baos.getByteArray(), baos.getByteArraySize() );
+        ByteArrayInputStream bais( baos.toByteArray(), baos.size() );
         DataInputStream dataIn( &bais );
 
         unsigned char dataType = dataIn.readByte();

Modified: activemq/activemq-cpp/trunk/src/test/activemq/connector/openwire/marshal/v2/ConnectionIdMarshallerTest.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/src/test/activemq/connector/openwire/marshal/v2/ConnectionIdMarshallerTest.cpp?rev=593609&r1=593608&r2=593609&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/src/test/activemq/connector/openwire/marshal/v2/ConnectionIdMarshallerTest.cpp (original)
+++ activemq/activemq-cpp/trunk/src/test/activemq/connector/openwire/marshal/v2/ConnectionIdMarshallerTest.cpp Fri Nov  9 09:54:05 2007
@@ -87,7 +87,7 @@
         marshaller.looseMarshal( &openWireFormat, &outCommand, &dataOut );
 
         // Now read it back in and make sure it's all right.
-        ByteArrayInputStream bais( baos.getByteArray(), baos.getByteArraySize() );
+        ByteArrayInputStream bais( baos.toByteArray(), baos.size() );
         DataInputStream dataIn( &bais );
         unsigned char dataType = dataIn.readByte();
         CPPUNIT_ASSERT( dataType == outCommand.getDataStructureType() );
@@ -133,7 +133,7 @@
         marshaller.tightMarshal2( &openWireFormat, &outCommand, &dataOut, &bs );
 
         // Now read it back in and make sure it's all right.
-        ByteArrayInputStream bais( baos.getByteArray(), baos.getByteArraySize() );
+        ByteArrayInputStream bais( baos.toByteArray(), baos.size() );
         DataInputStream dataIn( &bais );
 
         unsigned char dataType = dataIn.readByte();

Modified: activemq/activemq-cpp/trunk/src/test/activemq/connector/openwire/marshal/v2/ConnectionInfoMarshallerTest.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/src/test/activemq/connector/openwire/marshal/v2/ConnectionInfoMarshallerTest.cpp?rev=593609&r1=593608&r2=593609&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/src/test/activemq/connector/openwire/marshal/v2/ConnectionInfoMarshallerTest.cpp (original)
+++ activemq/activemq-cpp/trunk/src/test/activemq/connector/openwire/marshal/v2/ConnectionInfoMarshallerTest.cpp Fri Nov  9 09:54:05 2007
@@ -87,7 +87,7 @@
         marshaller.looseMarshal( &openWireFormat, &outCommand, &dataOut );
 
         // Now read it back in and make sure it's all right.
-        ByteArrayInputStream bais( baos.getByteArray(), baos.getByteArraySize() );
+        ByteArrayInputStream bais( baos.toByteArray(), baos.size() );
         DataInputStream dataIn( &bais );
         unsigned char dataType = dataIn.readByte();
         CPPUNIT_ASSERT( dataType == outCommand.getDataStructureType() );
@@ -133,7 +133,7 @@
         marshaller.tightMarshal2( &openWireFormat, &outCommand, &dataOut, &bs );
 
         // Now read it back in and make sure it's all right.
-        ByteArrayInputStream bais( baos.getByteArray(), baos.getByteArraySize() );
+        ByteArrayInputStream bais( baos.toByteArray(), baos.size() );
         DataInputStream dataIn( &bais );
 
         unsigned char dataType = dataIn.readByte();

Modified: activemq/activemq-cpp/trunk/src/test/activemq/connector/openwire/marshal/v2/ConsumerControlMarshallerTest.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/src/test/activemq/connector/openwire/marshal/v2/ConsumerControlMarshallerTest.cpp?rev=593609&r1=593608&r2=593609&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/src/test/activemq/connector/openwire/marshal/v2/ConsumerControlMarshallerTest.cpp (original)
+++ activemq/activemq-cpp/trunk/src/test/activemq/connector/openwire/marshal/v2/ConsumerControlMarshallerTest.cpp Fri Nov  9 09:54:05 2007
@@ -87,7 +87,7 @@
         marshaller.looseMarshal( &openWireFormat, &outCommand, &dataOut );
 
         // Now read it back in and make sure it's all right.
-        ByteArrayInputStream bais( baos.getByteArray(), baos.getByteArraySize() );
+        ByteArrayInputStream bais( baos.toByteArray(), baos.size() );
         DataInputStream dataIn( &bais );
         unsigned char dataType = dataIn.readByte();
         CPPUNIT_ASSERT( dataType == outCommand.getDataStructureType() );
@@ -133,7 +133,7 @@
         marshaller.tightMarshal2( &openWireFormat, &outCommand, &dataOut, &bs );
 
         // Now read it back in and make sure it's all right.
-        ByteArrayInputStream bais( baos.getByteArray(), baos.getByteArraySize() );
+        ByteArrayInputStream bais( baos.toByteArray(), baos.size() );
         DataInputStream dataIn( &bais );
 
         unsigned char dataType = dataIn.readByte();

Modified: activemq/activemq-cpp/trunk/src/test/activemq/connector/openwire/marshal/v2/ConsumerIdMarshallerTest.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/src/test/activemq/connector/openwire/marshal/v2/ConsumerIdMarshallerTest.cpp?rev=593609&r1=593608&r2=593609&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/src/test/activemq/connector/openwire/marshal/v2/ConsumerIdMarshallerTest.cpp (original)
+++ activemq/activemq-cpp/trunk/src/test/activemq/connector/openwire/marshal/v2/ConsumerIdMarshallerTest.cpp Fri Nov  9 09:54:05 2007
@@ -87,7 +87,7 @@
         marshaller.looseMarshal( &openWireFormat, &outCommand, &dataOut );
 
         // Now read it back in and make sure it's all right.
-        ByteArrayInputStream bais( baos.getByteArray(), baos.getByteArraySize() );
+        ByteArrayInputStream bais( baos.toByteArray(), baos.size() );
         DataInputStream dataIn( &bais );
         unsigned char dataType = dataIn.readByte();
         CPPUNIT_ASSERT( dataType == outCommand.getDataStructureType() );
@@ -133,7 +133,7 @@
         marshaller.tightMarshal2( &openWireFormat, &outCommand, &dataOut, &bs );
 
         // Now read it back in and make sure it's all right.
-        ByteArrayInputStream bais( baos.getByteArray(), baos.getByteArraySize() );
+        ByteArrayInputStream bais( baos.toByteArray(), baos.size() );
         DataInputStream dataIn( &bais );
 
         unsigned char dataType = dataIn.readByte();

Modified: activemq/activemq-cpp/trunk/src/test/activemq/connector/openwire/marshal/v2/ConsumerInfoMarshallerTest.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/src/test/activemq/connector/openwire/marshal/v2/ConsumerInfoMarshallerTest.cpp?rev=593609&r1=593608&r2=593609&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/src/test/activemq/connector/openwire/marshal/v2/ConsumerInfoMarshallerTest.cpp (original)
+++ activemq/activemq-cpp/trunk/src/test/activemq/connector/openwire/marshal/v2/ConsumerInfoMarshallerTest.cpp Fri Nov  9 09:54:05 2007
@@ -87,7 +87,7 @@
         marshaller.looseMarshal( &openWireFormat, &outCommand, &dataOut );
 
         // Now read it back in and make sure it's all right.
-        ByteArrayInputStream bais( baos.getByteArray(), baos.getByteArraySize() );
+        ByteArrayInputStream bais( baos.toByteArray(), baos.size() );
         DataInputStream dataIn( &bais );
         unsigned char dataType = dataIn.readByte();
         CPPUNIT_ASSERT( dataType == outCommand.getDataStructureType() );
@@ -133,7 +133,7 @@
         marshaller.tightMarshal2( &openWireFormat, &outCommand, &dataOut, &bs );
 
         // Now read it back in and make sure it's all right.
-        ByteArrayInputStream bais( baos.getByteArray(), baos.getByteArraySize() );
+        ByteArrayInputStream bais( baos.toByteArray(), baos.size() );
         DataInputStream dataIn( &bais );
 
         unsigned char dataType = dataIn.readByte();

Modified: activemq/activemq-cpp/trunk/src/test/activemq/connector/openwire/marshal/v2/ControlCommandMarshallerTest.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/src/test/activemq/connector/openwire/marshal/v2/ControlCommandMarshallerTest.cpp?rev=593609&r1=593608&r2=593609&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/src/test/activemq/connector/openwire/marshal/v2/ControlCommandMarshallerTest.cpp (original)
+++ activemq/activemq-cpp/trunk/src/test/activemq/connector/openwire/marshal/v2/ControlCommandMarshallerTest.cpp Fri Nov  9 09:54:05 2007
@@ -87,7 +87,7 @@
         marshaller.looseMarshal( &openWireFormat, &outCommand, &dataOut );
 
         // Now read it back in and make sure it's all right.
-        ByteArrayInputStream bais( baos.getByteArray(), baos.getByteArraySize() );
+        ByteArrayInputStream bais( baos.toByteArray(), baos.size() );
         DataInputStream dataIn( &bais );
         unsigned char dataType = dataIn.readByte();
         CPPUNIT_ASSERT( dataType == outCommand.getDataStructureType() );
@@ -133,7 +133,7 @@
         marshaller.tightMarshal2( &openWireFormat, &outCommand, &dataOut, &bs );
 
         // Now read it back in and make sure it's all right.
-        ByteArrayInputStream bais( baos.getByteArray(), baos.getByteArraySize() );
+        ByteArrayInputStream bais( baos.toByteArray(), baos.size() );
         DataInputStream dataIn( &bais );
 
         unsigned char dataType = dataIn.readByte();

Modified: activemq/activemq-cpp/trunk/src/test/activemq/connector/openwire/marshal/v2/DataArrayResponseMarshallerTest.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/src/test/activemq/connector/openwire/marshal/v2/DataArrayResponseMarshallerTest.cpp?rev=593609&r1=593608&r2=593609&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/src/test/activemq/connector/openwire/marshal/v2/DataArrayResponseMarshallerTest.cpp (original)
+++ activemq/activemq-cpp/trunk/src/test/activemq/connector/openwire/marshal/v2/DataArrayResponseMarshallerTest.cpp Fri Nov  9 09:54:05 2007
@@ -87,7 +87,7 @@
         marshaller.looseMarshal( &openWireFormat, &outCommand, &dataOut );
 
         // Now read it back in and make sure it's all right.
-        ByteArrayInputStream bais( baos.getByteArray(), baos.getByteArraySize() );
+        ByteArrayInputStream bais( baos.toByteArray(), baos.size() );
         DataInputStream dataIn( &bais );
         unsigned char dataType = dataIn.readByte();
         CPPUNIT_ASSERT( dataType == outCommand.getDataStructureType() );
@@ -133,7 +133,7 @@
         marshaller.tightMarshal2( &openWireFormat, &outCommand, &dataOut, &bs );
 
         // Now read it back in and make sure it's all right.
-        ByteArrayInputStream bais( baos.getByteArray(), baos.getByteArraySize() );
+        ByteArrayInputStream bais( baos.toByteArray(), baos.size() );
         DataInputStream dataIn( &bais );
 
         unsigned char dataType = dataIn.readByte();

Modified: activemq/activemq-cpp/trunk/src/test/activemq/connector/openwire/marshal/v2/DataResponseMarshallerTest.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/src/test/activemq/connector/openwire/marshal/v2/DataResponseMarshallerTest.cpp?rev=593609&r1=593608&r2=593609&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/src/test/activemq/connector/openwire/marshal/v2/DataResponseMarshallerTest.cpp (original)
+++ activemq/activemq-cpp/trunk/src/test/activemq/connector/openwire/marshal/v2/DataResponseMarshallerTest.cpp Fri Nov  9 09:54:05 2007
@@ -87,7 +87,7 @@
         marshaller.looseMarshal( &openWireFormat, &outCommand, &dataOut );
 
         // Now read it back in and make sure it's all right.
-        ByteArrayInputStream bais( baos.getByteArray(), baos.getByteArraySize() );
+        ByteArrayInputStream bais( baos.toByteArray(), baos.size() );
         DataInputStream dataIn( &bais );
         unsigned char dataType = dataIn.readByte();
         CPPUNIT_ASSERT( dataType == outCommand.getDataStructureType() );
@@ -133,7 +133,7 @@
         marshaller.tightMarshal2( &openWireFormat, &outCommand, &dataOut, &bs );
 
         // Now read it back in and make sure it's all right.
-        ByteArrayInputStream bais( baos.getByteArray(), baos.getByteArraySize() );
+        ByteArrayInputStream bais( baos.toByteArray(), baos.size() );
         DataInputStream dataIn( &bais );
 
         unsigned char dataType = dataIn.readByte();

Modified: activemq/activemq-cpp/trunk/src/test/activemq/connector/openwire/marshal/v2/DestinationInfoMarshallerTest.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/src/test/activemq/connector/openwire/marshal/v2/DestinationInfoMarshallerTest.cpp?rev=593609&r1=593608&r2=593609&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/src/test/activemq/connector/openwire/marshal/v2/DestinationInfoMarshallerTest.cpp (original)
+++ activemq/activemq-cpp/trunk/src/test/activemq/connector/openwire/marshal/v2/DestinationInfoMarshallerTest.cpp Fri Nov  9 09:54:05 2007
@@ -87,7 +87,7 @@
         marshaller.looseMarshal( &openWireFormat, &outCommand, &dataOut );
 
         // Now read it back in and make sure it's all right.
-        ByteArrayInputStream bais( baos.getByteArray(), baos.getByteArraySize() );
+        ByteArrayInputStream bais( baos.toByteArray(), baos.size() );
         DataInputStream dataIn( &bais );
         unsigned char dataType = dataIn.readByte();
         CPPUNIT_ASSERT( dataType == outCommand.getDataStructureType() );
@@ -133,7 +133,7 @@
         marshaller.tightMarshal2( &openWireFormat, &outCommand, &dataOut, &bs );
 
         // Now read it back in and make sure it's all right.
-        ByteArrayInputStream bais( baos.getByteArray(), baos.getByteArraySize() );
+        ByteArrayInputStream bais( baos.toByteArray(), baos.size() );
         DataInputStream dataIn( &bais );
 
         unsigned char dataType = dataIn.readByte();

Modified: activemq/activemq-cpp/trunk/src/test/activemq/connector/openwire/marshal/v2/DiscoveryEventMarshallerTest.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/src/test/activemq/connector/openwire/marshal/v2/DiscoveryEventMarshallerTest.cpp?rev=593609&r1=593608&r2=593609&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/src/test/activemq/connector/openwire/marshal/v2/DiscoveryEventMarshallerTest.cpp (original)
+++ activemq/activemq-cpp/trunk/src/test/activemq/connector/openwire/marshal/v2/DiscoveryEventMarshallerTest.cpp Fri Nov  9 09:54:05 2007
@@ -87,7 +87,7 @@
         marshaller.looseMarshal( &openWireFormat, &outCommand, &dataOut );
 
         // Now read it back in and make sure it's all right.
-        ByteArrayInputStream bais( baos.getByteArray(), baos.getByteArraySize() );
+        ByteArrayInputStream bais( baos.toByteArray(), baos.size() );
         DataInputStream dataIn( &bais );
         unsigned char dataType = dataIn.readByte();
         CPPUNIT_ASSERT( dataType == outCommand.getDataStructureType() );
@@ -133,7 +133,7 @@
         marshaller.tightMarshal2( &openWireFormat, &outCommand, &dataOut, &bs );
 
         // Now read it back in and make sure it's all right.
-        ByteArrayInputStream bais( baos.getByteArray(), baos.getByteArraySize() );
+        ByteArrayInputStream bais( baos.toByteArray(), baos.size() );
         DataInputStream dataIn( &bais );
 
         unsigned char dataType = dataIn.readByte();

Modified: activemq/activemq-cpp/trunk/src/test/activemq/connector/openwire/marshal/v2/ExceptionResponseMarshallerTest.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/src/test/activemq/connector/openwire/marshal/v2/ExceptionResponseMarshallerTest.cpp?rev=593609&r1=593608&r2=593609&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/src/test/activemq/connector/openwire/marshal/v2/ExceptionResponseMarshallerTest.cpp (original)
+++ activemq/activemq-cpp/trunk/src/test/activemq/connector/openwire/marshal/v2/ExceptionResponseMarshallerTest.cpp Fri Nov  9 09:54:05 2007
@@ -87,7 +87,7 @@
         marshaller.looseMarshal( &openWireFormat, &outCommand, &dataOut );
 
         // Now read it back in and make sure it's all right.
-        ByteArrayInputStream bais( baos.getByteArray(), baos.getByteArraySize() );
+        ByteArrayInputStream bais( baos.toByteArray(), baos.size() );
         DataInputStream dataIn( &bais );
         unsigned char dataType = dataIn.readByte();
         CPPUNIT_ASSERT( dataType == outCommand.getDataStructureType() );
@@ -133,7 +133,7 @@
         marshaller.tightMarshal2( &openWireFormat, &outCommand, &dataOut, &bs );
 
         // Now read it back in and make sure it's all right.
-        ByteArrayInputStream bais( baos.getByteArray(), baos.getByteArraySize() );
+        ByteArrayInputStream bais( baos.toByteArray(), baos.size() );
         DataInputStream dataIn( &bais );
 
         unsigned char dataType = dataIn.readByte();

Modified: activemq/activemq-cpp/trunk/src/test/activemq/connector/openwire/marshal/v2/FlushCommandMarshallerTest.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/src/test/activemq/connector/openwire/marshal/v2/FlushCommandMarshallerTest.cpp?rev=593609&r1=593608&r2=593609&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/src/test/activemq/connector/openwire/marshal/v2/FlushCommandMarshallerTest.cpp (original)
+++ activemq/activemq-cpp/trunk/src/test/activemq/connector/openwire/marshal/v2/FlushCommandMarshallerTest.cpp Fri Nov  9 09:54:05 2007
@@ -87,7 +87,7 @@
         marshaller.looseMarshal( &openWireFormat, &outCommand, &dataOut );
 
         // Now read it back in and make sure it's all right.
-        ByteArrayInputStream bais( baos.getByteArray(), baos.getByteArraySize() );
+        ByteArrayInputStream bais( baos.toByteArray(), baos.size() );
         DataInputStream dataIn( &bais );
         unsigned char dataType = dataIn.readByte();
         CPPUNIT_ASSERT( dataType == outCommand.getDataStructureType() );
@@ -133,7 +133,7 @@
         marshaller.tightMarshal2( &openWireFormat, &outCommand, &dataOut, &bs );
 
         // Now read it back in and make sure it's all right.
-        ByteArrayInputStream bais( baos.getByteArray(), baos.getByteArraySize() );
+        ByteArrayInputStream bais( baos.toByteArray(), baos.size() );
         DataInputStream dataIn( &bais );
 
         unsigned char dataType = dataIn.readByte();

Modified: activemq/activemq-cpp/trunk/src/test/activemq/connector/openwire/marshal/v2/IntegerResponseMarshallerTest.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/src/test/activemq/connector/openwire/marshal/v2/IntegerResponseMarshallerTest.cpp?rev=593609&r1=593608&r2=593609&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/src/test/activemq/connector/openwire/marshal/v2/IntegerResponseMarshallerTest.cpp (original)
+++ activemq/activemq-cpp/trunk/src/test/activemq/connector/openwire/marshal/v2/IntegerResponseMarshallerTest.cpp Fri Nov  9 09:54:05 2007
@@ -87,7 +87,7 @@
         marshaller.looseMarshal( &openWireFormat, &outCommand, &dataOut );
 
         // Now read it back in and make sure it's all right.
-        ByteArrayInputStream bais( baos.getByteArray(), baos.getByteArraySize() );
+        ByteArrayInputStream bais( baos.toByteArray(), baos.size() );
         DataInputStream dataIn( &bais );
         unsigned char dataType = dataIn.readByte();
         CPPUNIT_ASSERT( dataType == outCommand.getDataStructureType() );
@@ -133,7 +133,7 @@
         marshaller.tightMarshal2( &openWireFormat, &outCommand, &dataOut, &bs );
 
         // Now read it back in and make sure it's all right.
-        ByteArrayInputStream bais( baos.getByteArray(), baos.getByteArraySize() );
+        ByteArrayInputStream bais( baos.toByteArray(), baos.size() );
         DataInputStream dataIn( &bais );
 
         unsigned char dataType = dataIn.readByte();

Modified: activemq/activemq-cpp/trunk/src/test/activemq/connector/openwire/marshal/v2/JournalQueueAckMarshallerTest.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/src/test/activemq/connector/openwire/marshal/v2/JournalQueueAckMarshallerTest.cpp?rev=593609&r1=593608&r2=593609&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/src/test/activemq/connector/openwire/marshal/v2/JournalQueueAckMarshallerTest.cpp (original)
+++ activemq/activemq-cpp/trunk/src/test/activemq/connector/openwire/marshal/v2/JournalQueueAckMarshallerTest.cpp Fri Nov  9 09:54:05 2007
@@ -87,7 +87,7 @@
         marshaller.looseMarshal( &openWireFormat, &outCommand, &dataOut );
 
         // Now read it back in and make sure it's all right.
-        ByteArrayInputStream bais( baos.getByteArray(), baos.getByteArraySize() );
+        ByteArrayInputStream bais( baos.toByteArray(), baos.size() );
         DataInputStream dataIn( &bais );
         unsigned char dataType = dataIn.readByte();
         CPPUNIT_ASSERT( dataType == outCommand.getDataStructureType() );
@@ -133,7 +133,7 @@
         marshaller.tightMarshal2( &openWireFormat, &outCommand, &dataOut, &bs );
 
         // Now read it back in and make sure it's all right.
-        ByteArrayInputStream bais( baos.getByteArray(), baos.getByteArraySize() );
+        ByteArrayInputStream bais( baos.toByteArray(), baos.size() );
         DataInputStream dataIn( &bais );
 
         unsigned char dataType = dataIn.readByte();

Modified: activemq/activemq-cpp/trunk/src/test/activemq/connector/openwire/marshal/v2/JournalTopicAckMarshallerTest.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/src/test/activemq/connector/openwire/marshal/v2/JournalTopicAckMarshallerTest.cpp?rev=593609&r1=593608&r2=593609&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/src/test/activemq/connector/openwire/marshal/v2/JournalTopicAckMarshallerTest.cpp (original)
+++ activemq/activemq-cpp/trunk/src/test/activemq/connector/openwire/marshal/v2/JournalTopicAckMarshallerTest.cpp Fri Nov  9 09:54:05 2007
@@ -87,7 +87,7 @@
         marshaller.looseMarshal( &openWireFormat, &outCommand, &dataOut );
 
         // Now read it back in and make sure it's all right.
-        ByteArrayInputStream bais( baos.getByteArray(), baos.getByteArraySize() );
+        ByteArrayInputStream bais( baos.toByteArray(), baos.size() );
         DataInputStream dataIn( &bais );
         unsigned char dataType = dataIn.readByte();
         CPPUNIT_ASSERT( dataType == outCommand.getDataStructureType() );
@@ -133,7 +133,7 @@
         marshaller.tightMarshal2( &openWireFormat, &outCommand, &dataOut, &bs );
 
         // Now read it back in and make sure it's all right.
-        ByteArrayInputStream bais( baos.getByteArray(), baos.getByteArraySize() );
+        ByteArrayInputStream bais( baos.toByteArray(), baos.size() );
         DataInputStream dataIn( &bais );
 
         unsigned char dataType = dataIn.readByte();

Modified: activemq/activemq-cpp/trunk/src/test/activemq/connector/openwire/marshal/v2/JournalTraceMarshallerTest.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/src/test/activemq/connector/openwire/marshal/v2/JournalTraceMarshallerTest.cpp?rev=593609&r1=593608&r2=593609&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/src/test/activemq/connector/openwire/marshal/v2/JournalTraceMarshallerTest.cpp (original)
+++ activemq/activemq-cpp/trunk/src/test/activemq/connector/openwire/marshal/v2/JournalTraceMarshallerTest.cpp Fri Nov  9 09:54:05 2007
@@ -87,7 +87,7 @@
         marshaller.looseMarshal( &openWireFormat, &outCommand, &dataOut );
 
         // Now read it back in and make sure it's all right.
-        ByteArrayInputStream bais( baos.getByteArray(), baos.getByteArraySize() );
+        ByteArrayInputStream bais( baos.toByteArray(), baos.size() );
         DataInputStream dataIn( &bais );
         unsigned char dataType = dataIn.readByte();
         CPPUNIT_ASSERT( dataType == outCommand.getDataStructureType() );
@@ -133,7 +133,7 @@
         marshaller.tightMarshal2( &openWireFormat, &outCommand, &dataOut, &bs );
 
         // Now read it back in and make sure it's all right.
-        ByteArrayInputStream bais( baos.getByteArray(), baos.getByteArraySize() );
+        ByteArrayInputStream bais( baos.toByteArray(), baos.size() );
         DataInputStream dataIn( &bais );
 
         unsigned char dataType = dataIn.readByte();

Modified: activemq/activemq-cpp/trunk/src/test/activemq/connector/openwire/marshal/v2/JournalTransactionMarshallerTest.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/src/test/activemq/connector/openwire/marshal/v2/JournalTransactionMarshallerTest.cpp?rev=593609&r1=593608&r2=593609&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/src/test/activemq/connector/openwire/marshal/v2/JournalTransactionMarshallerTest.cpp (original)
+++ activemq/activemq-cpp/trunk/src/test/activemq/connector/openwire/marshal/v2/JournalTransactionMarshallerTest.cpp Fri Nov  9 09:54:05 2007
@@ -87,7 +87,7 @@
         marshaller.looseMarshal( &openWireFormat, &outCommand, &dataOut );
 
         // Now read it back in and make sure it's all right.
-        ByteArrayInputStream bais( baos.getByteArray(), baos.getByteArraySize() );
+        ByteArrayInputStream bais( baos.toByteArray(), baos.size() );
         DataInputStream dataIn( &bais );
         unsigned char dataType = dataIn.readByte();
         CPPUNIT_ASSERT( dataType == outCommand.getDataStructureType() );
@@ -133,7 +133,7 @@
         marshaller.tightMarshal2( &openWireFormat, &outCommand, &dataOut, &bs );
 
         // Now read it back in and make sure it's all right.
-        ByteArrayInputStream bais( baos.getByteArray(), baos.getByteArraySize() );
+        ByteArrayInputStream bais( baos.toByteArray(), baos.size() );
         DataInputStream dataIn( &bais );
 
         unsigned char dataType = dataIn.readByte();

Modified: activemq/activemq-cpp/trunk/src/test/activemq/connector/openwire/marshal/v2/KeepAliveInfoMarshallerTest.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/src/test/activemq/connector/openwire/marshal/v2/KeepAliveInfoMarshallerTest.cpp?rev=593609&r1=593608&r2=593609&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/src/test/activemq/connector/openwire/marshal/v2/KeepAliveInfoMarshallerTest.cpp (original)
+++ activemq/activemq-cpp/trunk/src/test/activemq/connector/openwire/marshal/v2/KeepAliveInfoMarshallerTest.cpp Fri Nov  9 09:54:05 2007
@@ -87,7 +87,7 @@
         marshaller.looseMarshal( &openWireFormat, &outCommand, &dataOut );
 
         // Now read it back in and make sure it's all right.
-        ByteArrayInputStream bais( baos.getByteArray(), baos.getByteArraySize() );
+        ByteArrayInputStream bais( baos.toByteArray(), baos.size() );
         DataInputStream dataIn( &bais );
         unsigned char dataType = dataIn.readByte();
         CPPUNIT_ASSERT( dataType == outCommand.getDataStructureType() );
@@ -133,7 +133,7 @@
         marshaller.tightMarshal2( &openWireFormat, &outCommand, &dataOut, &bs );
 
         // Now read it back in and make sure it's all right.
-        ByteArrayInputStream bais( baos.getByteArray(), baos.getByteArraySize() );
+        ByteArrayInputStream bais( baos.toByteArray(), baos.size() );
         DataInputStream dataIn( &bais );
 
         unsigned char dataType = dataIn.readByte();

Modified: activemq/activemq-cpp/trunk/src/test/activemq/connector/openwire/marshal/v2/LastPartialCommandMarshallerTest.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/src/test/activemq/connector/openwire/marshal/v2/LastPartialCommandMarshallerTest.cpp?rev=593609&r1=593608&r2=593609&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/src/test/activemq/connector/openwire/marshal/v2/LastPartialCommandMarshallerTest.cpp (original)
+++ activemq/activemq-cpp/trunk/src/test/activemq/connector/openwire/marshal/v2/LastPartialCommandMarshallerTest.cpp Fri Nov  9 09:54:05 2007
@@ -87,7 +87,7 @@
         marshaller.looseMarshal( &openWireFormat, &outCommand, &dataOut );
 
         // Now read it back in and make sure it's all right.
-        ByteArrayInputStream bais( baos.getByteArray(), baos.getByteArraySize() );
+        ByteArrayInputStream bais( baos.toByteArray(), baos.size() );
         DataInputStream dataIn( &bais );
         unsigned char dataType = dataIn.readByte();
         CPPUNIT_ASSERT( dataType == outCommand.getDataStructureType() );
@@ -133,7 +133,7 @@
         marshaller.tightMarshal2( &openWireFormat, &outCommand, &dataOut, &bs );
 
         // Now read it back in and make sure it's all right.
-        ByteArrayInputStream bais( baos.getByteArray(), baos.getByteArraySize() );
+        ByteArrayInputStream bais( baos.toByteArray(), baos.size() );
         DataInputStream dataIn( &bais );
 
         unsigned char dataType = dataIn.readByte();

Modified: activemq/activemq-cpp/trunk/src/test/activemq/connector/openwire/marshal/v2/LocalTransactionIdMarshallerTest.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/src/test/activemq/connector/openwire/marshal/v2/LocalTransactionIdMarshallerTest.cpp?rev=593609&r1=593608&r2=593609&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/src/test/activemq/connector/openwire/marshal/v2/LocalTransactionIdMarshallerTest.cpp (original)
+++ activemq/activemq-cpp/trunk/src/test/activemq/connector/openwire/marshal/v2/LocalTransactionIdMarshallerTest.cpp Fri Nov  9 09:54:05 2007
@@ -87,7 +87,7 @@
         marshaller.looseMarshal( &openWireFormat, &outCommand, &dataOut );
 
         // Now read it back in and make sure it's all right.
-        ByteArrayInputStream bais( baos.getByteArray(), baos.getByteArraySize() );
+        ByteArrayInputStream bais( baos.toByteArray(), baos.size() );
         DataInputStream dataIn( &bais );
         unsigned char dataType = dataIn.readByte();
         CPPUNIT_ASSERT( dataType == outCommand.getDataStructureType() );
@@ -133,7 +133,7 @@
         marshaller.tightMarshal2( &openWireFormat, &outCommand, &dataOut, &bs );
 
         // Now read it back in and make sure it's all right.
-        ByteArrayInputStream bais( baos.getByteArray(), baos.getByteArraySize() );
+        ByteArrayInputStream bais( baos.toByteArray(), baos.size() );
         DataInputStream dataIn( &bais );
 
         unsigned char dataType = dataIn.readByte();

Modified: activemq/activemq-cpp/trunk/src/test/activemq/connector/openwire/marshal/v2/MessageAckMarshallerTest.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/src/test/activemq/connector/openwire/marshal/v2/MessageAckMarshallerTest.cpp?rev=593609&r1=593608&r2=593609&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/src/test/activemq/connector/openwire/marshal/v2/MessageAckMarshallerTest.cpp (original)
+++ activemq/activemq-cpp/trunk/src/test/activemq/connector/openwire/marshal/v2/MessageAckMarshallerTest.cpp Fri Nov  9 09:54:05 2007
@@ -87,7 +87,7 @@
         marshaller.looseMarshal( &openWireFormat, &outCommand, &dataOut );
 
         // Now read it back in and make sure it's all right.
-        ByteArrayInputStream bais( baos.getByteArray(), baos.getByteArraySize() );
+        ByteArrayInputStream bais( baos.toByteArray(), baos.size() );
         DataInputStream dataIn( &bais );
         unsigned char dataType = dataIn.readByte();
         CPPUNIT_ASSERT( dataType == outCommand.getDataStructureType() );
@@ -133,7 +133,7 @@
         marshaller.tightMarshal2( &openWireFormat, &outCommand, &dataOut, &bs );
 
         // Now read it back in and make sure it's all right.
-        ByteArrayInputStream bais( baos.getByteArray(), baos.getByteArraySize() );
+        ByteArrayInputStream bais( baos.toByteArray(), baos.size() );
         DataInputStream dataIn( &bais );
 
         unsigned char dataType = dataIn.readByte();

Modified: activemq/activemq-cpp/trunk/src/test/activemq/connector/openwire/marshal/v2/MessageDispatchMarshallerTest.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/src/test/activemq/connector/openwire/marshal/v2/MessageDispatchMarshallerTest.cpp?rev=593609&r1=593608&r2=593609&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/src/test/activemq/connector/openwire/marshal/v2/MessageDispatchMarshallerTest.cpp (original)
+++ activemq/activemq-cpp/trunk/src/test/activemq/connector/openwire/marshal/v2/MessageDispatchMarshallerTest.cpp Fri Nov  9 09:54:05 2007
@@ -87,7 +87,7 @@
         marshaller.looseMarshal( &openWireFormat, &outCommand, &dataOut );
 
         // Now read it back in and make sure it's all right.
-        ByteArrayInputStream bais( baos.getByteArray(), baos.getByteArraySize() );
+        ByteArrayInputStream bais( baos.toByteArray(), baos.size() );
         DataInputStream dataIn( &bais );
         unsigned char dataType = dataIn.readByte();
         CPPUNIT_ASSERT( dataType == outCommand.getDataStructureType() );
@@ -133,7 +133,7 @@
         marshaller.tightMarshal2( &openWireFormat, &outCommand, &dataOut, &bs );
 
         // Now read it back in and make sure it's all right.
-        ByteArrayInputStream bais( baos.getByteArray(), baos.getByteArraySize() );
+        ByteArrayInputStream bais( baos.toByteArray(), baos.size() );
         DataInputStream dataIn( &bais );
 
         unsigned char dataType = dataIn.readByte();

Modified: activemq/activemq-cpp/trunk/src/test/activemq/connector/openwire/marshal/v2/MessageDispatchNotificationMarshallerTest.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/src/test/activemq/connector/openwire/marshal/v2/MessageDispatchNotificationMarshallerTest.cpp?rev=593609&r1=593608&r2=593609&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/src/test/activemq/connector/openwire/marshal/v2/MessageDispatchNotificationMarshallerTest.cpp (original)
+++ activemq/activemq-cpp/trunk/src/test/activemq/connector/openwire/marshal/v2/MessageDispatchNotificationMarshallerTest.cpp Fri Nov  9 09:54:05 2007
@@ -87,7 +87,7 @@
         marshaller.looseMarshal( &openWireFormat, &outCommand, &dataOut );
 
         // Now read it back in and make sure it's all right.
-        ByteArrayInputStream bais( baos.getByteArray(), baos.getByteArraySize() );
+        ByteArrayInputStream bais( baos.toByteArray(), baos.size() );
         DataInputStream dataIn( &bais );
         unsigned char dataType = dataIn.readByte();
         CPPUNIT_ASSERT( dataType == outCommand.getDataStructureType() );
@@ -133,7 +133,7 @@
         marshaller.tightMarshal2( &openWireFormat, &outCommand, &dataOut, &bs );
 
         // Now read it back in and make sure it's all right.
-        ByteArrayInputStream bais( baos.getByteArray(), baos.getByteArraySize() );
+        ByteArrayInputStream bais( baos.toByteArray(), baos.size() );
         DataInputStream dataIn( &bais );
 
         unsigned char dataType = dataIn.readByte();

Modified: activemq/activemq-cpp/trunk/src/test/activemq/connector/openwire/marshal/v2/MessageIdMarshallerTest.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/src/test/activemq/connector/openwire/marshal/v2/MessageIdMarshallerTest.cpp?rev=593609&r1=593608&r2=593609&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/src/test/activemq/connector/openwire/marshal/v2/MessageIdMarshallerTest.cpp (original)
+++ activemq/activemq-cpp/trunk/src/test/activemq/connector/openwire/marshal/v2/MessageIdMarshallerTest.cpp Fri Nov  9 09:54:05 2007
@@ -87,7 +87,7 @@
         marshaller.looseMarshal( &openWireFormat, &outCommand, &dataOut );
 
         // Now read it back in and make sure it's all right.
-        ByteArrayInputStream bais( baos.getByteArray(), baos.getByteArraySize() );
+        ByteArrayInputStream bais( baos.toByteArray(), baos.size() );
         DataInputStream dataIn( &bais );
         unsigned char dataType = dataIn.readByte();
         CPPUNIT_ASSERT( dataType == outCommand.getDataStructureType() );
@@ -133,7 +133,7 @@
         marshaller.tightMarshal2( &openWireFormat, &outCommand, &dataOut, &bs );
 
         // Now read it back in and make sure it's all right.
-        ByteArrayInputStream bais( baos.getByteArray(), baos.getByteArraySize() );
+        ByteArrayInputStream bais( baos.toByteArray(), baos.size() );
         DataInputStream dataIn( &bais );
 
         unsigned char dataType = dataIn.readByte();

Modified: activemq/activemq-cpp/trunk/src/test/activemq/connector/openwire/marshal/v2/MessagePullMarshallerTest.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/src/test/activemq/connector/openwire/marshal/v2/MessagePullMarshallerTest.cpp?rev=593609&r1=593608&r2=593609&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/src/test/activemq/connector/openwire/marshal/v2/MessagePullMarshallerTest.cpp (original)
+++ activemq/activemq-cpp/trunk/src/test/activemq/connector/openwire/marshal/v2/MessagePullMarshallerTest.cpp Fri Nov  9 09:54:05 2007
@@ -87,7 +87,7 @@
         marshaller.looseMarshal( &openWireFormat, &outCommand, &dataOut );
 
         // Now read it back in and make sure it's all right.
-        ByteArrayInputStream bais( baos.getByteArray(), baos.getByteArraySize() );
+        ByteArrayInputStream bais( baos.toByteArray(), baos.size() );
         DataInputStream dataIn( &bais );
         unsigned char dataType = dataIn.readByte();
         CPPUNIT_ASSERT( dataType == outCommand.getDataStructureType() );
@@ -133,7 +133,7 @@
         marshaller.tightMarshal2( &openWireFormat, &outCommand, &dataOut, &bs );
 
         // Now read it back in and make sure it's all right.
-        ByteArrayInputStream bais( baos.getByteArray(), baos.getByteArraySize() );
+        ByteArrayInputStream bais( baos.toByteArray(), baos.size() );
         DataInputStream dataIn( &bais );
 
         unsigned char dataType = dataIn.readByte();

Modified: activemq/activemq-cpp/trunk/src/test/activemq/connector/openwire/marshal/v2/NetworkBridgeFilterMarshallerTest.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/src/test/activemq/connector/openwire/marshal/v2/NetworkBridgeFilterMarshallerTest.cpp?rev=593609&r1=593608&r2=593609&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/src/test/activemq/connector/openwire/marshal/v2/NetworkBridgeFilterMarshallerTest.cpp (original)
+++ activemq/activemq-cpp/trunk/src/test/activemq/connector/openwire/marshal/v2/NetworkBridgeFilterMarshallerTest.cpp Fri Nov  9 09:54:05 2007
@@ -87,7 +87,7 @@
         marshaller.looseMarshal( &openWireFormat, &outCommand, &dataOut );
 
         // Now read it back in and make sure it's all right.
-        ByteArrayInputStream bais( baos.getByteArray(), baos.getByteArraySize() );
+        ByteArrayInputStream bais( baos.toByteArray(), baos.size() );
         DataInputStream dataIn( &bais );
         unsigned char dataType = dataIn.readByte();
         CPPUNIT_ASSERT( dataType == outCommand.getDataStructureType() );
@@ -133,7 +133,7 @@
         marshaller.tightMarshal2( &openWireFormat, &outCommand, &dataOut, &bs );
 
         // Now read it back in and make sure it's all right.
-        ByteArrayInputStream bais( baos.getByteArray(), baos.getByteArraySize() );
+        ByteArrayInputStream bais( baos.toByteArray(), baos.size() );
         DataInputStream dataIn( &bais );
 
         unsigned char dataType = dataIn.readByte();

Modified: activemq/activemq-cpp/trunk/src/test/activemq/connector/openwire/marshal/v2/PartialCommandMarshallerTest.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/src/test/activemq/connector/openwire/marshal/v2/PartialCommandMarshallerTest.cpp?rev=593609&r1=593608&r2=593609&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/src/test/activemq/connector/openwire/marshal/v2/PartialCommandMarshallerTest.cpp (original)
+++ activemq/activemq-cpp/trunk/src/test/activemq/connector/openwire/marshal/v2/PartialCommandMarshallerTest.cpp Fri Nov  9 09:54:05 2007
@@ -87,7 +87,7 @@
         marshaller.looseMarshal( &openWireFormat, &outCommand, &dataOut );
 
         // Now read it back in and make sure it's all right.
-        ByteArrayInputStream bais( baos.getByteArray(), baos.getByteArraySize() );
+        ByteArrayInputStream bais( baos.toByteArray(), baos.size() );
         DataInputStream dataIn( &bais );
         unsigned char dataType = dataIn.readByte();
         CPPUNIT_ASSERT( dataType == outCommand.getDataStructureType() );
@@ -133,7 +133,7 @@
         marshaller.tightMarshal2( &openWireFormat, &outCommand, &dataOut, &bs );
 
         // Now read it back in and make sure it's all right.
-        ByteArrayInputStream bais( baos.getByteArray(), baos.getByteArraySize() );
+        ByteArrayInputStream bais( baos.toByteArray(), baos.size() );
         DataInputStream dataIn( &bais );
 
         unsigned char dataType = dataIn.readByte();

Modified: activemq/activemq-cpp/trunk/src/test/activemq/connector/openwire/marshal/v2/ProducerIdMarshallerTest.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/src/test/activemq/connector/openwire/marshal/v2/ProducerIdMarshallerTest.cpp?rev=593609&r1=593608&r2=593609&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/src/test/activemq/connector/openwire/marshal/v2/ProducerIdMarshallerTest.cpp (original)
+++ activemq/activemq-cpp/trunk/src/test/activemq/connector/openwire/marshal/v2/ProducerIdMarshallerTest.cpp Fri Nov  9 09:54:05 2007
@@ -87,7 +87,7 @@
         marshaller.looseMarshal( &openWireFormat, &outCommand, &dataOut );
 
         // Now read it back in and make sure it's all right.
-        ByteArrayInputStream bais( baos.getByteArray(), baos.getByteArraySize() );
+        ByteArrayInputStream bais( baos.toByteArray(), baos.size() );
         DataInputStream dataIn( &bais );
         unsigned char dataType = dataIn.readByte();
         CPPUNIT_ASSERT( dataType == outCommand.getDataStructureType() );
@@ -133,7 +133,7 @@
         marshaller.tightMarshal2( &openWireFormat, &outCommand, &dataOut, &bs );
 
         // Now read it back in and make sure it's all right.
-        ByteArrayInputStream bais( baos.getByteArray(), baos.getByteArraySize() );
+        ByteArrayInputStream bais( baos.toByteArray(), baos.size() );
         DataInputStream dataIn( &bais );
 
         unsigned char dataType = dataIn.readByte();

Modified: activemq/activemq-cpp/trunk/src/test/activemq/connector/openwire/marshal/v2/ProducerInfoMarshallerTest.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/src/test/activemq/connector/openwire/marshal/v2/ProducerInfoMarshallerTest.cpp?rev=593609&r1=593608&r2=593609&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/src/test/activemq/connector/openwire/marshal/v2/ProducerInfoMarshallerTest.cpp (original)
+++ activemq/activemq-cpp/trunk/src/test/activemq/connector/openwire/marshal/v2/ProducerInfoMarshallerTest.cpp Fri Nov  9 09:54:05 2007
@@ -87,7 +87,7 @@
         marshaller.looseMarshal( &openWireFormat, &outCommand, &dataOut );
 
         // Now read it back in and make sure it's all right.
-        ByteArrayInputStream bais( baos.getByteArray(), baos.getByteArraySize() );
+        ByteArrayInputStream bais( baos.toByteArray(), baos.size() );
         DataInputStream dataIn( &bais );
         unsigned char dataType = dataIn.readByte();
         CPPUNIT_ASSERT( dataType == outCommand.getDataStructureType() );
@@ -133,7 +133,7 @@
         marshaller.tightMarshal2( &openWireFormat, &outCommand, &dataOut, &bs );
 
         // Now read it back in and make sure it's all right.
-        ByteArrayInputStream bais( baos.getByteArray(), baos.getByteArraySize() );
+        ByteArrayInputStream bais( baos.toByteArray(), baos.size() );
         DataInputStream dataIn( &bais );
 
         unsigned char dataType = dataIn.readByte();

Modified: activemq/activemq-cpp/trunk/src/test/activemq/connector/openwire/marshal/v2/RemoveInfoMarshallerTest.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/src/test/activemq/connector/openwire/marshal/v2/RemoveInfoMarshallerTest.cpp?rev=593609&r1=593608&r2=593609&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/src/test/activemq/connector/openwire/marshal/v2/RemoveInfoMarshallerTest.cpp (original)
+++ activemq/activemq-cpp/trunk/src/test/activemq/connector/openwire/marshal/v2/RemoveInfoMarshallerTest.cpp Fri Nov  9 09:54:05 2007
@@ -87,7 +87,7 @@
         marshaller.looseMarshal( &openWireFormat, &outCommand, &dataOut );
 
         // Now read it back in and make sure it's all right.
-        ByteArrayInputStream bais( baos.getByteArray(), baos.getByteArraySize() );
+        ByteArrayInputStream bais( baos.toByteArray(), baos.size() );
         DataInputStream dataIn( &bais );
         unsigned char dataType = dataIn.readByte();
         CPPUNIT_ASSERT( dataType == outCommand.getDataStructureType() );
@@ -133,7 +133,7 @@
         marshaller.tightMarshal2( &openWireFormat, &outCommand, &dataOut, &bs );
 
         // Now read it back in and make sure it's all right.
-        ByteArrayInputStream bais( baos.getByteArray(), baos.getByteArraySize() );
+        ByteArrayInputStream bais( baos.toByteArray(), baos.size() );
         DataInputStream dataIn( &bais );
 
         unsigned char dataType = dataIn.readByte();

Modified: activemq/activemq-cpp/trunk/src/test/activemq/connector/openwire/marshal/v2/RemoveSubscriptionInfoMarshallerTest.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/src/test/activemq/connector/openwire/marshal/v2/RemoveSubscriptionInfoMarshallerTest.cpp?rev=593609&r1=593608&r2=593609&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/src/test/activemq/connector/openwire/marshal/v2/RemoveSubscriptionInfoMarshallerTest.cpp (original)
+++ activemq/activemq-cpp/trunk/src/test/activemq/connector/openwire/marshal/v2/RemoveSubscriptionInfoMarshallerTest.cpp Fri Nov  9 09:54:05 2007
@@ -87,7 +87,7 @@
         marshaller.looseMarshal( &openWireFormat, &outCommand, &dataOut );
 
         // Now read it back in and make sure it's all right.
-        ByteArrayInputStream bais( baos.getByteArray(), baos.getByteArraySize() );
+        ByteArrayInputStream bais( baos.toByteArray(), baos.size() );
         DataInputStream dataIn( &bais );
         unsigned char dataType = dataIn.readByte();
         CPPUNIT_ASSERT( dataType == outCommand.getDataStructureType() );
@@ -133,7 +133,7 @@
         marshaller.tightMarshal2( &openWireFormat, &outCommand, &dataOut, &bs );
 
         // Now read it back in and make sure it's all right.
-        ByteArrayInputStream bais( baos.getByteArray(), baos.getByteArraySize() );
+        ByteArrayInputStream bais( baos.toByteArray(), baos.size() );
         DataInputStream dataIn( &bais );
 
         unsigned char dataType = dataIn.readByte();

Modified: activemq/activemq-cpp/trunk/src/test/activemq/connector/openwire/marshal/v2/ReplayCommandMarshallerTest.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/src/test/activemq/connector/openwire/marshal/v2/ReplayCommandMarshallerTest.cpp?rev=593609&r1=593608&r2=593609&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/src/test/activemq/connector/openwire/marshal/v2/ReplayCommandMarshallerTest.cpp (original)
+++ activemq/activemq-cpp/trunk/src/test/activemq/connector/openwire/marshal/v2/ReplayCommandMarshallerTest.cpp Fri Nov  9 09:54:05 2007
@@ -87,7 +87,7 @@
         marshaller.looseMarshal( &openWireFormat, &outCommand, &dataOut );
 
         // Now read it back in and make sure it's all right.
-        ByteArrayInputStream bais( baos.getByteArray(), baos.getByteArraySize() );
+        ByteArrayInputStream bais( baos.toByteArray(), baos.size() );
         DataInputStream dataIn( &bais );
         unsigned char dataType = dataIn.readByte();
         CPPUNIT_ASSERT( dataType == outCommand.getDataStructureType() );
@@ -133,7 +133,7 @@
         marshaller.tightMarshal2( &openWireFormat, &outCommand, &dataOut, &bs );
 
         // Now read it back in and make sure it's all right.
-        ByteArrayInputStream bais( baos.getByteArray(), baos.getByteArraySize() );
+        ByteArrayInputStream bais( baos.toByteArray(), baos.size() );
         DataInputStream dataIn( &bais );
 
         unsigned char dataType = dataIn.readByte();

Modified: activemq/activemq-cpp/trunk/src/test/activemq/connector/openwire/marshal/v2/ResponseMarshallerTest.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/src/test/activemq/connector/openwire/marshal/v2/ResponseMarshallerTest.cpp?rev=593609&r1=593608&r2=593609&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/src/test/activemq/connector/openwire/marshal/v2/ResponseMarshallerTest.cpp (original)
+++ activemq/activemq-cpp/trunk/src/test/activemq/connector/openwire/marshal/v2/ResponseMarshallerTest.cpp Fri Nov  9 09:54:05 2007
@@ -87,7 +87,7 @@
         marshaller.looseMarshal( &openWireFormat, &outCommand, &dataOut );
 
         // Now read it back in and make sure it's all right.
-        ByteArrayInputStream bais( baos.getByteArray(), baos.getByteArraySize() );
+        ByteArrayInputStream bais( baos.toByteArray(), baos.size() );
         DataInputStream dataIn( &bais );
         unsigned char dataType = dataIn.readByte();
         CPPUNIT_ASSERT( dataType == outCommand.getDataStructureType() );
@@ -133,7 +133,7 @@
         marshaller.tightMarshal2( &openWireFormat, &outCommand, &dataOut, &bs );
 
         // Now read it back in and make sure it's all right.
-        ByteArrayInputStream bais( baos.getByteArray(), baos.getByteArraySize() );
+        ByteArrayInputStream bais( baos.toByteArray(), baos.size() );
         DataInputStream dataIn( &bais );
 
         unsigned char dataType = dataIn.readByte();

Modified: activemq/activemq-cpp/trunk/src/test/activemq/connector/openwire/marshal/v2/SessionIdMarshallerTest.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/src/test/activemq/connector/openwire/marshal/v2/SessionIdMarshallerTest.cpp?rev=593609&r1=593608&r2=593609&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/src/test/activemq/connector/openwire/marshal/v2/SessionIdMarshallerTest.cpp (original)
+++ activemq/activemq-cpp/trunk/src/test/activemq/connector/openwire/marshal/v2/SessionIdMarshallerTest.cpp Fri Nov  9 09:54:05 2007
@@ -87,7 +87,7 @@
         marshaller.looseMarshal( &openWireFormat, &outCommand, &dataOut );
 
         // Now read it back in and make sure it's all right.
-        ByteArrayInputStream bais( baos.getByteArray(), baos.getByteArraySize() );
+        ByteArrayInputStream bais( baos.toByteArray(), baos.size() );
         DataInputStream dataIn( &bais );
         unsigned char dataType = dataIn.readByte();
         CPPUNIT_ASSERT( dataType == outCommand.getDataStructureType() );
@@ -133,7 +133,7 @@
         marshaller.tightMarshal2( &openWireFormat, &outCommand, &dataOut, &bs );
 
         // Now read it back in and make sure it's all right.
-        ByteArrayInputStream bais( baos.getByteArray(), baos.getByteArraySize() );
+        ByteArrayInputStream bais( baos.toByteArray(), baos.size() );
         DataInputStream dataIn( &bais );
 
         unsigned char dataType = dataIn.readByte();

Modified: activemq/activemq-cpp/trunk/src/test/activemq/connector/openwire/marshal/v2/SessionInfoMarshallerTest.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/src/test/activemq/connector/openwire/marshal/v2/SessionInfoMarshallerTest.cpp?rev=593609&r1=593608&r2=593609&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/src/test/activemq/connector/openwire/marshal/v2/SessionInfoMarshallerTest.cpp (original)
+++ activemq/activemq-cpp/trunk/src/test/activemq/connector/openwire/marshal/v2/SessionInfoMarshallerTest.cpp Fri Nov  9 09:54:05 2007
@@ -87,7 +87,7 @@
         marshaller.looseMarshal( &openWireFormat, &outCommand, &dataOut );
 
         // Now read it back in and make sure it's all right.
-        ByteArrayInputStream bais( baos.getByteArray(), baos.getByteArraySize() );
+        ByteArrayInputStream bais( baos.toByteArray(), baos.size() );
         DataInputStream dataIn( &bais );
         unsigned char dataType = dataIn.readByte();
         CPPUNIT_ASSERT( dataType == outCommand.getDataStructureType() );
@@ -133,7 +133,7 @@
         marshaller.tightMarshal2( &openWireFormat, &outCommand, &dataOut, &bs );
 
         // Now read it back in and make sure it's all right.
-        ByteArrayInputStream bais( baos.getByteArray(), baos.getByteArraySize() );
+        ByteArrayInputStream bais( baos.toByteArray(), baos.size() );
         DataInputStream dataIn( &bais );
 
         unsigned char dataType = dataIn.readByte();

Modified: activemq/activemq-cpp/trunk/src/test/activemq/connector/openwire/marshal/v2/ShutdownInfoMarshallerTest.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/src/test/activemq/connector/openwire/marshal/v2/ShutdownInfoMarshallerTest.cpp?rev=593609&r1=593608&r2=593609&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/src/test/activemq/connector/openwire/marshal/v2/ShutdownInfoMarshallerTest.cpp (original)
+++ activemq/activemq-cpp/trunk/src/test/activemq/connector/openwire/marshal/v2/ShutdownInfoMarshallerTest.cpp Fri Nov  9 09:54:05 2007
@@ -87,7 +87,7 @@
         marshaller.looseMarshal( &openWireFormat, &outCommand, &dataOut );
 
         // Now read it back in and make sure it's all right.
-        ByteArrayInputStream bais( baos.getByteArray(), baos.getByteArraySize() );
+        ByteArrayInputStream bais( baos.toByteArray(), baos.size() );
         DataInputStream dataIn( &bais );
         unsigned char dataType = dataIn.readByte();
         CPPUNIT_ASSERT( dataType == outCommand.getDataStructureType() );
@@ -133,7 +133,7 @@
         marshaller.tightMarshal2( &openWireFormat, &outCommand, &dataOut, &bs );
 
         // Now read it back in and make sure it's all right.
-        ByteArrayInputStream bais( baos.getByteArray(), baos.getByteArraySize() );
+        ByteArrayInputStream bais( baos.toByteArray(), baos.size() );
         DataInputStream dataIn( &bais );
 
         unsigned char dataType = dataIn.readByte();

Modified: activemq/activemq-cpp/trunk/src/test/activemq/connector/openwire/marshal/v2/SubscriptionInfoMarshallerTest.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/src/test/activemq/connector/openwire/marshal/v2/SubscriptionInfoMarshallerTest.cpp?rev=593609&r1=593608&r2=593609&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/src/test/activemq/connector/openwire/marshal/v2/SubscriptionInfoMarshallerTest.cpp (original)
+++ activemq/activemq-cpp/trunk/src/test/activemq/connector/openwire/marshal/v2/SubscriptionInfoMarshallerTest.cpp Fri Nov  9 09:54:05 2007
@@ -87,7 +87,7 @@
         marshaller.looseMarshal( &openWireFormat, &outCommand, &dataOut );
 
         // Now read it back in and make sure it's all right.
-        ByteArrayInputStream bais( baos.getByteArray(), baos.getByteArraySize() );
+        ByteArrayInputStream bais( baos.toByteArray(), baos.size() );
         DataInputStream dataIn( &bais );
         unsigned char dataType = dataIn.readByte();
         CPPUNIT_ASSERT( dataType == outCommand.getDataStructureType() );
@@ -133,7 +133,7 @@
         marshaller.tightMarshal2( &openWireFormat, &outCommand, &dataOut, &bs );
 
         // Now read it back in and make sure it's all right.
-        ByteArrayInputStream bais( baos.getByteArray(), baos.getByteArraySize() );
+        ByteArrayInputStream bais( baos.toByteArray(), baos.size() );
         DataInputStream dataIn( &bais );
 
         unsigned char dataType = dataIn.readByte();

Modified: activemq/activemq-cpp/trunk/src/test/activemq/connector/openwire/marshal/v2/TransactionInfoMarshallerTest.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/src/test/activemq/connector/openwire/marshal/v2/TransactionInfoMarshallerTest.cpp?rev=593609&r1=593608&r2=593609&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/src/test/activemq/connector/openwire/marshal/v2/TransactionInfoMarshallerTest.cpp (original)
+++ activemq/activemq-cpp/trunk/src/test/activemq/connector/openwire/marshal/v2/TransactionInfoMarshallerTest.cpp Fri Nov  9 09:54:05 2007
@@ -87,7 +87,7 @@
         marshaller.looseMarshal( &openWireFormat, &outCommand, &dataOut );
 
         // Now read it back in and make sure it's all right.
-        ByteArrayInputStream bais( baos.getByteArray(), baos.getByteArraySize() );
+        ByteArrayInputStream bais( baos.toByteArray(), baos.size() );
         DataInputStream dataIn( &bais );
         unsigned char dataType = dataIn.readByte();
         CPPUNIT_ASSERT( dataType == outCommand.getDataStructureType() );
@@ -133,7 +133,7 @@
         marshaller.tightMarshal2( &openWireFormat, &outCommand, &dataOut, &bs );
 
         // Now read it back in and make sure it's all right.
-        ByteArrayInputStream bais( baos.getByteArray(), baos.getByteArraySize() );
+        ByteArrayInputStream bais( baos.toByteArray(), baos.size() );
         DataInputStream dataIn( &bais );
 
         unsigned char dataType = dataIn.readByte();

Modified: activemq/activemq-cpp/trunk/src/test/activemq/connector/openwire/marshal/v2/WireFormatInfoMarshallerTest.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/src/test/activemq/connector/openwire/marshal/v2/WireFormatInfoMarshallerTest.cpp?rev=593609&r1=593608&r2=593609&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/src/test/activemq/connector/openwire/marshal/v2/WireFormatInfoMarshallerTest.cpp (original)
+++ activemq/activemq-cpp/trunk/src/test/activemq/connector/openwire/marshal/v2/WireFormatInfoMarshallerTest.cpp Fri Nov  9 09:54:05 2007
@@ -87,7 +87,7 @@
         marshaller.looseMarshal( &openWireFormat, &outCommand, &dataOut );
 
         // Now read it back in and make sure it's all right.
-        ByteArrayInputStream bais( baos.getByteArray(), baos.getByteArraySize() );
+        ByteArrayInputStream bais( baos.toByteArray(), baos.size() );
         DataInputStream dataIn( &bais );
         unsigned char dataType = dataIn.readByte();
         CPPUNIT_ASSERT( dataType == outCommand.getDataStructureType() );
@@ -133,7 +133,7 @@
         marshaller.tightMarshal2( &openWireFormat, &outCommand, &dataOut, &bs );
 
         // Now read it back in and make sure it's all right.
-        ByteArrayInputStream bais( baos.getByteArray(), baos.getByteArraySize() );
+        ByteArrayInputStream bais( baos.toByteArray(), baos.size() );
         DataInputStream dataIn( &bais );
 
         unsigned char dataType = dataIn.readByte();

Modified: activemq/activemq-cpp/trunk/src/test/activemq/connector/openwire/marshal/v2/XATransactionIdMarshallerTest.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/src/test/activemq/connector/openwire/marshal/v2/XATransactionIdMarshallerTest.cpp?rev=593609&r1=593608&r2=593609&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/src/test/activemq/connector/openwire/marshal/v2/XATransactionIdMarshallerTest.cpp (original)
+++ activemq/activemq-cpp/trunk/src/test/activemq/connector/openwire/marshal/v2/XATransactionIdMarshallerTest.cpp Fri Nov  9 09:54:05 2007
@@ -87,7 +87,7 @@
         marshaller.looseMarshal( &openWireFormat, &outCommand, &dataOut );
 
         // Now read it back in and make sure it's all right.
-        ByteArrayInputStream bais( baos.getByteArray(), baos.getByteArraySize() );
+        ByteArrayInputStream bais( baos.toByteArray(), baos.size() );
         DataInputStream dataIn( &bais );
         unsigned char dataType = dataIn.readByte();
         CPPUNIT_ASSERT( dataType == outCommand.getDataStructureType() );
@@ -133,7 +133,7 @@
         marshaller.tightMarshal2( &openWireFormat, &outCommand, &dataOut, &bs );
 
         // Now read it back in and make sure it's all right.
-        ByteArrayInputStream bais( baos.getByteArray(), baos.getByteArraySize() );
+        ByteArrayInputStream bais( baos.toByteArray(), baos.size() );
         DataInputStream dataIn( &bais );
 
         unsigned char dataType = dataIn.readByte();



Mime
View raw message