@Test public void testSum() { assertEquals(store.sum("foo"), "acbd18db4cc2f85cedef654fccc4a4d8"); assertEquals(store.sum("bar"), "37b51d194a7513e45b56f6524f2d51f2"); }
@VisibleForTesting String sum(final String value) { return Hashing.md5().hashString(value, encoding).toString(); }
RedisStore { @VisibleForTesting String sum(final String value) { return Hashing.md5().hashString(value, encoding).toString(); } }
RedisStore { @VisibleForTesting String sum(final String value) { return Hashing.md5().hashString(value, encoding).toString(); } @Inject  RedisStore(@Named("sentence") final Keymaker sentencens,
        @Named("index") final Keymaker indexns, final WordParser wordParser, final Jedis redis,
        final @Named(REDIS_PASSWORD) Optional<String> redisPassword, final Charset encoding); }
RedisStore { @VisibleForTesting String sum(final String value) { return Hashing.md5().hashString(value, encoding).toString(); } @Inject  RedisStore(@Named("sentence") final Keymaker sentencens,
        @Named("index") final Keymaker indexns, final WordParser wordParser, final Jedis redis,
        final @Named(REDIS_PASSWORD) Optional<String> redisPassword, final Charset encoding); void add(final String sentence); void delete(final String sentence); Set<String> findAll(); String getRhyme(final String sentence); }
RedisStore { @VisibleForTesting String sum(final String value) { return Hashing.md5().hashString(value, encoding).toString(); } @Inject  RedisStore(@Named("sentence") final Keymaker sentencens,
        @Named("index") final Keymaker indexns, final WordParser wordParser, final Jedis redis,
        final @Named(REDIS_PASSWORD) Optional<String> redisPassword, final Charset encoding); void add(final String sentence); void delete(final String sentence); Set<String> findAll(); String getRhyme(final String sentence);  }