@Test public void testSetKeyTranslator() throws Exception { CacheEntryEvaluator eval = new CacheEntryEvaluator(); assertNull(eval.getKeyTranslator()); assertNotNull(eval.keyTranslator()); MetadataCacheValueTranslator translator = new MetadataCacheValueTranslator(DEFAULT_METADATA_KEY); eval.setKeyTranslator(translator); assertEquals(translator, eval.getKeyTranslator()); assertEquals(translator, eval.keyTranslator()); try { eval.setKeyTranslator(null); fail(); } catch (IllegalArgumentException e) { } assertEquals(translator, eval.getKeyTranslator()); assertEquals(translator, eval.keyTranslator()); }
public void setKeyTranslator(CacheKeyTranslator translator) { keyTranslator = Args.notNull(translator, "keyTranslator"); }
CacheEntryEvaluator { public void setKeyTranslator(CacheKeyTranslator translator) { keyTranslator = Args.notNull(translator, "keyTranslator"); } }
CacheEntryEvaluator { public void setKeyTranslator(CacheKeyTranslator translator) { keyTranslator = Args.notNull(translator, "keyTranslator"); } CacheEntryEvaluator(); }
CacheEntryEvaluator { public void setKeyTranslator(CacheKeyTranslator translator) { keyTranslator = Args.notNull(translator, "keyTranslator"); } 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 setKeyTranslator(CacheKeyTranslator translator) { keyTranslator = Args.notNull(translator, "keyTranslator"); } 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();  }