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

ManagedConnectionFactoryImplHashcode

public class ManagedConnectionFactoryImplHashcode extends ManagedConnectionFactoryTest implements com.sun.enterprise.tools.verifier.tests.connector.ConnectorCheck
Test if the ManagedConnectionFactory implementation override the hashCode 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 hashCode 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, "hashCode", null, "public int hashCode()", result);
        }
        return result;