My test class is:
@RunWith(MockitoJUnitRunner.class)
@TestPropertySource
public class FooClassTest {
@Value("${foo.property}")
String property;
...
}
In my application properties, inside test/resources folder, I have the property foo.property=some, but when I launch FooClassTest, property is null.
What I am doing wrong?