use of org.apache.solr.search.ValueSourceParser in project lucene-solr by apache.
the class SOLR749Test method testConstruction.
public void testConstruction() throws Exception {
SolrCore core = h.getCore();
assertTrue("core is null and it shouldn't be", core != null);
QParserPlugin parserPlugin = core.getQueryPlugin(QParserPlugin.DEFAULT_QTYPE);
assertTrue("parserPlugin is null and it shouldn't be", parserPlugin != null);
assertTrue("parserPlugin is not an instanceof " + FooQParserPlugin.class, parserPlugin instanceof FooQParserPlugin);
ValueSourceParser vsp = core.getValueSourceParser("boost");
assertTrue("vsp is null and it shouldn't be", vsp != null);
assertTrue("vsp is not an instanceof " + DummyValueSourceParser.class, vsp instanceof DummyValueSourceParser);
}
Aggregations