@Test public void testSetMetadataKeys() { FormattedMetadataDestination dest = new FormattedMetadataDestination(); dest.addMetadataKey("key1"); dest.addMetadataKey("key2"); List<String> keys = new ArrayList<>(); keys.add("key1"); keys.add("key2"); dest.setMetadataKeys(keys); assertTrue(dest.getMetadataKeys().equals(keys)); try { dest.setMetadataKeys(null); fail(); } catch (IllegalArgumentException expected) { } }
public void setMetadataKeys(List<String> l) { metadataKeys = Args.notNull(l, "metadataKeys"); }
FormattedMetadataDestination implements MessageDrivenDestination { public void setMetadataKeys(List<String> l) { metadataKeys = Args.notNull(l, "metadataKeys"); } }
FormattedMetadataDestination implements MessageDrivenDestination { public void setMetadataKeys(List<String> l) { metadataKeys = Args.notNull(l, "metadataKeys"); } FormattedMetadataDestination(); }
FormattedMetadataDestination implements MessageDrivenDestination { public void setMetadataKeys(List<String> l) { metadataKeys = Args.notNull(l, "metadataKeys"); } FormattedMetadataDestination(); void addMetadataKey(String s); List<String> getMetadataKeys(); ElementFormatter getElementFormatter(); void setElementFormatter(ElementFormatter elementFormatter); void setMetadataKeys(List<String> l); void addObjectMetadataKey(String s); List<String> getObjectMetadataKeys(); void setObjectMetadataKeys(List<String> l); @Override String getDestination(AdaptrisMessage msg); String getDestinationTemplate(); void setDestinationTemplate(String s); }
FormattedMetadataDestination implements MessageDrivenDestination { public void setMetadataKeys(List<String> l) { metadataKeys = Args.notNull(l, "metadataKeys"); } FormattedMetadataDestination(); void addMetadataKey(String s); List<String> getMetadataKeys(); ElementFormatter getElementFormatter(); void setElementFormatter(ElementFormatter elementFormatter); void setMetadataKeys(List<String> l); void addObjectMetadataKey(String s); List<String> getObjectMetadataKeys(); void setObjectMetadataKeys(List<String> l); @Override String getDestination(AdaptrisMessage msg); String getDestinationTemplate(); void setDestinationTemplate(String s);  }