@Test public void testDoServiceWithReferencedKey() throws CoreException { AdaptrisMessage msg = AdaptrisMessageFactory.getDefaultInstance() .newMessage(); msg.addMessageHeader("key999", "key666"); m1 = new MetadataElement("$$key999", "value666"); service = new AddMetadataService(); service.addMetadataElement(m1); execute(service, msg); assertEquals("value666", msg.getMetadataValue("key666")); }
public void addMetadataElement(MetadataElement element) { metadataElements.add(element); }
AddMetadataService extends MetadataServiceImpl { public void addMetadataElement(MetadataElement element) { metadataElements.add(element); } }
AddMetadataService extends MetadataServiceImpl { public void addMetadataElement(MetadataElement element) { metadataElements.add(element); } AddMetadataService();  AddMetadataService(Collection<MetadataElement> elements);  AddMetadataService(MetadataElement... elements); }
AddMetadataService extends MetadataServiceImpl { public void addMetadataElement(MetadataElement element) { metadataElements.add(element); } AddMetadataService();  AddMetadataService(Collection<MetadataElement> elements);  AddMetadataService(MetadataElement... elements); @Override void doService(AdaptrisMessage msg); Set<MetadataElement> getMetadataElements(); void setMetadataElements(Set<MetadataElement> s); void addMetadataElement(MetadataElement element); void addMetadataElement(String key, String value); Boolean getOverwrite(); void setOverwrite(Boolean b); }
AddMetadataService extends MetadataServiceImpl { public void addMetadataElement(MetadataElement element) { metadataElements.add(element); } AddMetadataService();  AddMetadataService(Collection<MetadataElement> elements);  AddMetadataService(MetadataElement... elements); @Override void doService(AdaptrisMessage msg); Set<MetadataElement> getMetadataElements(); void setMetadataElements(Set<MetadataElement> s); void addMetadataElement(MetadataElement element); void addMetadataElement(String key, String value); Boolean getOverwrite(); void setOverwrite(Boolean b);  }