@Test public void testParametrizedFilter() { List<ProductBean> found = repo.findByPopularityLessThan(4, true); Assert.assertEquals(2, found.size()); }
@Test public void testFindByLessThan() { List<ProductBean> found = repo.findByPopularityLessThan(3); Assert.assertEquals(1, found.size()); Assert.assertEquals(UNPOPULAR_AVAILABLE_PRODUCT.getId(), found.get(0).getId()); }