Hi there,
I am adding a new method to ModuleUtil
see
and the PR https://github.com/openmrs/openmrs-core/pull/1836
Im having issues with testing.
My method calls static method
ModuleUtil.matchRequiredVersions(OpenmrsConstants.OPENMRS_VERSION_SHORT, version))
Constant OpenmrsConstants.OPENMRS_VERSION_SHORT
is constructed from openmrs.properties file
see
which contains variables which are replaced by maven on build, but when testing the are just something like “${openmrs.version}”
What I would like is to set the OpenmrsConstants.OPENMRS_VERSION_SHORT
to something known, control it during my tests.
My tests are in a BaseContextSensitiveTest
class.
Any suggestions ?