modules.add(new TestDb4oDaoModule(getConfig()));
modules.add(new Db4oDbShellModule());
}
public void test() throws Exception {
final IDbShell db = injector.getInstance(IDbShell.class);
try {
Assert.assertTrue(db instanceof Db4oDbShell);
Assert.assertTrue(db.create());
Assert.assertTrue(db.stub());
Assert.assertTrue(db.clear());
Assert.assertTrue(db.delete());
db.restub();
}
finally {
// reset
Assert.assertTrue(db.delete());
}
}