1 23 28 29 package com.sun.enterprise.tools.verifier.tests.connector.managed; 30 31 import java.io.File ; 32 import com.sun.enterprise.tools.verifier.tests.connector.ConnectorTest; 33 import com.sun.enterprise.tools.verifier.tests.connector.ConnectorCheck; 34 import com.sun.enterprise.tools.verifier.Result; 35 import com.sun.enterprise.tools.verifier.Verifier; 36 import com.sun.enterprise.deployment.ConnectorDescriptor; 37 import com.sun.enterprise.tools.verifier.tests.*; 38 39 46 public class ManagedConnectionExistence 47 extends ConnectorTest 48 implements ConnectorCheck 49 { 50 51 60 public Result check(ConnectorDescriptor descriptor) { 61 62 Result result = getInitializedResult(); 63 ComponentNameConstructor compName = 64 getVerifierContext().getComponentNameConstructor(); 65 if(!descriptor.getOutBoundDefined()) 67 { 68 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.managed.notApplicableForInboundRA", 74 "Resource Adapter does not provide outbound communication")); 75 return result; 76 } 77 findImplementorOf(descriptor, "javax.resource.spi.ManagedConnection", result); 80 return result; 81 } 82 } 83 | Popular Tags |