In order for us to migrate existing tests to JUnit 5 we need to replace deprecated methods or mechanisms that will not be available anymore. @achilep is already doing that for us
It would be very helpful if every contributor/reviewer can keep an eye on the new contributions they make/review so that from now on they
Adjust the paths to your local path structure and the IntelliJ version you have installed. You might need to restart Intellij after that you should see them in the Settings β Editor β Live Templates under the group OpenMRS.
The Eclipse code templates for writing up to date Junit 4 and 5 tests in the OpenMRS style are available. Pull them from the latest master
Import them in the Eclipse Settings β Java β Editor β Templates from tools/src/main/resources/eclipse/templates.xml. You might need to either Restore Defaults or remove the old ones. Otherwise you will get duplicates.
Feel free to update them to make them even better As I havenβt used Eclipse in a while and the Eclipse templating language is not as intuitive as the IntelliJ one there might be room for improvement.