@Test public void testAddValueToMessage() throws Exception { StaticCacheValueTranslator translator = new StaticCacheValueTranslator().withValue("Hello"); AdaptrisMessage message = createMessage(); try { translator.addValueToMessage(message, "some value"); fail(); } catch (UnsupportedOperationException expected) { } }
public StaticCacheValueTranslator withValue(String s) { setValue(s); return this; }
StaticCacheValueTranslator implements CacheValueTranslator<String>, CacheKeyTranslator { public StaticCacheValueTranslator withValue(String s) { setValue(s); return this; } }
StaticCacheValueTranslator implements CacheValueTranslator<String>, CacheKeyTranslator { public StaticCacheValueTranslator withValue(String s) { setValue(s); return this; } StaticCacheValueTranslator();  StaticCacheValueTranslator(String s); }
StaticCacheValueTranslator implements CacheValueTranslator<String>, CacheKeyTranslator { public StaticCacheValueTranslator withValue(String s) { setValue(s); return this; } StaticCacheValueTranslator();  StaticCacheValueTranslator(String s); @Override String getValueFromMessage(AdaptrisMessage msg); void setValue(String s); String getValue(); StaticCacheValueTranslator withValue(String s); @Override String getKeyFromMessage(AdaptrisMessage msg); }
StaticCacheValueTranslator implements CacheValueTranslator<String>, CacheKeyTranslator { public StaticCacheValueTranslator withValue(String s) { setValue(s); return this; } StaticCacheValueTranslator();  StaticCacheValueTranslator(String s); @Override String getValueFromMessage(AdaptrisMessage msg); void setValue(String s); String getValue(); StaticCacheValueTranslator withValue(String s); @Override String getKeyFromMessage(AdaptrisMessage msg);  }