Writing tests for utility methods that are not Implemented

Hello everyone,

I have been going through a certain utility class “OpenmrsUtil” wich has a TODO that requires all its methods to be tested. Among the ones that don’t have tests against them, there are some that are not implemented anywhere and I would like to know if they too require tests or they are deprecated and should be ignored.

Technically, if they were deprecated, they should have a Javadoc comment marking them as deprecated, e.g.,

/**
 * @deprecated Since 2.8.0
 */

Most likely they are referenced from somewhere, just not OpenMRS Core (especially some older methods may be called from the LegacyUI module).

1 Like