1 23 28 29 package com.sun.enterprise.tools.verifier.tests.connector; 30 31 import java.io.File ; 32 import com.sun.enterprise.tools.verifier.Result; 33 import com.sun.enterprise.tools.verifier.Verifier; 34 import com.sun.enterprise.deployment.ConnectorDescriptor; 35 import com.sun.enterprise.tools.verifier.tests.*; 36 37 44 45 public class ConnectionRequestInfoImplHashcode extends ConnectorTest implements ConnectorCheck { 46 47 48 57 public Result check(ConnectorDescriptor descriptor) { 58 Result result = getInitializedResult(); 59 ComponentNameConstructor compName = getVerifierContext().getComponentNameConstructor(); 60 61 Class c = findImplementorOf(descriptor, "javax.resource.spi.ConnectionRequestInfo"); 63 if (c == null) { 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.ConnectorTest.optionalInterfaceMissing", 70 "Warning: There is no implementation of the optional [ {0} ] interface", 71 new Object [] {"javax.resource.spi.ConnectionRequestInfo"})); 72 } else { 73 checkMethodImpl(c, "hashCode", null, "public int hashCode()", result); 75 } 76 return result; 77 } 78 } 79 | Popular Tags |