assertEquals(discs[4], res.get(1));
}
public void testSearchSingleFieldBeginSingleResults() {
Discovery4Search[] discs = new Discovery4Search[5];
discs[0] = new Discovery4Search("alpha", LongAutoID_CURIE);
discs[1] = new Discovery4Search("beta", LongAutoID_CURIE);
discs[2] = new Discovery4Search("gamma", LongAutoID_CURIE);
discs[3] = new Discovery4Search("delta", LongAutoID_CURIE);
discs[4] = new Discovery4Search("eta", LongAutoID_CURIE);
pm.insert((Object[])discs).get();
QueryAsync<Discovery4Search> query =
pm.createQuery(Discovery4Search.class).search("gamma*", "name");