FileDocCategorySizeDatePackage
ConfigRunMeFirstTest.javaAPI DocGlassfish v2 API4828Fri May 04 22:23:54 BST 2007com.sun.enterprise.management.config

ConfigRunMeFirstTest

public final class ConfigRunMeFirstTest extends com.sun.enterprise.management.AMXTestBase
This test should normally be run before the generic tests so that it can set up default items for many of the config elements so that the generic tests will actually test them. Otherwise, when the generic tests are run, they won't see any instances of many of the AMXConfig MBeans.

If there are errors doing this, disable this test in amxtest.classes, fix the error in the specific place it's occurring, then re-enabled this test.

Fields Summary
Constructors Summary
public ConfigRunMeFirstTest()

	
Methods Summary
private voidsetupConfig()

	    final DomainConfig  dc  = getDomainConfig();
	    final ConfigConfig  cc  = getConfigConfig();
	    final SecurityServiceConfig  ss  = cc.getSecurityServiceConfig();
	    final AdminServiceConfig  as  = cc.getAdminServiceConfig();
	    
	    AuditModuleConfigTest.ensureDefaultInstance( ss );
	    
	    AuthRealmConfigTest.ensureDefaultInstance( ss );
	    
	    ConnectorConnectionPoolConfigTest.ensureDefaultInstance( dc );
	    
	    JMXConnectorConfigTest.ensureDefaultInstance( as );
	    
	    ResourceAdapterConfigTest.ensureDefaultInstance( dc );
	    
        AdminObjectResourceConfigTest.ensureDefaultInstance( dc );
        
        JDBCConnectionPoolConfigTest.ensureDefaultInstance( dc );
        
        JDBCResourceConfigTest.ensureDefaultInstance( dc );
        
        JNDIResourceConfigTest.ensureDefaultInstance( dc );
        
        ConnectorResourceConfigTest.ensureDefaultInstance( dc );
        
        CustomMBeanConfigTest.ensureDefaultInstance( dc );
        
        JACCProviderConfigTest.ensureDefaultInstance( ss );
        
        MailResourceConfigTest.ensureDefaultInstance( dc );
        
        ThreadPoolConfigTest.ensureDefaultInstance( cc );
        
        PersistenceManagerFactoryResourceConfigTest.ensureDefaultInstance( dc );
        
        CustomResourceConfigTest.ensureDefaultInstance( dc );
        
        ProfilerConfigTest.ensureDefaultInstance( cc.getJavaConfig() );
        
        LifecycleModuleConfigTest.ensureDefaultInstance( dc );
	
public voidtestSetup()

	    if ( checkNotOffline( "testIllegalCreate" ) )
	    {
	        setupConfig();
	    }