Test if the javax.resource.cci.InterfactionSpec implementation provided
in the rar file also implements the java.io.Serializable interface
Result result = getInitializedResult();
ComponentNameConstructor compName = getVerifierContext().getComponentNameConstructor();
if (isCCIImplemented(descriptor, result)) {
//File jarFile = Verifier.getJarFile(descriptor.getModuleDescriptor().getArchiveUri());
// File f=Verifier.getArchiveFile(descriptor.getModuleDescriptor().getArchiveUri());
Class is = findImplementorOf(descriptor, "javax.resource.cci.InteractionSpec");
if (is !=null) {
testImplementationOf(is, "java.io.Serializable", result);
return result;
} else {
result.addNaDetails(smh.getLocalString
("tests.componentNameConstructor",
"For [ {0} ]",
new Object[] {compName.toString()}));
result.notApplicable(smh.getLocalString
("com.sun.enterprise.tools.verifier.tests.connector.cci.InteractionSpecJavaBeansCompliance.nonexist",
"Error: While the CCI interfaces are implemented, the javax.resource.cci.InteractionSpec is not"));
return result;
}
} else {
result.addNaDetails(smh.getLocalString
("tests.componentNameConstructor",
"For [ {0} ]",
new Object[] {compName.toString()}));
result.notApplicable(smh.getLocalString
("com.sun.enterprise.tools.verifier.tests.connector.cci.InteractionExistence.notapp",
"NotApplicable : The CCI interfaces do not seem to be implemented by this resource adapter"));
}
return result;