DBMaker { public static DBMaker newMemoryDB(){ DBMaker m = new DBMaker(); m._file = null; return m; } protected  DBMaker(); static DBMaker newMemoryDB(); static DBMaker newDirectMemoryDB(); static DBMaker newAppendFileDB(File file); static BTreeMap<K,V> newTempTreeMap(); static HTreeMap<K,V> newTempHashMap(); static NavigableSet<K> newTempTreeSet(); static Set<K> newTempHashSet(); static DBMaker newTempFileDB(); static DBMaker newFileDB(File file); DBMaker journalDisable(); DBMaker cacheDisable(); DBMaker cacheHardRefEnable(); DBMaker cacheWeakRefEnable(); DBMaker cacheSoftRefEnable(); DBMaker cacheLRUEnable(); DBMaker randomAccessFileEnable(); DBMaker randomAccessFileEnableIfNeeded(); DBMaker cacheSize(int cacheSize); DBMaker asyncWriteDisable(); DBMaker asyncFlushDelay(int delay); DBMaker deleteFilesAfterClose(); DBMaker closeOnJvmShutdown(); DBMaker compressionEnable(); DBMaker encryptionEnable(String password); DBMaker encryptionEnable(byte[] password); DBMaker checksumEnable(); DBMaker readOnly(); DBMaker freeSpaceReclaimDisable(); DBMaker powerSavingModeEnable(); DB make(); TxMaker makeTxMaker(); Engine makeEngine();  }
@Test public void testNewMemoryDB() throws Exception { DB db = DBMaker .newMemoryDB() .journalDisable() .make(); verifyDB(db); }