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