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 42 public class ConnectionFactoryReferenceable extends ConnectionFactoryTest implements ConnectorCheck { 43 44 53 public Result check(ConnectorDescriptor descriptor) { 54 Result result = getInitializedResult(); 55 ComponentNameConstructor compName = getVerifierContext().getComponentNameConstructor(); 56 if(isCCIImplemented(descriptor, result)) 57 { 58 Class c = testConnectionFactoryImpl(descriptor, result); 59 if (c!=null) { 61 testImplementationOf(c, "javax.resource.Referenceable", result); 63 } 64 } 65 else 66 { 67 result.addNaDetails(smh.getLocalString 69 ("tests.componentNameConstructor", 70 "For [ {0} ]", 71 new Object [] {compName.toString()})); 72 result.notApplicable(smh.getLocalString 73 ("com.sun.enterprise.tools.verifier.tests.connector.cci.notApp", 74 "The CCI interfaces do not seem to be implemented by this resource adapter")); 75 } 76 return result; 77 } 78 } 79 | Popular Tags |