@Test public void testReplacement_Resolved() throws Exception { MapMetadataService service = createService(); KeyValuePairList kvps = new KeyValuePairList(); kvps.addKeyValuePair(new KeyValuePair(BASIC_MATCH_VALUE, "%message{ResolvedKey}")); service.setMetadataKeyMap(kvps); AdaptrisMessage msg = AdaptrisMessageFactory.getDefaultInstance().newMessage("zzzzzzzz"); msg.addMetadata(METADATA_KEY, BASIC_MATCH_VALUE); msg.addMetadata("ResolvedKey", BASIC_NEW_VALUE); execute(service, msg); assertTrue(msg.getMetadataValue(METADATA_KEY).equals(BASIC_NEW_VALUE)); }
public void setMetadataKeyMap(KeyValuePairList m) { this.metadataKeyMap = Args.notNull(m, "metadataKeyMap"); }
MapMetadataService extends MetadataServiceImpl { public void setMetadataKeyMap(KeyValuePairList m) { this.metadataKeyMap = Args.notNull(m, "metadataKeyMap"); } }
MapMetadataService extends MetadataServiceImpl { public void setMetadataKeyMap(KeyValuePairList m) { this.metadataKeyMap = Args.notNull(m, "metadataKeyMap"); } MapMetadataService(); }
MapMetadataService extends MetadataServiceImpl { public void setMetadataKeyMap(KeyValuePairList m) { this.metadataKeyMap = Args.notNull(m, "metadataKeyMap"); } MapMetadataService(); @Override void doService(AdaptrisMessage msg); KeyValuePairList getMetadataKeyMap(); void setMetadataKeyMap(KeyValuePairList m); String getMetadataKey(); void setMetadataKey(String s); }
MapMetadataService extends MetadataServiceImpl { public void setMetadataKeyMap(KeyValuePairList m) { this.metadataKeyMap = Args.notNull(m, "metadataKeyMap"); } MapMetadataService(); @Override void doService(AdaptrisMessage msg); KeyValuePairList getMetadataKeyMap(); void setMetadataKeyMap(KeyValuePairList m); String getMetadataKey(); void setMetadataKey(String s);  }