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 public class ConnectionRequestInfoImplEquals extends ConnectorTest implements ConnectorCheck { 45 46 47 56 public Result check(ConnectorDescriptor descriptor) { 57 58 Result result = getInitializedResult(); 59 ComponentNameConstructor compName = getVerifierContext().getComponentNameConstructor(); 60 61 Class c = findImplementorOf(descriptor, "javax.resource.spi.ConnectionRequestInfo"); 65 66 if (c == null) { 67 result.addNaDetails(smh.getLocalString 68 ("tests.componentNameConstructor", 69 "For [ {0} ]", 70 new Object [] {compName.toString()})); 71 result.notApplicable(smh.getLocalString 72 ("com.sun.enterprise.tools.verifier.tests.connector.ConnectorTest.optionalInterfaceMissing", 73 "Warning: There is no implementation of the optional [ {0} ] interface", 74 new Object [] {"javax.resource.spi.ConnectionRequestInfo"})); 75 } else { 76 checkMethodImpl(c, "equals", new Class [] {Object .class}, "public boolean equals(java.lang.Object)", result); 78 } 79 return result; 80 } 81 } 82 | Popular Tags |