}
// We are a ChangeListener of the test harness CheckMgrs
public void testFinished(EventObject evt) {
Result r = (Result) evt.getSource();
StringBuffer s = new StringBuffer("Assertion:" + r.getAssertion() + "\n"); // NOI18N
String status;
switch (r.getStatus()) {
case Result.PASSED:
{
status =
(smh.getLocalString(
"com.sun.enterprise.tools.verifier.gui.ResultsPanel" + // NOI18N
".Status_Passed", // NOI18N
"Passed")); // NOI18N
savePassResultsForDisplay(r);
Enumeration e = r.getGoodDetails().elements();
while (e.hasMoreElements()) {
s.append((String) e.nextElement());
s.append("\n"); // NOI18N
}
break;
}
case Result.FAILED:
{
status =
(smh.getLocalString(
"com.sun.enterprise.tools.verifier.gui.ResultsPanel" + // NOI18N
".Status_Failed", // NOI18N
"FAILED")); // NOI18N
saveFailResultsForDisplay(r);
Enumeration e = r.getErrorDetails().elements();
while (e.hasMoreElements()) {
s.append((String) e.nextElement());
s.append("\n"); // NOI18N
}
break;
}
case Result.WARNING:
{
status =
(smh.getLocalString(
"com.sun.enterprise.tools.verifier.gui.ResultsPanel" + // NOI18N
".Status_Warning", // NOI18N
"WARNING")); // NOI18N
saveWarnResultsForDisplay(r);
Enumeration e = r.getWarningDetails().elements();
while (e.hasMoreElements()) {
s.append((String) e.nextElement());
s.append("\n"); // NOI18N
}
break;
}
case Result.NOT_APPLICABLE:
{
status =
(smh.getLocalString(
"com.sun.enterprise.tools.verifier.gui.ResultsPanel" + // NOI18N
".Status_NotApplicable", // NOI18N
"Not Applicable")); // NOI18N
saveNaResultsForDisplay(r);
Enumeration e = r.getNaDetails().elements();
while (e.hasMoreElements()) {
s.append((String) e.nextElement());
s.append("\n"); // NOI18N
}
break;
}
case Result.NOT_IMPLEMENTED:
{
status =
(smh.getLocalString(
"com.sun.enterprise.tools.verifier.gui.ResultsPanel" + // NOI18N
".Status_NotImplemented", // NOI18N
"Not Implemented")); // NOI18N
saveNotImplementedResultsForDisplay(r);
break;
}
case Result.NOT_RUN:
{
status =
(smh.getLocalString(
"com.sun.enterprise.tools.verifier.gui.ResultsPanel" + // NOI18N
".Status_NotRun", // NOI18N
"Not Run")); // NOI18N
saveNotRunResultsForDisplay(r);
break;
}
default:
{
status =
(smh.getLocalString(
"com.sun.enterprise.tools.verifier.gui.ResultsPanel" + // NOI18N
".Status_Unknown", // NOI18N
"Unknown")); // NOI18N
saveDefaultResultsForDisplay(r);
break;
}
}
// create a table row for this result
Object[] row = {r.getComponentName(), r.getTestName(), status};
if (ControlPanel.getReportLevel() == VerifierConstants.FAIL &&
r.getStatus() == Result.FAILED) {
details.add(s.toString());
tableModel.addRow(row);
}
if (ControlPanel.getReportLevel() == VerifierConstants.WARN &&
(r.getStatus() == Result.FAILED ||
r.getStatus() == Result.WARNING)) {
details.add(s.toString());
tableModel.addRow(row);
}
if (ControlPanel.getReportLevel() == VerifierConstants.ALL) {