@Test public void testReplacementNoMatch() throws Exception { MapMetadataService service = new MapMetadataService(); service.setMetadataKey(null); AdaptrisMessage msg = AdaptrisMessageFactory.getDefaultInstance().newMessage("zzzzzzzz"); execute(service, msg); assertFalse(msg.containsKey(METADATA_KEY)); }
public void setMetadataKey(String s) { this.metadataKey = s; }
MapMetadataService extends MetadataServiceImpl { public void setMetadataKey(String s) { this.metadataKey = s; } }
MapMetadataService extends MetadataServiceImpl { public void setMetadataKey(String s) { this.metadataKey = s; } MapMetadataService(); }
MapMetadataService extends MetadataServiceImpl { public void setMetadataKey(String s) { this.metadataKey = s; } MapMetadataService(); @Override void doService(AdaptrisMessage msg); KeyValuePairList getMetadataKeyMap(); void setMetadataKeyMap(KeyValuePairList m); String getMetadataKey(); void setMetadataKey(String s); }
MapMetadataService extends MetadataServiceImpl { public void setMetadataKey(String s) { this.metadataKey = s; } MapMetadataService(); @Override void doService(AdaptrisMessage msg); KeyValuePairList getMetadataKeyMap(); void setMetadataKeyMap(KeyValuePairList m); String getMetadataKey(); void setMetadataKey(String s);  }