1 23 28 29 package com.sun.enterprise.tools.verifier.tests.connector.cci; 30 31 import java.io.File ; 32 import com.sun.enterprise.tools.verifier.tests.connector.ConnectorCheck; 33 import com.sun.enterprise.tools.verifier.tests.connector.ConnectorTest; 34 import com.sun.enterprise.tools.verifier.tests.*; 35 import com.sun.enterprise.tools.verifier.Result; 36 import com.sun.enterprise.tools.verifier.Verifier; 37 import com.sun.enterprise.deployment.ConnectorDescriptor; 38 39 40 47 public class InteractionExistence 48 extends ConnectionFactoryTest 49 implements ConnectorCheck 50 { 51 52 61 public Result check(ConnectorDescriptor descriptor) { 62 63 Result result = getInitializedResult(); 64 ComponentNameConstructor compName = getVerifierContext().getComponentNameConstructor(); 65 if (isCCIImplemented(descriptor, result)) { 66 findImplementorOf(descriptor, "javax.resource.cci.Interaction", result); 69 } else { 70 result.addNaDetails(smh.getLocalString 71 ("tests.componentNameConstructor", 72 "For [ {0} ]", 73 new Object [] {compName.toString()})); 74 result.notApplicable(smh.getLocalString 75 (getClass().getName() + ".notapp", 76 "NotApplicable : The CCI interfaces do not seem to be implemented by this resource adapter")); 77 } 78 return result; 79 } 80 } 81 | Popular Tags |