Package com.tll.dao.db4o.test

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


  @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) {
        binder.bind(IDbTrans.class).to(Db4oTrans.class).in(Scopes.SINGLETON);
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

        bind(IEntityMetadata.class).to(EntityMetadata.class);
        bind(IEntityFactory.class).to(TestEntityFactory.class);
        bind(URI.class).annotatedWith(Db4oFile.class).toInstance(Db4oDbShell.getDb4oClasspathFileRef("testshelldb"));
      }
    });
    modules.add(new Db4oDbShellModule());
  }
View Full Code Here

  }

  @Override
  protected void addModules(List<Module> modules) {
    super.addModules(modules);
    modules.add(new Db4oDbShellModule());
  }
View Full Code Here

            String dbPath = getConfig().getString(Db4oConfigKeys.DB4O_FILENAME.getKey());
            return Db4oDbShell.getDb4oClasspathFileRef(dbPath);
          }
        }).in(Scopes.SINGLETON);
      }
    }, new Db4oDbShellModule());
    IDbShell dbShell = i.getInstance(IDbShell.class);
    dbShell.drop();
    dbShell.create();
  }
View Full Code Here

  protected void addModules(List<Module> modules) {
    super.addModules(modules);
    modules.add(new SmbizDb4oPersistModule(getConfig()));
   
    // test related
    modules.add(new Db4oDbShellModule());
    modules.add(new Module() {
     
      @Override
      public void configure(Binder binder) {
        binder.bind(IDbTrans.class).to(Db4oTrans.class).in(Scopes.SINGLETON);
View Full Code Here

            String dbPath = getConfig().getString(Db4oConfigKeys.DB4O_FILENAME.getKey());
            return Db4oDbShell.getDb4oClasspathFileRef(dbPath);
          }
        }).in(Scopes.SINGLETON);
      }
    }, new Db4oDbShellModule());
    IDbShell dbShell = i.getInstance(IDbShell.class);
    dbShell.drop();
    dbShell.create();
    super.beforeClass();
  }
View Full Code Here

            String dbPath = getConfig().getString(Db4oConfigKeys.DB4O_FILENAME.getKey());
            return Db4oDbShell.getDb4oClasspathFileRef(dbPath);
          }
        }).in(Scopes.SINGLETON);
      }
    }, new Db4oDbShellModule());
    IDbShell dbShell = i.getInstance(IDbShell.class);
    dbShell.drop();
    dbShell.create();
    super.beforeClass();
  }
View Full Code Here

  protected void addModules(List<Module> modules) {
    super.addModules(modules);
    modules.add(new SmbizDb4oPersistModule(getConfig()));
   
    // test related
    modules.add(new Db4oDbShellModule());
    modules.add(new Module() {
     
      @Override
      public void configure(Binder binder) {
        binder.bind(IDbTrans.class).to(Db4oTrans.class).in(Scopes.SINGLETON);
View Full Code Here

  @Override
  protected void addModules(List<Module> modules) {
    super.addModules(modules);
    modules.add(new SmbizDb4oDaoModule(getConfig()));
    modules.add(new SmbizEGraphModule());
    modules.add(new Db4oDbShellModule());
  }
View Full Code Here

TOP

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

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.