Move POJO tests from Junit 4 to JUnit 5 (Jupiter)
JUnit 4 is dead and also causes build problems with 2024-03 RCP:
[INFO] ---------------< org.simantics:org.simantics.databoard >----------------
[INFO] Building [bundle] Databoard Plug-in 0.6.6-SNAPSHOT [7/276]
[INFO] from bundles/org.simantics.databoard/.polyglot.META-INF
[INFO] ---------------------------[ eclipse-plugin ]---------------------------
[INFO] Resolving dependencies of MavenProject: org.simantics:org.simantics.databoard:0.6.6-SNAPSHOT @ /home/lehtonen/git/simantics/gitlab/platform/bundles/org.simantics.databoard/.polyglot.META-INF
[INFO] {osgi.os=linux, osgi.ws=gtk, org.eclipse.update.install.features=true, osgi.arch=x86_64}
[ERROR] Cannot resolve project dependencies:
[ERROR] Software being installed: org.simantics.databoard 0.6.6.qualifier
[ERROR] Missing requirement: org.hamcrest.core 2.2.0.v20230809-1000 requires 'osgi.bundle; org.hamcrest 2.2.0' but it could not be found
[ERROR] Cannot satisfy dependency: org.junit 4.13.2.v20230809-1000 depends on: osgi.bundle; org.hamcrest.core 1.3.0
[ERROR] Cannot satisfy dependency: org.simantics.databoard 0.6.6.qualifier depends on: osgi.bundle; org.junit 0.0.0
because it seems org.junit:4.13.2
still depends on org.hamcrest.core:1.3.0
but the RCP itself only includes org.hamcrest:2.2.0
, which is not compatible with the required-version:1.3.0
specification, thus causing builds to fail.
Edited by Tuukka Lehtonen