Web name test.
The Web provider must assign a display-name to each web application
Result result = getInitializedResult();
ComponentNameConstructor compName = getVerifierContext().getComponentNameConstructor();
String webName = descriptor.getName();
if (webName.length() > 0) {
// as long as it's not blank, test should pass
result.addGoodDetails(smh.getLocalString
("tests.componentNameConstructor",
"For [ {0} ]",
new Object[] {compName.toString()}));
result.passed
(smh.getLocalString
(getClass().getName() + ".passed",
"Web-App display name is : [ {0} ]",
new Object [] {webName}));
} else {
// it's blank, test should be N/A since <display-name> is optional
result.addNaDetails(smh.getLocalString
("tests.componentNameConstructor",
"For [ {0} ]",
new Object[] {compName.toString()}));
result.notApplicable
(smh.getLocalString
(getClass().getName() + ".failed",
"Not Applicable: Web-App display name is not defined."));
}
return result;