TRUNK-5816 PowerMock not supported on JUnit 5
We can thus only test the valid case since there is no way for us to
mock static methods. Mockito does not support that.
Since JUnit 5 needs at minimum a JRE 8 this test should always pass
irrespective of the JRE we are using to run our tests
TRUNK-5816 Migrate MediaHandlerTest to JUnit5
Since PowerMock is not supported on JUnit 5 we need to convert it to an
integration test. If the handler would have the AdministrationService as
a dependency passed like for example the constructor we would enable
unit testing. Reaching for services via the Context is a bad practice
that we need to get rid of for exactly such cases.
TRUNK-5816 Migrate TextHandlerTest to JUnit5
Since PowerMock is not supported on JUnit 5 we need to convert it to an
integration test. If the handler would have the AdministrationService as
a dependency passed like for example the constructor we would enable
unit testing. Reaching for services via the Context is a bad practice
that we need to get rid of for exactly such cases.
TRUNK-5816 No need for these test javadocs
as we can easily see the method under test and navigate to its
implementation. having these javadocs does not provide any benefit.
we have therefore decided some time ago that these do not have to be
written.
teleivo <teleivo@users.noreply.github.com>
0a754b343f94f01bf6a4abdf6976faec506f0516
TRUNK-5816 Make AllergyValidator unit testable
by Autowiring the MessageSourceService instead of reaching for it via
the Context which is a bad practice since it prevents testing things in
isolation.