1 23 28 29 package com.sun.enterprise.tools.verifier.tests.connector.cci; 30 31 import com.sun.enterprise.tools.verifier.tests.connector.ConnectorCheck; 32 import com.sun.enterprise.tools.verifier.Result; 33 import com.sun.enterprise.tools.verifier.tests.*; 34 import com.sun.enterprise.deployment.ConnectorDescriptor; 35 36 43 public class ConnectionInterfaceImpl extends ConnectionTest implements ConnectorCheck { 44 45 55 public Result check(ConnectorDescriptor descriptor) { 56 Result result = getInitializedResult(); 57 ComponentNameConstructor compName = 58 getVerifierContext().getComponentNameConstructor(); 59 if(isCCIImplemented(descriptor, result)) 60 { 61 Class c = testConnectionImpl(descriptor, result); 62 if (c!=null) { 64 String interfaceName = getConnectionInterface(descriptor, result); 66 testImplementationOf(c, interfaceName, result); 67 } 68 } 69 else 70 { 71 result.addNaDetails(smh.getLocalString 73 ("tests.componentNameConstructor", 74 "For [ {0} ]", 75 new Object [] {compName.toString()})); 76 result.notApplicable(smh.getLocalString 77 ("com.sun.enterprise.tools.verifier.tests.connector.cci.notApp", 78 "The CCI interfaces do not seem to be implemented by this resource adapter")); 79 } 80 return result; 81 } 82 } 83 | Popular Tags |