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

ResourceAdapterConfigTest

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

Fields Summary
Constructors Summary
public ResourceAdapterConfigTest()

	    if ( checkNotOffline( "ensureDefaultInstance" ) )
	    {
	        ensureDefaultInstance( getDomainConfig() );
	    }
	
Methods Summary
public static com.sun.appserv.management.config.ResourceAdapterConfigcreateInstance(com.sun.appserv.management.config.DomainConfig domainConfig, java.lang.String name)

	    final ResourceAdapterConfig rac =
	        domainConfig.createResourceAdapterConfig( name, null );
	    
	    return rac;
	
public static com.sun.appserv.management.config.ResourceAdapterConfigensureDefaultInstance(com.sun.appserv.management.config.DomainConfig domainConfig)

	    ResourceAdapterConfig   result  =
	        domainConfig.getResourceAdapterConfigMap().get( getDefaultInstanceName() );
	    
	    if ( result == null )
	    {
	        result  = createInstance( domainConfig, getDefaultInstanceName() );
	    }
	    
	    return result;
	
public static java.lang.StringgetDefaultInstanceName()

        return getDefaultInstanceName( "ResourceAdapterConfig" );
    
public voidtestCreateRemove()

	    if ( checkNotOffline( "testCreateSSL" ) )
	    {
            final ResourceAdapterConfig resAdapterConfig    =
                createInstance( getDomainConfig(),
                    "ResourceAdapterConfigTest.testCreateRemove" );

            try
            {
                testGetters( resAdapterConfig );
            }
            finally
            {
                getDomainConfig().removeResourceAdapterConfig( resAdapterConfig.getName() );
            }
	    }
	
private voidtestGetters(com.sun.appserv.management.config.ResourceAdapterConfig resAdapterConfig)

	    resAdapterConfig.getResourceAdapterName();
	    resAdapterConfig.getThreadPoolIDs();