コード例 #1
0
 @Test
 public void testWithoutFacetPrefix() throws Exception {
   SolrQueryMethod method = getQueryMethodByName("findByNameFacetOnPopularity", String.class);
   Assert.assertNull(method.getFacetPrefix());
 }
コード例 #2
0
 @Test
 public void testWithFacetPrefix() throws Exception {
   SolrQueryMethod method = getQueryMethodByName("findAllFacetOnNameWithPrefix");
   Assert.assertEquals(1, method.getFacetFields().size());
   Assert.assertEquals("ip", method.getFacetPrefix());
 }