Opened 4 years ago
Closed 4 years ago
#20085 closed defect (fixed)
Mapillary test failures with openjdk11
Reported by: | Don-vip | Owned by: | taylor.smock |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | Plugin mapillary | Version: | |
Keywords: | test java11 junit | Cc: |
Description
See jenkins/job/JOSM-Plugins/jdk=JDK11/lastCompletedBuild/testReport/
36 test failures, all from Mapillary plugin, but only with Java 11.
Worked fine before these changes:
TEST: Junit4 -> JUnit 5 migration Signed-off-by: Taylor Smock <tsmock@fb.com> (détails) by taylor.smock FIXUP: JOSM-20040, fix restartless uninstall Several classes had to be modified to avoid NPE's, and the actual code to destroy menu items now has to account for null objects. Signed-off-by: Taylor Smock <tsmock@fb.com> (détails) by taylor.smock
Attachments (1)
Change History (5)
follow-up: 2 comment:1 by , 4 years ago
comment:2 by , 4 years ago
I need to make some modifications to build-common.xml
, I think.
Issue:
build-common.xml
is still using junit
for running unit tests, and the ant junit
task supports JUnit 3 and JUnit 4, but not JUnit 5.
Solution:
Switch to junitlauncher
which supports JUnit 4 and JUnit 5 (and maybe JUnit 3 through the JUnit 4 support, I'll check with eventbus
-- SubscriberTest.java
seems to use JUnit 3). turnrestrictions
also uses JUnit 3 in AllEditorTests
.
comment:4 by , 4 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
It looks like all tests have the same reason to fail: