package dovetaildb.dbservice;
import dovetaildb.bagindex.MemoryBlueSteelBagIndex;
public class BagIndexBridgeTest extends DbServiceTest {
protected DbService createService() {
BagIndexBridge b = new BagIndexBridge();
b.setBagIndexFactory(new BagEntryFactory() {
public BagEntry makeBagEntry(String bagName) {
//return new BagEntry(new TrivialBagIndex(), new DefaultTermEncoder(), 0);
return new BagEntry(new MemoryBlueSteelBagIndex(), new DefaultTermEncoder(), 0);
}
});
b.setTxnMapper(new ProcessTransactionMapper());
return b;
}
}