Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Kurtakov2020-02-11 09:40:38 +0000
committerAlexander Kurtakov2020-02-11 11:57:29 +0000
commitc3c0ef751d02e84430240c95f70b7887d60a5f7f (patch)
treeea774371989a8fcaabca0c9895ea28bd9845d44f
parent5e495ce460479b08be37a406a2374774d850dd92 (diff)
downloadeclipse.platform.text-c3c0ef751d02e84430240c95f70b7887d60a5f7f.tar.gz
eclipse.platform.text-c3c0ef751d02e84430240c95f70b7887d60a5f7f.tar.xz
eclipse.platform.text-c3c0ef751d02e84430240c95f70b7887d60a5f7f.zip
Remove wrong and useless comments.
The Junit 3 AssertionFailedError is no longer thrown. The comment about JUnit 4 method name rule is useless at this place Change-Id: I780028e19cd48c4957e2abc8183f895343d4c706 Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
-rw-r--r--org.eclipse.jface.text.tests/src/org/eclipse/jface/text/tests/util/DisplayHelper.java2
-rw-r--r--org.eclipse.ui.workbench.texteditor.tests/src/org/eclipse/ui/workbench/texteditor/tests/ScreenshotTest.java9
2 files changed, 0 insertions, 11 deletions
diff --git a/org.eclipse.jface.text.tests/src/org/eclipse/jface/text/tests/util/DisplayHelper.java b/org.eclipse.jface.text.tests/src/org/eclipse/jface/text/tests/util/DisplayHelper.java
index a609aa4bb..3f2961341 100644
--- a/org.eclipse.jface.text.tests/src/org/eclipse/jface/text/tests/util/DisplayHelper.java
+++ b/org.eclipse.jface.text.tests/src/org/eclipse/jface/text/tests/util/DisplayHelper.java
@@ -532,8 +532,6 @@ final class DisplayWaiter {
* Implements state consistency checking.
*
* @param states the allowed states
- * @throws junit.framework.AssertionFailedError if the current state is not
- * in <code>states</code>
*/
private void assertStates(int states) {
Assert.assertTrue("illegal state", isState(states));
diff --git a/org.eclipse.ui.workbench.texteditor.tests/src/org/eclipse/ui/workbench/texteditor/tests/ScreenshotTest.java b/org.eclipse.ui.workbench.texteditor.tests/src/org/eclipse/ui/workbench/texteditor/tests/ScreenshotTest.java
index c38345e45..2084ce0c4 100644
--- a/org.eclipse.ui.workbench.texteditor.tests/src/org/eclipse/ui/workbench/texteditor/tests/ScreenshotTest.java
+++ b/org.eclipse.ui.workbench.texteditor.tests/src/org/eclipse/ui/workbench/texteditor/tests/ScreenshotTest.java
@@ -89,15 +89,6 @@ public class ScreenshotTest {
/**
* Takes a screenshot and dumps other debugging information to the given stream.
*
- * <p>
- * Workaround for missing {@link junit.framework.TestCase#getName()} in JUnit 4:
- * </p>
- *
- * <pre>
- * &#64;Rule
- * public TestName testName = new TestName();
- * </pre>
- *
* @param testClass test class that takes the screenshot
* @param name screenshot identifier (e.g. test name)
* @param out print stream to use for diagnostics.

Back to the top