diff options
author | Chris Goldthorpe | 2010-07-02 20:04:16 +0000 |
---|---|---|
committer | Chris Goldthorpe | 2010-07-02 20:04:16 +0000 |
commit | 6eeb11670148a12b240f38a63e1a334cffb2f93e (patch) | |
tree | 0d2beefc54a7914535db62ad985cfebdb60cf740 /org.eclipse.ua.tests/help/org | |
parent | 55d6019524eef379e1a2fa7b73f7be89e6381a1c (diff) | |
download | eclipse.platform.ua-6eeb11670148a12b240f38a63e1a334cffb2f93e.tar.gz eclipse.platform.ua-6eeb11670148a12b240f38a63e1a334cffb2f93e.tar.xz eclipse.platform.ua-6eeb11670148a12b240f38a63e1a334cffb2f93e.zip |
Add more info if test fails due to bad status when adding page to index
Diffstat (limited to 'org.eclipse.ua.tests/help/org')
-rw-r--r-- | org.eclipse.ua.tests/help/org/eclipse/ua/tests/help/remote/SearchIndexCreation.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/org.eclipse.ua.tests/help/org/eclipse/ua/tests/help/remote/SearchIndexCreation.java b/org.eclipse.ua.tests/help/org/eclipse/ua/tests/help/remote/SearchIndexCreation.java index 0244d8d47..172594c76 100644 --- a/org.eclipse.ua.tests/help/org/eclipse/ua/tests/help/remote/SearchIndexCreation.java +++ b/org.eclipse.ua.tests/help/org/eclipse/ua/tests/help/remote/SearchIndexCreation.java @@ -72,8 +72,8 @@ public class SearchIndexCreation extends TestCase { String doc, boolean exists) { URL url = SearchIndex.getIndexableURL(index.getLocale(), doc); IStatus status = index.addDocument(url.getFile(), url); - if (exists) { - assertTrue(status.isOK()); + if (exists && !status.isOK()) { + fail(doc + " status = " + status.getMessage()); } } |