@Test public void testAddMetadataElement() { AddMetadataService s = new AddMetadataService(); MetadataElement me = new MetadataElement("key3", "val3"); s.addMetadataElement(me); assertTrue(s.getMetadataElements().contains(me)); try { s.addMetadataElement(null, null); fail("expected IllegalArgumnetException on service.addMetadataElement(null, null)"); } catch (IllegalArgumentException e) { } s.addMetadataElement(m1.getKey(), m1.getValue()); assertTrue(s.getMetadataElements().contains(m1)); }
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);  }