[jboss-cvs] JBoss Messaging SVN: r4489 - in trunk: tests/src/org/jboss/messaging/tests/unit/core/util and 1 other directory.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Mon Jun 16 19:23:34 EDT 2008


Author: clebert.suconic at jboss.com
Date: 2008-06-16 19:23:34 -0400 (Mon, 16 Jun 2008)
New Revision: 4489

Modified:
   trunk/src/main/org/jboss/messaging/util/TypedProperties.java
   trunk/tests/src/org/jboss/messaging/tests/unit/core/util/TypedPropertiesTest.java
Log:
Adding assertion on size

Modified: trunk/src/main/org/jboss/messaging/util/TypedProperties.java
===================================================================
--- trunk/src/main/org/jboss/messaging/util/TypedProperties.java	2008-06-16 19:26:06 UTC (rev 4488)
+++ trunk/src/main/org/jboss/messaging/util/TypedProperties.java	2008-06-16 23:23:34 UTC (rev 4489)
@@ -57,6 +57,7 @@
  * TODO - should have typed property getters and do conversions herein
  * 
  * @author <a href="mailto:tim.fox at jboss.com">Tim Fox</a>
+ * @author <a href="mailto:clebert.suconic at jboss.com">Clebert Suconic</a>
  *
  */
 public class TypedProperties implements EncodingSupport

Modified: trunk/tests/src/org/jboss/messaging/tests/unit/core/util/TypedPropertiesTest.java
===================================================================
--- trunk/tests/src/org/jboss/messaging/tests/unit/core/util/TypedPropertiesTest.java	2008-06-16 19:26:06 UTC (rev 4488)
+++ trunk/tests/src/org/jboss/messaging/tests/unit/core/util/TypedPropertiesTest.java	2008-06-16 23:23:34 UTC (rev 4489)
@@ -234,6 +234,8 @@
 
       MessagingBuffer buffer = new IoBufferWrapper(1024);
       props.encode(buffer);
+      
+      assertEquals(props.getEncodeSize(), buffer.position());
 
       buffer.flip();
 




More information about the jboss-cvs-commits mailing list