FileDocCategorySizeDatePackage
ManagedConnectionFactoryImplEquals.javaAPI DocGlassfish v2 API3892Fri May 04 22:33:30 BST 2007com.sun.enterprise.tools.verifier.tests.connector.managed

ManagedConnectionFactoryImplEquals

public class ManagedConnectionFactoryImplEquals extends ManagedConnectionFactoryTest implements com.sun.enterprise.tools.verifier.tests.connector.ConnectorCheck
Test if the ManagedConnectionFactory implementation override the equals method
author
Jerome Dochez
version

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

Test if the ManagedConnectionFactory implementation override the equals method

paramm
descriptor deployment descriptor for the rar file
return
result object containing the result of the individual test performed

        Result result = getInitializedResult();
        ComponentNameConstructor compName = 
          getVerifierContext().getComponentNameConstructor();
        // test NA for inboundRA
        if(!descriptor.getOutBoundDefined())
        {
          result.addNaDetails(smh.getLocalString
              ("tests.componentNameConstructor",
               "For [ {0} ]",
               new Object[] {compName.toString()}));
          result.notApplicable(smh.getLocalString
              ("com.sun.enterprise.tools.verifier.tests.connector.managed.notApplicableForInboundRA",
               "Resource Adapter does not provide outbound communication"));
          return result;
        }
        Class mcf = testManagedConnectionFactoryImpl(descriptor, result);
        if (mcf!=null) {
            checkMethodImpl(mcf, "equals", new Class[] {Object.class}, "public boolean equals(Object)", result);
        }
        return result;