[jboss-cvs] JBoss Messaging SVN: r3388 - branches/Branch_JBMESSAGING-544/tests/src/org/jboss/test/messaging/core/remoting/wireformat.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Fri Nov 30 12:32:51 EST 2007
Author: jmesnil
Date: 2007-11-30 12:32:51 -0500 (Fri, 30 Nov 2007)
New Revision: 3388
Modified:
branches/Branch_JBMESSAGING-544/tests/src/org/jboss/test/messaging/core/remoting/wireformat/PacketTypeTest.java
Log:
http://jira.jboss.org/jira/browse/JBMESSAGING-544 Replace client-server transport with NIO based transport
* added comment for SimpleRemotingBuffer.flip() method
Modified: branches/Branch_JBMESSAGING-544/tests/src/org/jboss/test/messaging/core/remoting/wireformat/PacketTypeTest.java
===================================================================
--- branches/Branch_JBMESSAGING-544/tests/src/org/jboss/test/messaging/core/remoting/wireformat/PacketTypeTest.java 2007-11-30 17:21:25 UTC (rev 3387)
+++ branches/Branch_JBMESSAGING-544/tests/src/org/jboss/test/messaging/core/remoting/wireformat/PacketTypeTest.java 2007-11-30 17:32:51 UTC (rev 3388)
@@ -1228,6 +1228,7 @@
{
SimpleRemotingBuffer buf = new SimpleRemotingBuffer();
codec.encode(packet, buf);
+
buf.flip();
return decode(buf, codec);
@@ -1251,8 +1252,12 @@
DataInputStream dais;
+ /**
+ * the buffer is can no longer be written but just read
+ */
public void flip()
{
+ dos = null;
dais = new DataInputStream(
new ByteArrayInputStream(baos.toByteArray()));
}
More information about the jboss-cvs-commits
mailing list