Run a verifier test against an individual declared message
drive bean component
Result result = getInitializedResult();
ComponentNameConstructor compName = getVerifierContext().getComponentNameConstructor();
String messageSelector = descriptor.getJmsMessageSelector();
if (messageSelector != null) {
try {
IASJmsUtil.validateJMSSelector(messageSelector);
result.addGoodDetails(smh.getLocalString
("tests.componentNameConstructor",
"For [ {0} ]",
new Object[] {compName.toString()}));
result.passed(smh.getLocalString
("com.sun.enterprise.tools.verifier.tests.ejb.messagebean.HasValidMessageSelector.failed",
"Message-driven bean [ {0} ] defines a valid message selector",
new Object[] {descriptor.getName()}));
} catch (Exception e) {
result.addErrorDetails(smh.getLocalString
("tests.componentNameConstructor",
"For [ {0} ]",
new Object[] {compName.toString()}));
result.failed(smh.getLocalString
("com.sun.enterprise.tools.verifier.tests.ejb.messagebean.HasValidMessageSelector.failed",
"Error : Message-driven bean [ {0} ] defines an invalid message selector",
new Object[] {descriptor.getName()}));
}
} else {
result.addNaDetails(smh.getLocalString
("tests.componentNameConstructor",
"For [ {0} ]",
new Object[] {compName.toString()}));
result.notApplicable(smh.getLocalString
("com.sun.enterprise.tools.verifier.tests.ejb.messagebean.HasValidMessageSelector.notApplicable",
"Message-driven bean [ {0} ] does not define a message selector",
new Object[] {descriptor.getName()}));
}
return result;