| commit | 8323cc1c1dd934025bbd9c99f16092d93241ac31 | [log] [tgz] |
|---|---|---|
| author | nitind <nitind> | Thu Mar 12 01:49:45 2009 +0000 |
| committer | nitind <nitind> | Thu Mar 12 01:49:45 2009 +0000 |
| tree | 1c55d57dd5bb07fcafa920ad52a6c1d27930c523 | |
| parent | b4b2f4e18cebe70c40c0e97627ae09fb972dfe90 [diff] |
report which errors are found
diff --git a/tests/org.eclipse.jst.jsp.core.tests/src/org/eclipse/jst/jsp/core/tests/validation/JSPActionValidatorTest.java b/tests/org.eclipse.jst.jsp.core.tests/src/org/eclipse/jst/jsp/core/tests/validation/JSPActionValidatorTest.java index 9520642..e22c507 100644 --- a/tests/org.eclipse.jst.jsp.core.tests/src/org/eclipse/jst/jsp/core/tests/validation/JSPActionValidatorTest.java +++ b/tests/org.eclipse.jst.jsp.core.tests/src/org/eclipse/jst/jsp/core/tests/validation/JSPActionValidatorTest.java
@@ -126,8 +126,15 @@ helper.setURI(filePath); validator.validate(helper, reporter); + + StringBuffer error = new StringBuffer("jsp action validator found errors when it should not have"); + List messages = reporter.getMessages(); + for (int i = 0; i < messages.size(); i++) { + error.append('\n'); + error.append(((IMessage) messages.get(i)).getText()); + } - assertTrue("jsp action validator found errors when it should not have", reporter.getMessages().isEmpty()); + assertTrue(error.toString(), reporter.getMessages().isEmpty()); } /**