@Before public void before() throws IOException { String path = tmp.newFolder().getCanonicalPath(); env = new Env(); env.setMapSize(16 * 4096); env.open(path); db = env.openDatabase(); }
@Before public void before() throws IOException { String path = dir.newFolder().getCanonicalPath(); if (db != null) { db.close(); } if (env != null) { env.close(); } env = new Env(); env.open(path); db = env.openDatabase("test"); }