Selector<Element> selector6 = new PrefixSelector<Element>("Bloom", "filter", "technique", "technology");
assertFalse(selector6.select(elem, ctx));
}
public void testScoredPrefixSelector() {
Element elem1 = new SimpleElement(1);
elem1.setTerms(new String[] {"ibm", "services"});
elem1.setTimestamp(System.currentTimeMillis());
Element elem2 = new SimpleElement(1);
elem2.setTerms(new String[] {"ibm", "global", "services"});
elem2.setTimestamp(System.currentTimeMillis());
Element elem3 = new SimpleElement(1);
elem3.setTerms(new String[] {"ibm", "global", "business", "services"});
elem3.setTimestamp(System.currentTimeMillis());
SelectorContext ctx = new SelectorContext();
Selector<Element> selector;
// First selector