assertEquals(0.2f, first.getValue(), EPSILON);
}
@Test
public void testMostSimilarToMultipleDontExcludeIfNotSimilarToAll() throws Exception {
ItemBasedRecommender recommender = buildRecommender2();
List<RecommendedItem> similar = recommender.mostSimilarItems(new long[] {1, 2, 4}, 10, false);
assertNotNull(similar);
assertEquals(2, similar.size());
RecommendedItem first = similar.get(0);
RecommendedItem second = similar.get(1);
assertEquals(0, first.getItemID());