Author: ron.sigal(a)jboss.com
Date: 2010-08-31 11:12:35 -0400 (Tue, 31 Aug 2010)
New Revision: 6077
Modified:
remoting3/trunk/jboss-remoting/src/test/java/org/jboss/remoting3/test/AttachmentsTestCase.java
Log:
JBREM-1228: Added test for null attachment.
Modified:
remoting3/trunk/jboss-remoting/src/test/java/org/jboss/remoting3/test/AttachmentsTestCase.java
===================================================================
---
remoting3/trunk/jboss-remoting/src/test/java/org/jboss/remoting3/test/AttachmentsTestCase.java 2010-08-31
02:49:18 UTC (rev 6076)
+++
remoting3/trunk/jboss-remoting/src/test/java/org/jboss/remoting3/test/AttachmentsTestCase.java 2010-08-31
15:12:35 UTC (rev 6077)
@@ -110,8 +110,12 @@
assertFalse(attachments.removeAttachment(key3, value3));
assertEquals(value4, attachments.getAttachment(key3));
assertTrue(attachments.removeAttachment(key3, new ComparableObject(7)));
- assertNull(attachments.getAttachment(key3));
+ assertNull(attachments.getAttachment(key3));
+ Attachments.Key<Object> key4 = new
Attachments.Key<Object>(Object.class);
+ attachments.attach(key4, null);
+ assertNull(attachments.getAttachment(key4));
+
log.info(getName() + " PASSES");
} finally {
exit();
Show replies by date