Using Property Configuration Holders with Plain Spring TestContext Framework

From NovaOrdis Knowledge Base
Jump to navigation Jump to search

Internal

Overview

Property configuration holders are a Spring Boot pattern. They require Spring Boot dependencies and runtime to function. However, they're useful, so this is a method to get them to work with plain TestContext Framework tests.

Playground Example

https://github.com/ovidiuf/playground/tree/master/spring/testing/02-integration-test-with-config-property-holder