Search in sources :

Example 1 with NullCacheValueTranslator

use of com.adaptris.core.services.cache.CacheEntryEvaluator.NullCacheValueTranslator in project interlok by adaptris.

the class CacheEntryEvaluatorTest method testNullCacheValueTranslator.

@Test
public void testNullCacheValueTranslator() throws Exception {
    NullCacheValueTranslator cvt = new CacheEntryEvaluator.NullCacheValueTranslator();
    assertNull(cvt.getValueFromMessage(createMessage(Collections.EMPTY_SET)));
    cvt.addValueToMessage(createMessage(Collections.EMPTY_SET), null);
}
Also used : NullCacheValueTranslator(com.adaptris.core.services.cache.CacheEntryEvaluator.NullCacheValueTranslator) Test(org.junit.Test)

Aggregations

NullCacheValueTranslator (com.adaptris.core.services.cache.CacheEntryEvaluator.NullCacheValueTranslator)1 Test (org.junit.Test)1