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

ModuleMonitoringLevelsConfigTest

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

Fields Summary
Constructors Summary
public ModuleMonitoringLevelsConfigTest()

	
Methods Summary
public voidtestCreateRemove()

	    ModuleMonitoringLevelsConfig    existing    = getModuleMonitoringLevelsConfig();
	    
	    final MonitoringServiceConfig mon = getConfigConfig().getMonitoringServiceConfig();
	    mon.removeModuleMonitoringLevelsConfig();
	    final ModuleMonitoringLevelsConfig  newMM   =
	        mon.createModuleMonitoringLevelsConfig( null );
	    
	    newMM.changeAll( "HIGH" );
	
public voidtestGetAll()

		final ModuleMonitoringLevelsConfig	config	= getModuleMonitoringLevelsConfig();
		
		final Map<String,String>	all	= config.getAllLevels();
		assert( all.size() == 11 );