1 23 28 29 package com.sun.enterprise.tools.verifier.tests.connector.cci; 30 31 import com.sun.enterprise.tools.verifier.tests.connector.ConnectorTest; 32 import com.sun.enterprise.tools.verifier.tests.connector.ConnectorCheck; 33 import com.sun.enterprise.tools.verifier.Result; 34 import com.sun.enterprise.deployment.ConnectorDescriptor; 35 import com.sun.enterprise.tools.verifier.tests.*; 36 import com.sun.enterprise.tools.verifier.tests.*; 37 38 39 46 public class ConnectionFactoryImplExistence extends ConnectionFactoryTest implements ConnectorCheck { 47 48 49 58 public Result check(ConnectorDescriptor descriptor) { 59 60 Result result = getInitializedResult(); 61 ComponentNameConstructor compName = getVerifierContext().getComponentNameConstructor(); 62 if(isCCIImplemented(descriptor, result)) 63 { 64 Class c = testConnectionFactoryImpl(descriptor, result); 65 if (c!=null) 67 { 68 result.addGoodDetails(smh.getLocalString 69 ("tests.componentNameConstructor", 70 "For [ {0} ]", 71 new Object [] {compName.toString()})); 72 result.passed(smh.getLocalString 73 (getClass().getName() + ".passed", 74 "The class define in the connectionfactory-impl-class tag [ {0} ] is contained in the archive.", 75 new Object [] {c.getName()} )); 76 } 77 } 78 else 79 { 80 result.addNaDetails(smh.getLocalString 81 ("tests.componentNameConstructor", 82 "For [ {0} ]", 83 new Object [] {compName.toString()})); 84 result.notApplicable(smh.getLocalString 85 ("com.sun.enterprise.tools.verifier.tests.connector.cci.notApp", 86 "The CCI interfaces do not seem to be implemented by this resource adapter")); 87 } 88 return result; 89 } 90 } 91 | Popular Tags |