SimpleNameSubstitutionStrategy implements NameSubstitutionStrategy { @Override public String inflate(String value) { inflateCalls++; return inflateCache.get(value); } SimpleNameSubstitutionStrategy(); @Override void setup(Map config); @Override String deflate(String value); @Override String inflate(String value); static String wrap(String str); void setSubstitutionList(List<Pair<String, String>> substitutionList); long getDeflateCalls(); long getDeflateCacheMisses(); long getInflateCalls(); long getInflateCacheMisses(); static final String SUBS_DELIM; }
@Test public void testInflate() { String test = testSubject.inflate(SimpleNameSubstitutionStrategy.wrap(VALUE1)); assertThat(test, is(KEY1)); }