FileDocCategorySizeDatePackage
AppClientTest.javaAPI DocGlassfish v2 API4110Fri May 04 22:33:28 BST 2007com.sun.enterprise.tools.verifier.tests.appclient

AppClientTest

public abstract class AppClientTest extends com.sun.enterprise.tools.verifier.tests.VerifierTest implements AppClientCheck, com.sun.enterprise.tools.verifier.tests.VerifierCheck
Superclass for all appclient tests, contains common services.
author
Jerome Dochez
version

Fields Summary
Constructors Summary
Methods Summary
public com.sun.enterprise.tools.verifier.Resultcheck(com.sun.enterprise.deployment.Descriptor descriptor)

run an individual test against the deployment descriptor for the archive the verifier is performing compliance tests against.

param
descriptor deployment descriptor for the archive
return
result object containing the result of the individual test performed

        return check((ApplicationClientDescriptor) descriptor);
    
public abstract com.sun.enterprise.tools.verifier.Resultcheck(com.sun.enterprise.deployment.ApplicationClientDescriptor descriptor)

all connector tests should implement this method. it run an individual test against the resource adapter deployment descriptor.

param
descriptor deployment descriptor for the archive file
return
result object containing the result of the individual test performed

protected java.lang.StringgetAbstractArchiveUri(com.sun.enterprise.deployment.ApplicationClientDescriptor desc)

        String archBase = getVerifierContext().getAbstractArchive().
                getArchiveUri();
        final ModuleDescriptor moduleDescriptor = desc.getModuleDescriptor();
        if (moduleDescriptor.isStandalone()) {
            return archBase; // it must be a stand-alone module; no such physical dir exists
        } else {
            return archBase + File.separator +
                    FileUtils.makeFriendlyFileName(moduleDescriptor.getArchiveUri());
        }