Skip to content

Commit d8ecf0f

Browse files
committed
Replace custom AssertionFailedErrors in test harness based on org.junit
The custom AssertionFailedErrors specified in org.eclipse.core.tests.harness are derived from JUnit 3/4's AssertionFailedError coming from org.junit. In order to fully migrate the test harness to JUnit 5, this change adapts those classes to subclass the AssertionFailedError from org.opentest4j as done by JUnit 5 as well. Contributes to #903
1 parent b145828 commit d8ecf0f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

runtime/tests/org.eclipse.core.tests.harness/src/org/eclipse/core/tests/harness/FussyProgressMonitor.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@
1515

1616
import static org.assertj.core.api.Assertions.assertThat;
1717

18-
import junit.framework.AssertionFailedError;
1918
import org.eclipse.core.runtime.jobs.Job;
19+
import org.opentest4j.AssertionFailedError;
2020

2121
/**
2222
* This class can be used for testing progress monitoring.

runtime/tests/org.eclipse.core.tests.harness/src/org/eclipse/core/tests/session/RemoteAssertionFailedError.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
import java.io.PrintStream;
1717
import java.io.PrintWriter;
18-
import junit.framework.AssertionFailedError;
18+
import org.opentest4j.AssertionFailedError;
1919

2020
public class RemoteAssertionFailedError extends AssertionFailedError {
2121
/**

0 commit comments

Comments
 (0)