Package com.tll.dao

Examples of com.tll.dao.IDbShell.create()


    final Config cfg = Config.load();
    cfg.setProperty(Db4oDaoModule.ConfigKeys.DB4O_EMPLOY_SPRING_TRANSACTIONS.getKey(), false);
    final Injector i = buildInjector(new TestDb4oDaoModule(cfg), new Db4oDbShellModule() );
    final IDbShell dbs = i.getInstance(IDbShell.class);
    dbs.delete();
    dbs.create();

    super.beforeClass();
  }

  /**
 
View Full Code Here


    // 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();
  }

  @Override
View Full Code Here

  }
 
  public void test() throws Exception {
    final IDbShell db = injector.getInstance(IDbShell.class);
    Assert.assertTrue(db instanceof Db4oDbShell);
    db.create();
    db.addData();
    db.drop();
  }

  /**
 
View Full Code Here

        }).in(Scopes.SINGLETON);
      }
    }, new Db4oDbShellModule());
    IDbShell dbShell = i.getInstance(IDbShell.class);
    dbShell.drop();
    dbShell.create();
  }

  @Override
  protected void afterClass() {
    super.afterClass();
View Full Code Here

        }).in(Scopes.SINGLETON);
      }
    }, new Db4oDbShellModule());
    IDbShell dbShell = i.getInstance(IDbShell.class);
    dbShell.drop();
    dbShell.create();
    super.beforeClass();
  }

  @Override
  protected void afterClass() {
View Full Code Here

        }).in(Scopes.SINGLETON);
      }
    }, new Db4oDbShellModule());
    IDbShell dbShell = i.getInstance(IDbShell.class);
    dbShell.drop();
    dbShell.create();
    super.beforeClass();
  }

  @Override
  protected void afterClass() {
View Full Code Here

    final Config cfg = getConfig();
    cfg.setProperty(Db4oDaoModule.ConfigKeys.DB4O_EMPLOY_SPRING_TRANSACTIONS.getKey(), false);
    final Injector i = buildInjector(new TestDb4oDaoModule(cfg), new Db4oDbShellModule() );
    final IDbShell dbs = i.getInstance(IDbShell.class);
    dbs.delete();
    dbs.create();

    cfg.setProperty(Db4oDaoModule.ConfigKeys.DB4O_EMPLOY_SPRING_TRANSACTIONS.getKey(), true);
    super.beforeClass();
    injector.getInstance(PlatformTransactionManager.class)// bind @Transactional
  }
View Full Code Here

    cfg.setProperty(Db4oDaoModule.ConfigKeys.DB4O_EMPLOY_SPRING_TRANSACTIONS.getKey(), false);
    final Injector i = buildInjector(new SmbizDb4oDaoModule(cfg), new Db4oDbShellModule());
    final IDbShell dbs = i.getInstance(IDbShell.class);

    dbs.delete();
    dbs.create();
    super.beforeClass();
  }

  @Override
  protected void beforeMethod() {
View Full Code Here

  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();
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.