Package dovetaildb.dbrepository

Examples of dovetaildb.dbrepository.MemoryDbRepository


  private static LiteralHashMap<String,Object> m() {
    return Util.literalSMap();
  }
 
  public void testBasic() throws Exception {
    MemoryDbRepository repo = new MemoryDbRepository();
    repo.initMeta();
    DovetaildbServlet servlet = new DovetaildbServlet();
    servlet.setRepo(repo);
    Object ret = servlet.handle(ParsedRequest.makeExecute("_meta", "40+2"));
    assertEquals(42, ((Number)ret).intValue());
    ret = servlet.handle(ParsedRequest.makeExecute("_meta", "repo.getDbNames()"));
View Full Code Here

TOP

Related Classes of dovetaildb.dbrepository.MemoryDbRepository

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.