1 8 9 package com.sleepycat.je.dbi; 10 11 import junit.framework.TestCase; 12 13 import com.sleepycat.je.DatabaseException; 14 import com.sleepycat.je.EnvironmentConfig; 15 import com.sleepycat.je.config.EnvironmentParams; 16 import com.sleepycat.je.util.TestUtils; 17 18 public class DbConfigManagerTest extends TestCase { 19 20 24 public void testBasicParams() 25 throws DatabaseException { 26 27 EnvironmentConfig envConfig = TestUtils.initEnvConfig(); 28 envConfig.setCacheSize(2000); 29 DbConfigManager configManager = new DbConfigManager(envConfig); 30 31 36 assertEquals(2000, 37 configManager.getLong(EnvironmentParams.MAX_MEMORY)); 38 assertEquals(EnvironmentParams.ENV_RECOVERY.getDefault(), 39 configManager.get(EnvironmentParams.ENV_RECOVERY)); 40 } 41 } 42 | Popular Tags |