From 974b894c276e9be8b8c856d9a7918e9647fb23de Mon Sep 17 00:00:00 2001 From: Martin Oberhuber < martin.oberhuber@windriver.com> Date: Thu, 14 Dec 2006 15:15:30 +0000 Subject: [PATCH] Fix build error against 3.2.1, fix javadoc errors --- .../eclipse/rse/tests/core/RSECoreTestCase.java | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/rse/tests/org.eclipse.rse.tests/src/org/eclipse/rse/tests/core/RSECoreTestCase.java b/rse/tests/org.eclipse.rse.tests/src/org/eclipse/rse/tests/core/RSECoreTestCase.java index cc6ddbde187..f87bf787119 100644 --- a/rse/tests/org.eclipse.rse.tests/src/org/eclipse/rse/tests/core/RSECoreTestCase.java +++ b/rse/tests/org.eclipse.rse.tests/src/org/eclipse/rse/tests/core/RSECoreTestCase.java @@ -6,6 +6,7 @@ * * Contributors: * Uwe Stieber (Wind River) - initial contribution. + * Martin Oberhuber (Wind River) - fix build against 3.2.1, fix javadoc errors * *******************************************************************************/ package org.eclipse.rse.tests.core; @@ -392,9 +393,9 @@ public class RSECoreTestCase extends TestCase { * Finds the view reference for the view identified by the specified id. * * @param viewId The unique view id. Must be not null. - * @param prespectiveId The unique perspective id within the view should be searched. Must be not null. + * @param perspectiveId The unique perspective id within the view should be searched. Must be not null. * @return The view reference instance to the view or null if not available. - * @throws WorkbenchException If the specified perspective could not be shown. + * @throws WorkbenchException If the specified perspective could not be shown. */ protected final IViewReference findView(String viewId, String perspectiveId) throws WorkbenchException { assert viewId != null && perspectiveId != null; @@ -422,9 +423,9 @@ public class RSECoreTestCase extends TestCase { * Shows and activate the view identified by the specified id. * * @param viewId The unique view id. Must be not null. - * @param prespectiveId The unique perspective id within the view should be activated. Must be not null. + * @param perspectiveId The unique perspective id within the view should be activated. Must be not null. * @return The view part instance to the view or null if it cannot be shown. - * @throws WorkbenchException If the specified perspective could not be shown. + * @throws WorkbenchException If the specified perspective could not be shown. */ protected final IViewPart showView(String viewId, String perspectiveId) throws WorkbenchException { assert viewId != null && perspectiveId != null; @@ -452,8 +453,8 @@ public class RSECoreTestCase extends TestCase { * Hides the view identified by the specified id. * * @param viewId The unique view id. Must be not null. - * @param prespectiveId The unique perspective id the view should be hidden from. Must be not null. - * @throws WorkbenchException If the specified perspective could not be shown. + * @param perspectiveId The unique perspective id the view should be hidden from. Must be not null. + * @throws WorkbenchException If the specified perspective could not be shown. */ protected final void hideView(String viewId, String perspectiveId) throws WorkbenchException { assert viewId != null && perspectiveId != null; @@ -542,7 +543,7 @@ public class RSECoreTestCase extends TestCase { // Log the error to the error log. IStatus status = new Status(IStatus.ERROR, RSETestsPlugin.getDefault().getBundle().getSymbolicName(), - 0, + 1, "RSE JUnit test case '" + test + "' failed with error. Possible cause: " + error.getLocalizedMessage(), //$NON-NLS-1$ //$NON-NLS-2$ error ); @@ -561,6 +562,7 @@ public class RSECoreTestCase extends TestCase { // Log the failure to the error log. IStatus status = new Status(IStatus.ERROR, RSETestsPlugin.getDefault().getBundle().getSymbolicName(), + 1, "RSE JUnit test case '" + test + "' failed. Failure: " + failure.getLocalizedMessage(), //$NON-NLS-1$ //$NON-NLS-2$ failure );