1 23 28 29 package com.sun.enterprise.tools.verifier.tests.connector; 30 31 import java.io.File ; 32 import com.sun.enterprise.tools.verifier.Verifier; 33 import com.sun.enterprise.tools.verifier.Result; 34 import com.sun.enterprise.deployment.ConnectorDescriptor; 35 import com.sun.enterprise.tools.verifier.tests.*; 36 37 38 39 45 public class DefaultConnectionManagerExistence 46 extends ConnectorTest 47 implements ConnectorCheck 48 { 49 50 59 public Result check(ConnectorDescriptor descriptor) { 60 61 Result result = getInitializedResult(); 62 ComponentNameConstructor compName = 63 getVerifierContext().getComponentNameConstructor(); 64 if(!descriptor.getOutBoundDefined()) 65 { 66 result.addNaDetails(smh.getLocalString 67 ("tests.componentNameConstructor", 68 "For [ {0} ]", 69 new Object [] {compName.toString()})); 70 result.notApplicable(smh.getLocalString 71 ("com.sun.enterprise.tools.verifier.tests.connector.managed.notApplicableForInboundRA", 72 "Resource Adapter does not provide outbound communication")); 73 return result; 74 } 75 76 findImplementorOf(descriptor, "javax.resource.spi.ConnectionManager", result); 79 return result; 80 } 81 } 82 | Popular Tags |