Package com.tll.dao

Examples of com.tll.dao.IDbShell


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

TOP

Related Classes of com.tll.dao.IDbShell

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.