FileDocCategorySizeDatePackage
ModuleLogLevelsConfigTest.javaAPI DocGlassfish v2 API3551Fri May 04 22:23:56 BST 2007com.sun.enterprise.management.config

ModuleLogLevelsConfigTest

public final class ModuleLogLevelsConfigTest extends com.sun.enterprise.management.AMXTestBase

Fields Summary
Constructors Summary
public ModuleLogLevelsConfigTest()

	
Methods Summary
protected com.sun.appserv.management.config.ModuleLogLevelsConfiggetModuleLogLevelsConfig()

		return getConfigConfig().getLogServiceConfig().getModuleLogLevelsConfig();
	
public voidtestChangeAll()

		final ModuleLogLevelsConfig	config	= getModuleLogLevelsConfig();
		
		config.changeAll( LogLevelValues.FINE );
		// verify that they were all changed
		 Map<String,String>	all	= config.getAllLevels();
		for( final String value : all.values() )
		{
		    assert( value.equals( LogLevelValues.FINE ) );
		}
		
		config.changeAll( LogLevelValues.INFO );
		// verify that they were all changed
		all	= config.getAllLevels();
		for( final String value : all.values() )
		{
		    assert( value.equals( LogLevelValues.INFO ) );
		}
	
public voidtestGetAll()

		final ModuleLogLevelsConfig	config	= getModuleLogLevelsConfig();
		
		final Map<String,String>	all	= config.getAllLevels();
		assert( all.size() == 24 );