Commit b8e017d
Fix JUnit 5 migration issues in org.eclipse.text.tests
This commit fixes test failures introduced during the JUnit 5 migration
in PR #3410 for the org.eclipse.text.tests bundle.
Changes:
1. Added missing JUnit 5 package import to MANIFEST.MF:
- org.junit.jupiter.api.function (required for assertThrows)
2. Fixed assertEquals parameter order in TextEditTests.java:
- JUnit 5 changed assertEquals signature from (message, expected, actual)
to (expected, actual, message)
- Fixed 61 assertions to use correct JUnit 5 parameter order
3. Fixed annotation in FindReplaceDocumentAdapterTest.java:
- Changed @org.junit.Test (JUnit 4) to @test (JUnit 5)
- This was preventing @beforeeach from running, causing null pointer errors
All 578 tests now pass successfully (0 failures, 0 errors, 2 skipped).
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>1 parent 71d4fd1 commit b8e017d
File tree
3 files changed
+47
-46
lines changed- tests/org.eclipse.text.tests
- META-INF
- src/org/eclipse/text/tests
3 files changed
+47
-46
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| 18 | + | |
18 | 19 | | |
19 | 20 | | |
20 | 21 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
77 | 77 | | |
78 | 78 | | |
79 | 79 | | |
80 | | - | |
| 80 | + | |
81 | 81 | | |
82 | 82 | | |
83 | 83 | | |
| |||
0 commit comments