5758596061626364656667
Attachment at = msg.getAttachment(); assertEquals((msg != null), true); at.addItem(new ExampleObject(0)); // un-named at.addItemAt(0, new ExampleObject(0)); // un-named; try { at.addItem(new Object());
6263646566676869707172
at.addItem(new ExampleObject(0)); // un-named at.addItemAt(0, new ExampleObject(0)); // un-named; try { at.addItem(new Object()); fail(); } catch (IllegalArgumentException ex) {
7879808182838485868788
at.put("foobar", new ExampleObject(1)); assertEquals(at.getNamedCount(), 1); at.addItem(new ExampleObject(1)); at.addItem(new ExampleObject(2)); assertEquals((at.getNames() != null), true); assertEquals((at.removeItemAt(0) != null), true);
7980818283848586878889
115116117118119120121122123124125
120121122123124125126127128129130
136137138139140141142143144145146
137138139140141142143144145146147