run an individual verifier test against a declared method of the
remote interface.
Class[] methodExceptionTypes = method.getExceptionTypes();
ComponentNameConstructor compName = getVerifierContext().getComponentNameConstructor();
// The methods arguments types must be legal types for
// RMI-IIOP. This means that their exception values must
// throw java.rmi.RemoteException
// methods must also throw java.rmi.RemoteException
if (RmiIIOPUtils.isValidRmiIIOPException(methodExceptionTypes)) {
// this is the right exception for method, throws RemoteException
addGoodDetails(result, compName);
result.addGoodDetails(smh.getLocalString
(getClass().getName() + ".passed",
"[ {0} ] method properly throws java.rmi.RemoteException.",
new Object[] {method.getName()}));
return true;
} else {
addErrorDetails(result, compName);
result.addErrorDetails(smh.getLocalString
(getClass().getName() + ".failed",
"Error: [ {0} ] method was found, but does not properly " +
"throw java.rmi.RemoteException.",
new Object[] {method.getName()}));
return false;
}