@Test public void testAddValueToMessage() throws Exception { MetadataCacheValueTranslator translator = new MetadataCacheValueTranslator(KEY_TWO); AdaptrisMessage message = createMessage(); translator.addValueToMessage(message, "three"); assertEquals("three", message.getMetadataValue(KEY_TWO)); }
@Override public void addValueToMessage(AdaptrisMessage msg, String value) throws CoreException { msg.addMetadata(getMetadataKey(), value); }
MetadataCacheValueTranslator implements CacheValueTranslator<String>, CacheKeyTranslator { @Override public void addValueToMessage(AdaptrisMessage msg, String value) throws CoreException { msg.addMetadata(getMetadataKey(), value); } }
MetadataCacheValueTranslator implements CacheValueTranslator<String>, CacheKeyTranslator { @Override public void addValueToMessage(AdaptrisMessage msg, String value) throws CoreException { msg.addMetadata(getMetadataKey(), value); } MetadataCacheValueTranslator();  MetadataCacheValueTranslator(String s); }
MetadataCacheValueTranslator implements CacheValueTranslator<String>, CacheKeyTranslator { @Override public void addValueToMessage(AdaptrisMessage msg, String value) throws CoreException { msg.addMetadata(getMetadataKey(), value); } MetadataCacheValueTranslator();  MetadataCacheValueTranslator(String s); @Override String getValueFromMessage(AdaptrisMessage msg); @Override void addValueToMessage(AdaptrisMessage msg, String value); void setMetadataKey(String metadataKey); String getMetadataKey(); @Override String getKeyFromMessage(AdaptrisMessage msg); }
MetadataCacheValueTranslator implements CacheValueTranslator<String>, CacheKeyTranslator { @Override public void addValueToMessage(AdaptrisMessage msg, String value) throws CoreException { msg.addMetadata(getMetadataKey(), value); } MetadataCacheValueTranslator();  MetadataCacheValueTranslator(String s); @Override String getValueFromMessage(AdaptrisMessage msg); @Override void addValueToMessage(AdaptrisMessage msg, String value); void setMetadataKey(String metadataKey); String getMetadataKey(); @Override String getKeyFromMessage(AdaptrisMessage msg);  }