Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Goldthorpe2010-07-05 11:19:03 -0400
committerChris Goldthorpe2010-07-05 11:19:03 -0400
commita7a5c4925264cb74867d233b374621fafbb1c939 (patch)
tree4645e0f974de3e4aed69d775d9a21ea3070f4f9d
parent6eeb11670148a12b240f38a63e1a334cffb2f93e (diff)
downloadeclipse.platform.ua-a7a5c4925264cb74867d233b374621fafbb1c939.tar.gz
eclipse.platform.ua-a7a5c4925264cb74867d233b374621fafbb1c939.tar.xz
eclipse.platform.ua-a7a5c4925264cb74867d233b374621fafbb1c939.zip
Rethrow any exception thrown so we can see the stack tracev20100705
-rw-r--r--org.eclipse.ua.tests/help/org/eclipse/ua/tests/help/remote/SearchIndexCreation.java9
1 files changed, 6 insertions, 3 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 172594c76..977805d1d 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
@@ -43,7 +43,7 @@ public class SearchIndexCreation extends TestCase {
BaseHelpSystem.setMode(mode);
}
- public void testSearchIndexMakesNoRemoteCalls() throws Exception {
+ public void testSearchIndexMakesNoRemoteCalls() throws Throwable {
int initialCallCount = MockContentServlet.getCallcount();
SearchIndexWithIndexingProgress index = new SearchIndexWithIndexingProgress("en-us", analyzerDesc, HelpPlugin
.getTocManager());
@@ -55,7 +55,7 @@ public class SearchIndexCreation extends TestCase {
assertEquals("Remote server called", 0, finalCallCount - initialCallCount);
}
- public void testSearchIndexMakesNoRemoteCallsRemotePriority() throws Exception {
+ public void testSearchIndexMakesNoRemoteCallsRemotePriority() throws Throwable {
RemotePreferenceStore.setMockRemotePriority();
int initialCallCount = MockContentServlet.getCallcount();
SearchIndexWithIndexingProgress index = new SearchIndexWithIndexingProgress("en-us", analyzerDesc, HelpPlugin
@@ -69,10 +69,13 @@ public class SearchIndexCreation extends TestCase {
}
private void addHrefToIndex(SearchIndexWithIndexingProgress index,
- String doc, boolean exists) {
+ String doc, boolean exists) throws Throwable {
URL url = SearchIndex.getIndexableURL(index.getLocale(), doc);
IStatus status = index.addDocument(url.getFile(), url);
if (exists && !status.isOK()) {
+ if (status.getException() != null) {
+ throw status.getException();
+ }
fail(doc + " status = " + status.getMessage());
}
}

Back to the top