FileItemSimilarity implements ItemSimilarity { @Override public String toString() { return "FileItemSimilarity[dataFile:" + dataFile + ']'; } FileItemSimilarity(File dataFile);  FileItemSimilarity(File dataFile, long minReloadIntervalMS); @Override double[] itemSimilarities(long itemID1, long[] itemID2s); @Override long[] allSimilarItemIDs(long itemID); @Override double itemSimilarity(long itemID1, long itemID2); @Override void refresh(Collection<Refreshable> alreadyRefreshed); @Override String toString(); static final long DEFAULT_MIN_RELOAD_INTERVAL_MS; }
@Test public void testToString() throws Exception { ItemSimilarity similarity = new FileItemSimilarity(testFile); assertTrue(!similarity.toString().isEmpty()); }