Package org.springframework.data.solr.core.QueryParserBase

Examples of org.springframework.data.solr.core.QueryParserBase.BasePredicateProcessor


  }

  @SuppressWarnings("rawtypes")
  @Test
  public void testBaseCritieraEntryProcessor() {
    BasePredicateProcessor processor = this.parser.new BasePredicateProcessor() {

      @Override
      public boolean canProcess(Predicate predicate) {
        return true;
      }

      @Override
      protected Object doProcess(Predicate predicate, Field field) {
        return "X";
      }
    };

    Assert.assertNull(processor.process(null, null));
    Assert.assertNull(processor.process(new Predicate("some key", null), null));
    Assert.assertEquals("X", processor.process(new Predicate("some key", SOME_VALUE), null));
  }
View Full Code Here

TOP

Related Classes of org.springframework.data.solr.core.QueryParserBase.BasePredicateProcessor

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.