Enterprise Java Bean class constuctor test.
The class must not define the finalize() method.
Result result = getInitializedResult();
ComponentNameConstructor compName = getVerifierContext().getComponentNameConstructor();
Class c = loadEjbClass(descriptor, result);
if (c!=null) {
Method m = getDeclaredMethod(c, "finalize", null);
if (m!=null) {
result.addErrorDetails(smh.getLocalString
("tests.componentNameConstructor",
"For [ {0} ]",
new Object[] {compName.toString()}));
result.failed(smh.getLocalString
(getClass().getName() + ".failed",
"Error: The bean class [ {0} ] must not define the " +
"\n finalize() method.",
new Object[] {descriptor.getEjbClassName()}));
} else {
result.addGoodDetails(smh.getLocalString
("tests.componentNameConstructor",
"For [ {0} ]",
new Object[] {compName.toString()}));
result.passed(smh.getLocalString
(getClass().getName() + ".passed",
"Valid: This bean class [ {0} ] correctly does not " +
"\n define the finalize() method.",
new Object[] {descriptor.getEjbClassName()}));
}
}
return result;