@Test public void testRemoveAttachment() throws Exception { _message.addAttachment("attach1", new DummyDS("attach1", "text/xml")); Assert.assertNotNull(_message.getAttachment("attach1")); _message.removeAttachment("attach1"); Assert.assertNull(_message.getAttachment("attach1")); }
@Override public void removeAttachment(final String name) { _attachments.remove(name); }
DefaultMessage implements Message { @Override public void removeAttachment(final String name) { _attachments.remove(name); } }
DefaultMessage implements Message { @Override public void removeAttachment(final String name) { _attachments.remove(name); } DefaultMessage(); }
DefaultMessage implements Message { @Override public void removeAttachment(final String name) { _attachments.remove(name); } DefaultMessage(); DefaultMessage setTransformerRegistry(TransformerRegistry transformerRegistry); @Override DefaultMessage addAttachment(final String name, final DataSource attachment); @Override DataSource getAttachment(final String name); @Override void removeAttachment(final String name); @Override Map<String, DataSource> getAttachmentMap(); @Override Object getContent(); @Override Context getContext(); @Override T getContent(final Class<T> type); @Override DefaultMessage setContent(final Object content); @Override Message copy(); boolean isSent(); void send(); }
DefaultMessage implements Message { @Override public void removeAttachment(final String name) { _attachments.remove(name); } DefaultMessage(); DefaultMessage setTransformerRegistry(TransformerRegistry transformerRegistry); @Override DefaultMessage addAttachment(final String name, final DataSource attachment); @Override DataSource getAttachment(final String name); @Override void removeAttachment(final String name); @Override Map<String, DataSource> getAttachmentMap(); @Override Object getContent(); @Override Context getContext(); @Override T getContent(final Class<T> type); @Override DefaultMessage setContent(final Object content); @Override Message copy(); boolean isSent(); void send();  }