File tree Expand file tree Collapse file tree 1 file changed +12
-6
lines changed
spring-cloud-app-broker-autoconfigure/src/test/java/org/springframework/cloud/appbroker/autoconfigure Expand file tree Collapse file tree 1 file changed +12
-6
lines changed Original file line number Diff line number Diff line change 1616
1717package org .springframework .cloud .appbroker .autoconfigure ;
1818
19+ import org .junit .jupiter .api .BeforeEach ;
1920import org .junit .jupiter .api .Test ;
2021import reactor .core .publisher .Flux ;
2122
3334
3435class ServiceInstanceRecentLogsAutoConfigurationTests {
3536
36- private final ApplicationContextRunner contextRunner = new ApplicationContextRunner ()
37- .withConfiguration (AutoConfigurations .of (AppBrokerAutoConfiguration .class ,
38- CloudFoundryAppDeployerAutoConfiguration .class , ServiceInstanceRecentLogsAutoConfiguration .class ))
39- .withPropertyValues ("spring.cloud.appbroker.deployer.cloudfoundry.api-host=https://api.example.local" ,
40- "spring.cloud.appbroker.deployer.cloudfoundry.username=user" ,
41- "spring.cloud.appbroker.deployer.cloudfoundry.password=secret" );
37+ private ApplicationContextRunner contextRunner ;
38+
39+ @ BeforeEach
40+ void setUp () {
41+ this .contextRunner = new ApplicationContextRunner ()
42+ .withConfiguration (AutoConfigurations .of (AppBrokerAutoConfiguration .class ,
43+ CloudFoundryAppDeployerAutoConfiguration .class , ServiceInstanceRecentLogsAutoConfiguration .class ))
44+ .withPropertyValues ("spring.cloud.appbroker.deployer.cloudfoundry.api-host=https://api.example.local" ,
45+ "spring.cloud.appbroker.deployer.cloudfoundry.username=user" ,
46+ "spring.cloud.appbroker.deployer.cloudfoundry.password=secret" );
47+ }
4248
4349 @ Test
4450 void servicesAreNotCreatedWithoutLoggingOnClasspath () {
You can’t perform that action at this time.
0 commit comments