fixed error in staging multidocument integration test
This commit is contained in:
parent
6e02759f10
commit
dec59dec95
|
@ -15,6 +15,7 @@ spring:
|
|||
username: SA
|
||||
bael:
|
||||
property: stagingValue
|
||||
stagingProperty: stagingPropertyValue
|
||||
---
|
||||
application:
|
||||
servers:
|
||||
|
|
|
@ -17,14 +17,18 @@ public class StagingMultidocumentFilesIntegrationTest {
|
|||
|
||||
@Value("${bael.property}")
|
||||
private String baelCustomProperty;
|
||||
|
||||
|
||||
@Value("${bael.stagingProperty}")
|
||||
private String baelStagingProperty;
|
||||
|
||||
@Value("${bael.root-level-property}")
|
||||
private String baelRootProperty;
|
||||
|
||||
@Test
|
||||
@Disabled("Fix and update https://www.baeldung.com/spring-boot-yaml-vs-properties article")
|
||||
public void givenProductionProfileActive_whenApplicationStarts_thenDefaultPropertiesUser() {
|
||||
assertThat(baelCustomProperty).isEqualTo("stagingValue");
|
||||
assertThat(baelStagingProperty).isEqualTo("stagingPropertyValue");
|
||||
// application.properties is loaded after the application.yml file and overrides the values
|
||||
assertThat(baelCustomProperty).isEqualTo("defaultValue");
|
||||
assertThat(baelRootProperty).isEqualTo("defaultRootLevelValue");
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue