- All Implemented Interfaces:
- org.junit.runner.Describable, org.junit.runner.manipulation.Filterable, org.junit.runner.manipulation.Sortable, org.unitils.TestRunnerAccessor
public class AlternativeUnitilsJUnit4TestClassRunner
extends org.unitils.UnitilsJUnit4TestClassRunner
The CDM integration tests can not yet use the SpringJUnit4ClassRunner
provided by the spring test framework. Due to this it is not possible to use
@TestPropertySource(properties = {"myproperty = foo"})
to inject properties into the spring environment which are
needed to configure the tests. This ClassRunner
is simple alternative which also allows to inject
properties into the spring environments. In contrast to the SpringJUnit4ClassRunner
it loads the properties from a test resource file named spring-environment.mock.properties
- Since:
- Nov 23, 2017
- Author:
- a.kohlbecker