1 23 28 29 package com.sun.enterprise.tools.verifier.tests.connector.managed; 30 31 import com.sun.enterprise.tools.verifier.Result; 32 import com.sun.enterprise.deployment.ConnectorDescriptor; 33 import com.sun.enterprise.tools.verifier.tests.*; 34 import com.sun.enterprise.tools.verifier.tests.connector.ConnectorCheck; 35 36 43 public class ManagedConnectionFactoryImplEquals 44 extends ManagedConnectionFactoryTest 45 implements ConnectorCheck 46 { 47 48 57 public Result check(ConnectorDescriptor descriptor) { 58 Result result = getInitializedResult(); 59 ComponentNameConstructor compName = 60 getVerifierContext().getComponentNameConstructor(); 61 if(!descriptor.getOutBoundDefined()) 63 { 64 result.addNaDetails(smh.getLocalString 65 ("tests.componentNameConstructor", 66 "For [ {0} ]", 67 new Object [] {compName.toString()})); 68 result.notApplicable(smh.getLocalString 69 ("com.sun.enterprise.tools.verifier.tests.connector.managed.notApplicableForInboundRA", 70 "Resource Adapter does not provide outbound communication")); 71 return result; 72 } 73 Class mcf = testManagedConnectionFactoryImpl(descriptor, result); 74 if (mcf!=null) { 75 checkMethodImpl(mcf, "equals", new Class [] {Object .class}, "public boolean equals(Object)", result); 76 } 77 return result; 78 } 79 } 80 | Popular Tags |