Package com.tll.dao.db4o.test

Examples of com.tll.dao.db4o.test.TestDb4oDaoModule


public class Db4oPagingSearchListHandlerTest extends AbstractPagingSearchListHandlerTest {

  @Override
  protected void addModules(List<Module> modules) {
    super.addModules(modules);
    modules.add(new TestDb4oDaoModule(getConfig()));
    modules.add(new Db4oDbShellModule());
    modules.add(new Module() {

      @Override
      public void configure(Binder binder) {
View Full Code Here


  @Override
  protected void beforeClass() {
    // create the db shell first (before test injector creation) to avoid db4o
    // file lock when objectcontainer is instantiated
    final Config cfg = getConfig();
    final Injector i = buildInjector(new TestDb4oDaoModule(cfg), new Db4oDbShellModule() );
    final IDbShell dbs = i.getInstance(IDbShell.class);
    dbs.drop();
    dbs.create();

    super.beforeClass();
View Full Code Here

  }

  @Override
  protected void addModules(List<Module> modules) {
    super.addModules(modules);
    modules.add(new TestDb4oDaoModule(getConfig()));
    modules.add(new EGraphModule(TestPersistenceUnitEntityGraphBuilder.class));
  }
View Full Code Here

   */
  public Db4oDbShellTest() {
    super();
    // kill the existing db4o file if present
    final Config cfg = Config.load();
    final Injector i = buildInjector(new TestDb4oDaoModule(cfg));
    final File f = new File(i.getInstance(Key.get(URI.class, Db4oFile.class)));
    f.delete();
  }
View Full Code Here

TOP

Related Classes of com.tll.dao.db4o.test.TestDb4oDaoModule

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.