Verify that the interface declared in the deployment descriptor
connection-interface is actually contained in the archive
Result result = getInitializedResult();
ComponentNameConstructor compName = getVerifierContext().getComponentNameConstructor();
if(isCCIImplemented(descriptor, result))
{
String interfaceName = getConnectionInterface(descriptor, result);
if (interfaceName == null) {
result.addErrorDetails(smh.getLocalString
("tests.componentNameConstructor",
"For [ {0} ]",
new Object[] {compName.toString()}));
result.failed(smh.getLocalString
(getClass().getName() + ".nonexist",
"Error: The deployment descriptor for the resource adapter do not define a connection-interface"));
}
isClassLoadable(interfaceName, result);
}
else
{
// test is NA
result.addNaDetails(smh.getLocalString
("tests.componentNameConstructor",
"For [ {0} ]",
new Object[] {compName.toString()}));
result.notApplicable(smh.getLocalString
("com.sun.enterprise.tools.verifier.tests.connector.cci.notApp",
"The CCI interfaces do not seem to be implemented by this resource adapter"));
}
return result;