Closed martin-fleck-at closed 3 years ago
For the moment, we downgraded to Javalin version 3.1.0 again in this commit to avoid the mocking problems that prevent the tests from running successful. In the long term, however, we should upgrade to a newer Javalin version. I therefore close this issue and created a follow-up issue to monitor the situation to upgrade eventually.
Since updating to the latest version of Kotlin in https://github.com/eclipse-emfcloud/emfcloud-modelserver/pull/56 the JUnit tests seem to fail sometimes with the following error:
After investigating that for a bit, it seems that there was a change that marked the method
pathParam
with@JvmSynthetic
to might have fixed that but did not in our case: https://github.com/tipsy/javalin/commit/be8910b3e867e1662663fbedb4e914c4262aff64.There are already some open issues related to this:
The problem should be investigated and fixed, either by re-writing the mocking code, downgrading to a Javalin version that works (previously we used 3.1.0) of finding another way to get the test cases to run properly.