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.deployment.ConnectorDescriptor; 34 import com.sun.enterprise.tools.verifier.tests.*; 35 36 43 public class ConnectionFactoryInterfaceImpl extends ConnectionFactoryTest implements ConnectorCheck { 44 45 54 public Result check(ConnectorDescriptor descriptor) { 55 Result result = getInitializedResult(); 56 ComponentNameConstructor compName = 57 getVerifierContext().getComponentNameConstructor(); 58 if(isCCIImplemented(descriptor, result)) 59 { 60 Class c = testConnectionFactoryImpl(descriptor, result); 61 if(c != null) 62 { 63 result.addGoodDetails(smh.getLocalString 64 ("tests.componentNameConstructor", 65 "For [ {0} ]", 66 new Object [] {compName.toString()})); 67 result.passed(smh.getLocalString 68 ("com.sun.enterprise.tools.verifier.tests.connector.cci.ConnectionFactoryInterfaceImpl.pass1", 69 "The class [ {0} ] as defined in the connectionfactory-impl-class deployment descriptor implements javax.resource.cci.ConnectionFactory", 70 new Object [] {c.getName()})); 71 } 72 } 73 else 74 { 75 result.addNaDetails(smh.getLocalString 77 ("tests.componentNameConstructor", 78 "For [ {0} ]", 79 new Object [] {compName.toString()})); 80 result.notApplicable(smh.getLocalString 81 ("com.sun.enterprise.tools.verifier.tests.connector.cci.notApp", 82 "The CCI interfaces do not seem to be implemented by this resource adapter")); 83 } 84 91 return result; 92 } 93 } 94 | Popular Tags |