Spring Boot integration tests doesn't read properties files
问题 I would like to create integration test in which Spring Boot will read a value from .properties file using @Value annotation. But every time I'm running test my assertion fails because Spring is unable to read the value: org.junit.ComparisonFailure: Expected :works! Actual :${test} My test: @RunWith(SpringJUnit4ClassRunner.class) @ContextConfiguration(classes = {WebTests.ConfigurationClass.class, WebTests.ClassToTest.class}) public class WebTests { @Configuration @ActiveProfiles("test")