Run an individual test against a finder method (single or multi)
ComponentNameConstructor compName = getVerifierContext().getComponentNameConstructor();
// single or multi finder
String methodName = method.getName();
String ejbMethodName = "ejb" + Character.toUpperCase(methodName.charAt(0)) + methodName.substring(1);
Method ejbMethod = getMethod(targetClass, methodName, method.getParameterTypes());
if (ejbMethod != null) {
result.addErrorDetails(smh.getLocalString
("tests.componentNameConstructor",
"For [ {0} ]",
new Object[] {compName.toString()}));
result.addErrorDetails(smh.getLocalString
("com.sun.enterprise.tools.verifier.tests.ejb.entity.cmp2.FindMethodsAbstract.failed",
"Error : [ {0} ] is defined in bean class [ {1} ]",
new Object[] {ejbMethodName , targetClass.getName()}));
return false;
} else {
result.addGoodDetails(smh.getLocalString
("tests.componentNameConstructor",
"For [ {0} ]",
new Object[] {compName.toString()}));
result.addGoodDetails(smh.getLocalString
("com.sun.enterprise.tools.verifier.tests.ejb.entity.cmp2.FindMethodsAbstract.passed",
"[ {0} ] is not defined in bean class [ {1} ]",
new Object[] {ejbMethodName , targetClass.getName()}));
return true;
}