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.*; 33 import com.sun.enterprise.tools.verifier.tests.*; 34 import com.sun.enterprise.deployment.ConnectorDescriptor; 35 import com.sun.enterprise.tools.verifier.tests.connector.ConnectorCheck; 36 import com.sun.enterprise.tools.verifier.tests.connector.ConnectorTest; 37 38 45 public class ResourceAdapterMetaDataExistence 46 extends ConnectionFactoryTest 47 implements ConnectorCheck 48 { 49 50 59 public Result check(ConnectorDescriptor descriptor) { 60 61 Result result = getInitializedResult(); 62 ComponentNameConstructor compName = getVerifierContext().getComponentNameConstructor(); 63 64 if (isCCIImplemented(descriptor, result)) { 65 findImplementorOf(descriptor, "javax.resource.cci.ResourceAdapterMetaData", result); 68 } else { 69 result.addNaDetails(smh.getLocalString 70 ("tests.componentNameConstructor", 71 "For [ {0} ]", 72 new Object [] {compName.toString()})); 73 result.notApplicable(smh.getLocalString 74 ("com.sun.enterprise.tools.verifier.tests.connector.InteractionExistence.notapp", 75 "NotApplicable : The CCI interfaces do not seem to be implemented by this resource adapter")); 76 } 77 return result; 78 } 79 } 80 | Popular Tags |