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()"));