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.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.*; 36 import com.sun.enterprise.deployment.ConnectorDescriptor; 37 import com.sun.enterprise.tools.verifier.tests.*; 38 import java.util.Iterator ; 39 import java.util.Set ; 40 41 47 public class CheckResourceAdapterClassSerializable 48 extends ConnectorTest 49 implements ConnectorCheck 50 { 51 52 61 public Result check(ConnectorDescriptor descriptor) { 62 63 Result result = getInitializedResult(); 64 ComponentNameConstructor compName = 65 getVerifierContext().getComponentNameConstructor(); 66 67 String resourceAdapterClass = descriptor.getResourceAdapterClass(); 68 if(resourceAdapterClass.equals("") && descriptor.getInBoundDefined()) 69 { 70 addErrorDetails(result, compName); 72 result.failed(smh.getLocalString 73 (getClass().getName() + ".failed", 74 "ResourceAdapter class not found")); 75 } 76 else 77 { 78 addGoodDetails(result, compName); 79 result.notApplicable(smh.getLocalString 80 ("com.sun.enterprise.tools.verifier.tests.connector.resourceadapter.notApp", 81 "Valid ResourceAdapter class.")); 82 } 83 return result; 84 } 85 } 86 130 | Popular Tags |