All Questions
Tagged with spring-properties spring-boot-test
2 questions
0
votes
0
answers
74
views
@SpringBootTest: @ActiveProfiles doesn't work when put on @Nested inner class
I have a spring boot app.
project deps (plugins section):
id 'org.springframework.boot' version '2.6.1'
id 'io.spring.dependency-management' version '1.0.11.RELEASE'
And I want to test on of my ...
6
votes
3
answers
9k
views
Spring boot property value conversion from String to Duration works in application, fails in unit test
According to the spring docs, string property values such as 10s will be properly converted into a java.time.Duration.
Indeed this works for me with the main application properties. But it fails in a ...