@Test public void testSetValueTranslator() throws Exception { CacheEntryEvaluator eval = new CacheEntryEvaluator(); assertNull(eval.getValueTranslator()); assertNotNull(eval.valueTranslator()); MetadataCacheValueTranslator translator = new MetadataCacheValueTranslator(DEFAULT_METADATA_KEY); eval.setValueTranslator(translator); assertEquals(translator, eval.getValueTranslator()); assertEquals(translator, eval.valueTranslator()); try { eval.setValueTranslator(null); fail(); } catch (IllegalArgumentException e) { } assertEquals(translator, eval.getValueTranslator()); assertEquals(translator, eval.valueTranslator()); }
public void setValueTranslator(CacheValueTranslator translator) { valueTranslator = Args.notNull(translator, "valueTranslator"); }
CacheEntryEvaluator { public void setValueTranslator(CacheValueTranslator translator) { valueTranslator = Args.notNull(translator, "valueTranslator"); } }
CacheEntryEvaluator { public void setValueTranslator(CacheValueTranslator translator) { valueTranslator = Args.notNull(translator, "valueTranslator"); } CacheEntryEvaluator(); }
CacheEntryEvaluator { public void setValueTranslator(CacheValueTranslator translator) { valueTranslator = Args.notNull(translator, "valueTranslator"); } CacheEntryEvaluator(); void setErrorOnEmptyKey(Boolean bool); Boolean getErrorOnEmptyKey(); void setErrorOnEmptyValue(Boolean bool); Boolean getErrorOnEmptyValue(); void setKeyTranslator(CacheKeyTranslator translator); CacheKeyTranslator getKeyTranslator(); CacheKeyTranslator keyTranslator(); void setValueTranslator(CacheValueTranslator translator); CacheValueTranslator getValueTranslator(); CacheValueTranslator valueTranslator(); String getFriendlyName(); void setFriendlyName(String name); String friendlyName(); }
CacheEntryEvaluator { public void setValueTranslator(CacheValueTranslator translator) { valueTranslator = Args.notNull(translator, "valueTranslator"); } CacheEntryEvaluator(); void setErrorOnEmptyKey(Boolean bool); Boolean getErrorOnEmptyKey(); void setErrorOnEmptyValue(Boolean bool); Boolean getErrorOnEmptyValue(); void setKeyTranslator(CacheKeyTranslator translator); CacheKeyTranslator getKeyTranslator(); CacheKeyTranslator keyTranslator(); void setValueTranslator(CacheValueTranslator translator); CacheValueTranslator getValueTranslator(); CacheValueTranslator valueTranslator(); String getFriendlyName(); void setFriendlyName(String name); String friendlyName();  }