-
- All Implemented Interfaces:
-
org.springframework.context.ApplicationContextInitializer
public final class TestPropertiesInitializer implements ApplicationContextInitializer<ConfigurableApplicationContext>Allows to bundle particular properties within test jar and apply them automatically.
For example, target production http client jar might require specifying client certificate by default. However, we might not need that in tests and allow to disable that restriction via particular property. Then we can bundle a file name like
harmonysoft-http-test.propertiesintohttp-client.jarwhich suppresses certificate check.
-
-
Constructor Summary
Constructors Constructor Description TestPropertiesInitializer()
-
Method Summary
Modifier and Type Method Description Unitinitialize(ConfigurableApplicationContext context)-
-
Method Detail
-
initialize
Unit initialize(ConfigurableApplicationContext context)
-
-
-
-