assertEquals("3", second.getItem().getID());
assertEquals(-0.3, second.getValue(), EPSILON);
}
public void testRecommendedBecause() throws Exception {
ItemBasedRecommender recommender = buildRecommender2();
List<RecommendedItem> recommendedBecause = recommender.recommendedBecause("test1", "4", 3);
assertNotNull(recommendedBecause);
assertEquals(3, recommendedBecause.size());
RecommendedItem first = recommendedBecause.get(0);
RecommendedItem second = recommendedBecause.get(1);
RecommendedItem third = recommendedBecause.get(2);