コード例 #1
0
 @Test
 public void testQueryWithNegativeTimeAllowed() throws Exception {
   SolrQueryMethod method =
       getQueryMethodByName("findAllWithNegativeTimeRestriction", String.class);
   Assert.assertNull(method.getTimeAllowed());
 }
コード例 #2
0
 @Test
 public void testQueryWithPositiveTimeAllowed() throws Exception {
   SolrQueryMethod method =
       getQueryMethodByName("findAllWithPositiveTimeRestriction", String.class);
   Assert.assertEquals(Integer.valueOf(250), method.getTimeAllowed());
 }