Skip to content

Commit 7c0c953

Browse files
committed
Add value alias for SpringApplicationConfiguration
Given that Spring Boot uses java config accross the board, a new `value` attribute is now aliased to the existing `classes` attribute such that one could write the following: @SpringApplicationConfiguration(MyConfig.class) public class MyTest {} Closes spring-projectsgh-3635
1 parent 87d214e commit 7c0c953

File tree

130 files changed

+139
-132
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

130 files changed

+139
-132
lines changed

spring-boot-actuator-docs/src/restdoc/java/org/springframework/boot/actuate/hypermedia/EndpointDocumentation.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858
import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.status;
5959

6060
@RunWith(SpringJUnit4ClassRunner.class)
61-
@SpringApplicationConfiguration(classes = SpringBootHypermediaApplication.class)
61+
@SpringApplicationConfiguration(SpringBootHypermediaApplication.class)
6262
@WebAppConfiguration
6363
@TestPropertySource(properties = { "spring.jackson.serialization.indent_output=true",
6464
"endpoints.health.sensitive=true", "endpoints.actuator.enabled=false" })

spring-boot-actuator-docs/src/restdoc/java/org/springframework/boot/actuate/hypermedia/HealthEndpointDocumentation.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.status;
4141

4242
@RunWith(SpringJUnit4ClassRunner.class)
43-
@SpringApplicationConfiguration(classes = SpringBootHypermediaApplication.class)
43+
@SpringApplicationConfiguration(SpringBootHypermediaApplication.class)
4444
@WebAppConfiguration
4545
@TestPropertySource(properties = { "spring.jackson.serialization.indent_output=true",
4646
"endpoints.health.sensitive=false" })

spring-boot-actuator-docs/src/restdoc/java/org/springframework/boot/actuate/hypermedia/HypermediaEndpointDocumentation.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.status;
4141

4242
@RunWith(SpringJUnit4ClassRunner.class)
43-
@SpringApplicationConfiguration(classes = SpringBootHypermediaApplication.class)
43+
@SpringApplicationConfiguration(SpringBootHypermediaApplication.class)
4444
@WebAppConfiguration
4545
@TestPropertySource(properties = "spring.jackson.serialization.indent_output=true")
4646
@DirtiesContext

spring-boot-actuator/src/test/java/org/springframework/boot/actuate/autoconfigure/BrowserPathHypermediaIntegrationTests.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
* @author Andy Wilkinson
4949
*/
5050
@RunWith(SpringJUnit4ClassRunner.class)
51-
@SpringApplicationConfiguration(classes = SpringBootHypermediaApplication.class)
51+
@SpringApplicationConfiguration(SpringBootHypermediaApplication.class)
5252
@WebAppConfiguration
5353
@TestPropertySource(properties = "endpoints.actuator.path=/actuator")
5454
@DirtiesContext

spring-boot-actuator/src/test/java/org/springframework/boot/actuate/autoconfigure/EndpointMvcIntegrationTests.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@
7272
* @author Dave Syer
7373
*/
7474
@RunWith(SpringJUnit4ClassRunner.class)
75-
@SpringApplicationConfiguration(classes = Application.class)
75+
@SpringApplicationConfiguration(Application.class)
7676
@IntegrationTest("server.port=0")
7777
@WebAppConfiguration
7878
@DirtiesContext

spring-boot-actuator/src/test/java/org/springframework/boot/actuate/autoconfigure/ManagementContextPathHypermediaIntegrationTests.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
* @author Andy Wilkinson
5252
*/
5353
@RunWith(SpringJUnit4ClassRunner.class)
54-
@SpringApplicationConfiguration(classes = SpringBootHypermediaApplication.class)
54+
@SpringApplicationConfiguration(SpringBootHypermediaApplication.class)
5555
@WebAppConfiguration
5656
@TestPropertySource(properties = "management.contextPath:/admin")
5757
@DirtiesContext

spring-boot-actuator/src/test/java/org/springframework/boot/actuate/autoconfigure/ServerContextPathHypermediaIntegrationTests.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
* @author Andy Wilkinson
5252
*/
5353
@RunWith(SpringJUnit4ClassRunner.class)
54-
@SpringApplicationConfiguration(classes = SpringBootHypermediaApplication.class)
54+
@SpringApplicationConfiguration(SpringBootHypermediaApplication.class)
5555
@WebAppConfiguration
5656
@IntegrationTest({ "server.port=0", "server.contextPath=/spring" })
5757
@DirtiesContext

spring-boot-actuator/src/test/java/org/springframework/boot/actuate/autoconfigure/ServerPortHypermediaIntegrationTests.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
* @author Andy Wilkinson
5252
*/
5353
@RunWith(SpringJUnit4ClassRunner.class)
54-
@SpringApplicationConfiguration(classes = SpringBootHypermediaApplication.class)
54+
@SpringApplicationConfiguration(SpringBootHypermediaApplication.class)
5555
@WebAppConfiguration
5656
@IntegrationTest({ "server.port=0", "management.port=0" })
5757
@DirtiesContext

spring-boot-actuator/src/test/java/org/springframework/boot/actuate/autoconfigure/VanillaHypermediaIntegrationTests.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
* @author Andy Wilkinson
4949
*/
5050
@RunWith(SpringJUnit4ClassRunner.class)
51-
@SpringApplicationConfiguration(classes = SpringBootHypermediaApplication.class)
51+
@SpringApplicationConfiguration(SpringBootHypermediaApplication.class)
5252
@WebAppConfiguration
5353
@DirtiesContext
5454
public class VanillaHypermediaIntegrationTests {

spring-boot-actuator/src/test/java/org/springframework/boot/actuate/endpoint/mvc/EnvironmentMvcEndpointTests.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
* @author Andy Wilkinson
5353
*/
5454
@RunWith(SpringJUnit4ClassRunner.class)
55-
@SpringApplicationConfiguration(classes = { TestConfiguration.class })
55+
@SpringApplicationConfiguration(TestConfiguration.class)
5656
@WebAppConfiguration
5757
public class EnvironmentMvcEndpointTests {
5858

spring-boot-actuator/src/test/java/org/springframework/boot/actuate/endpoint/mvc/JolokiaMvcEndpointTests.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@
5757
* @author Dave Syer
5858
*/
5959
@RunWith(SpringJUnit4ClassRunner.class)
60-
@SpringApplicationConfiguration(classes = { Config.class })
60+
@SpringApplicationConfiguration(Config.class)
6161
@WebAppConfiguration
6262
public class JolokiaMvcEndpointTests {
6363

spring-boot-actuator/src/test/java/org/springframework/boot/actuate/endpoint/mvc/MetricsMvcEndpointTests.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
* @author Sergei Egorov
5757
*/
5858
@RunWith(SpringJUnit4ClassRunner.class)
59-
@SpringApplicationConfiguration(classes = { TestConfiguration.class })
59+
@SpringApplicationConfiguration(TestConfiguration.class)
6060
@WebAppConfiguration
6161
public class MetricsMvcEndpointTests {
6262

spring-boot-actuator/src/test/java/org/springframework/boot/actuate/metrics/integration/SpringIntegrationMetricReaderTests.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
* @author Dave Syer
4040
*/
4141
@RunWith(SpringJUnit4ClassRunner.class)
42-
@SpringApplicationConfiguration(classes = TestConfiguration.class)
42+
@SpringApplicationConfiguration(TestConfiguration.class)
4343
@IntegrationTest("spring.jmx.enabled=true")
4444
@DirtiesContext
4545
public class SpringIntegrationMetricReaderTests {

spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/MessageSourceAutoConfigurationIntegrationTests.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
*
3636
* @author Dave Syer
3737
*/
38-
@SpringApplicationConfiguration(classes = { Config.class,
38+
@SpringApplicationConfiguration({ Config.class,
3939
MessageSourceAutoConfiguration.class, PropertyPlaceholderAutoConfiguration.class })
4040
@RunWith(SpringJUnit4ClassRunner.class)
4141
@IntegrationTest("spring.messages.basename:test/messages")

spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/MessageSourceAutoConfigurationProfileTests.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
*
3636
* @author Dave Syer
3737
*/
38-
@SpringApplicationConfiguration(classes = { Config.class,
38+
@SpringApplicationConfiguration({ Config.class,
3939
MessageSourceAutoConfiguration.class, PropertyPlaceholderAutoConfiguration.class })
4040
@RunWith(SpringJUnit4ClassRunner.class)
4141
@ActiveProfiles("switch-messages")

spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/SpringJUnitTests.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
* @author Dave Syer
3535
*/
3636
@RunWith(SpringJUnit4ClassRunner.class)
37-
@SpringApplicationConfiguration(classes = TestConfiguration.class)
37+
@SpringApplicationConfiguration(TestConfiguration.class)
3838
public class SpringJUnitTests {
3939

4040
@Autowired

spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/jersey/JerseyAutoConfigurationCustomFilterContextPathTests.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
* @author Dave Syer
5454
*/
5555
@RunWith(SpringJUnit4ClassRunner.class)
56-
@SpringApplicationConfiguration(classes = Application.class)
56+
@SpringApplicationConfiguration(Application.class)
5757
@IntegrationTest({ "server.port=0", "spring.jersey.type=filter",
5858
"server.contextPath=/app" })
5959
@WebAppConfiguration

spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/jersey/JerseyAutoConfigurationCustomFilterPathTests.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
* @author Dave Syer
5454
*/
5555
@RunWith(SpringJUnit4ClassRunner.class)
56-
@SpringApplicationConfiguration(classes = Application.class)
56+
@SpringApplicationConfiguration(Application.class)
5757
@IntegrationTest({ "server.port=0", "spring.jersey.type=filter" })
5858
@WebAppConfiguration
5959
public class JerseyAutoConfigurationCustomFilterPathTests {

spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/jersey/JerseyAutoConfigurationCustomServletContextPathTests.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
* @author Dave Syer
5454
*/
5555
@RunWith(SpringJUnit4ClassRunner.class)
56-
@SpringApplicationConfiguration(classes = Application.class)
56+
@SpringApplicationConfiguration(Application.class)
5757
@IntegrationTest({ "server.port=0", "server.contextPath=/app" })
5858
@WebAppConfiguration
5959
public class JerseyAutoConfigurationCustomServletContextPathTests {

spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/jersey/JerseyAutoConfigurationCustomServletPathTests.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
* @author Dave Syer
5454
*/
5555
@RunWith(SpringJUnit4ClassRunner.class)
56-
@SpringApplicationConfiguration(classes = Application.class)
56+
@SpringApplicationConfiguration(Application.class)
5757
@IntegrationTest("server.port=0")
5858
@WebAppConfiguration
5959
public class JerseyAutoConfigurationCustomServletPathTests {

spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/jersey/JerseyAutoConfigurationDefaultFilterPathTests.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
* @author Dave Syer
5353
*/
5454
@RunWith(SpringJUnit4ClassRunner.class)
55-
@SpringApplicationConfiguration(classes = Application.class)
55+
@SpringApplicationConfiguration(Application.class)
5656
@IntegrationTest({ "server.port=0", "spring.jersey.type=filter" })
5757
@WebAppConfiguration
5858
public class JerseyAutoConfigurationDefaultFilterPathTests {

spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/jersey/JerseyAutoConfigurationDefaultServletPathTests.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
* @author Dave Syer
5353
*/
5454
@RunWith(SpringJUnit4ClassRunner.class)
55-
@SpringApplicationConfiguration(classes = Application.class)
55+
@SpringApplicationConfiguration(Application.class)
5656
@IntegrationTest("server.port=0")
5757
@WebAppConfiguration
5858
public class JerseyAutoConfigurationDefaultServletPathTests {

spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/mustache/MustacheAutoConfigurationIntegrationTests.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
* @author Dave Syer
5454
*/
5555
@RunWith(SpringJUnit4ClassRunner.class)
56-
@SpringApplicationConfiguration(classes = Application.class)
56+
@SpringApplicationConfiguration(Application.class)
5757
@IntegrationTest({ "server.port:0",
5858
"spring.mustache.prefix:classpath:/mustache-templates/" })
5959
@WebAppConfiguration

spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/mustache/MustacheStandaloneIntegrationTests.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
* @author Dave Syer
4040
*/
4141
@RunWith(SpringJUnit4ClassRunner.class)
42-
@SpringApplicationConfiguration(classes = Application.class)
42+
@SpringApplicationConfiguration(Application.class)
4343
@IntegrationTest({ "spring.main.web_environment=false", "env.foo=Heaven", "foo=World" })
4444
public class MustacheStandaloneIntegrationTests {
4545

spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/mustache/web/MustacheWebIntegrationTests.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@
6464
* @author Dave Syer
6565
*/
6666
@RunWith(SpringJUnit4ClassRunner.class)
67-
@SpringApplicationConfiguration(classes = Application.class)
67+
@SpringApplicationConfiguration(Application.class)
6868
@IntegrationTest("server.port:0")
6969
@WebAppConfiguration
7070
public class MustacheWebIntegrationTests {

spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/security/jpa/JpaUserDetailsTests.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
* @author Dave Syer
4141
*/
4242
@RunWith(SpringJUnit4ClassRunner.class)
43-
@SpringApplicationConfiguration(classes = JpaUserDetailsTests.Main.class)
43+
@SpringApplicationConfiguration(JpaUserDetailsTests.Main.class)
4444
@DirtiesContext
4545
public class JpaUserDetailsTests {
4646

spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/security/oauth2/sso/BasicOAuth2SsoConfigurationTests.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
* @author Dave Syer
4747
*/
4848
@RunWith(SpringJUnit4ClassRunner.class)
49-
@SpringApplicationConfiguration(classes = TestConfiguration.class)
49+
@SpringApplicationConfiguration(TestConfiguration.class)
5050
@WebAppConfiguration
5151
@TestPropertySource(properties = { "security.oauth2.client.clientId=client",
5252
"security.oauth2.client.clientSecret=secret",

spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/security/oauth2/sso/CustomOAuth2SsoConfigurationTests.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
* @author Dave Syer
5353
*/
5454
@RunWith(SpringJUnit4ClassRunner.class)
55-
@SpringApplicationConfiguration(classes = TestConfiguration.class)
55+
@SpringApplicationConfiguration(TestConfiguration.class)
5656
@WebAppConfiguration
5757
@TestPropertySource(properties = { "security.oauth2.client.clientId=client",
5858
"security.oauth2.client.clientSecret=secret",

spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/web/BasicErrorControllerIntegrationTests.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959
* @author Dave Syer
6060
*/
6161
@RunWith(SpringJUnit4ClassRunner.class)
62-
@SpringApplicationConfiguration(classes = TestConfiguration.class)
62+
@SpringApplicationConfiguration(TestConfiguration.class)
6363
@WebAppConfiguration
6464
@DirtiesContext
6565
@IntegrationTest("server.port=0")

spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/web/BasicErrorControllerMockMvcTests.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@
6767
*
6868
* @author Dave Syer
6969
*/
70-
@SpringApplicationConfiguration(classes = TestConfiguration.class)
70+
@SpringApplicationConfiguration(TestConfiguration.class)
7171
@RunWith(SpringJUnit4ClassRunner.class)
7272
@WebAppConfiguration
7373
@DirtiesContext

spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/web/DefaultErrorViewIntegrationTests.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
/**
4949
* @author Dave Syer
5050
*/
51-
@SpringApplicationConfiguration(classes = TestConfiguration.class)
51+
@SpringApplicationConfiguration(TestConfiguration.class)
5252
@RunWith(SpringJUnit4ClassRunner.class)
5353
@WebAppConfiguration
5454
@DirtiesContext

spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/web/RemappedErrorViewIntegrationTests.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
/**
4343
* @author Dave Syer
4444
*/
45-
@SpringApplicationConfiguration(classes = TestConfiguration.class)
45+
@SpringApplicationConfiguration(TestConfiguration.class)
4646
@RunWith(SpringJUnit4ClassRunner.class)
4747
@WebAppConfiguration
4848
@IntegrationTest({ "server.servletPath:/spring/*", "server.port:0" })

spring-boot-cli/test-samples/integration.groovy

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
@SpringApplicationConfiguration(classes=Application)
1+
@SpringApplicationConfiguration(Application)
22
@IntegrationTest
33
class BookTests {
44
@Autowired

spring-boot-cli/test-samples/integration_auto.groovy

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
@SpringApplicationConfiguration(classes=Application)
1+
@SpringApplicationConfiguration(Application)
22
@IntegrationTest('server.port:0')
33
@WebAppConfiguration
44
@DirtiesContext

spring-boot-cli/test-samples/integration_auto_test.groovy

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
@SpringApplicationConfiguration(classes=ReactorApplication)
1+
@SpringApplicationConfiguration(ReactorApplication)
22
@IntegrationTest('server.port:0')
33
class RestTests {
44

spring-boot-devtools/src/test/java/org/springframework/boot/devtools/integrationtest/HttpTunnelIntegrationTest.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@
6161
* @author Phillip Webb
6262
*/
6363
@RunWith(SpringJUnit4ClassRunner.class)
64-
@SpringApplicationConfiguration(classes = HttpTunnelIntegrationTest.Config.class)
64+
@SpringApplicationConfiguration(HttpTunnelIntegrationTest.Config.class)
6565
@WebIntegrationTest
6666
public class HttpTunnelIntegrationTest {
6767

spring-boot-docs/src/main/asciidoc/howto.adoc

+1-1

spring-boot-docs/src/main/asciidoc/spring-boot-features.adoc

+3-3

spring-boot-integration-tests/spring-boot-security-tests/spring-boot-security-tests-web-helloworld/src/test/java/sample/HelloWebSecurityApplicationTests.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
import static org.junit.Assert.assertThat;
3636

3737
@RunWith(SpringJUnit4ClassRunner.class)
38-
@SpringApplicationConfiguration(classes = HelloWebSecurityApplication.class)
38+
@SpringApplicationConfiguration(HelloWebSecurityApplication.class)
3939
@WebIntegrationTest(randomPort = true)
4040
public class HelloWebSecurityApplicationTests {
4141

spring-boot-samples/spring-boot-sample-activemq/src/test/java/sample/activemq/SampleActiveMqTests.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
* @author Eddú Meléndez
3535
*/
3636
@RunWith(SpringJUnit4ClassRunner.class)
37-
@SpringApplicationConfiguration(classes = { SampleActiveMQApplication.class })
37+
@SpringApplicationConfiguration(SampleActiveMQApplication.class)
3838
public class SampleActiveMqTests {
3939

4040
@Rule

spring-boot-samples/spring-boot-sample-actuator-log4j/src/test/java/sample/actuator/log4j/SampleActuatorApplicationTests.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
* @author Dave Syer
4040
*/
4141
@RunWith(SpringJUnit4ClassRunner.class)
42-
@SpringApplicationConfiguration(classes = SampleActuatorLog4JApplication.class)
42+
@SpringApplicationConfiguration(SampleActuatorLog4JApplication.class)
4343
@WebAppConfiguration
4444
@IntegrationTest("server.port=0")
4545
@DirtiesContext

spring-boot-samples/spring-boot-sample-actuator-log4j2/src/test/java/sample/actuator/log4j2/SampleActuatorApplicationTests.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
* @author Dave Syer
3939
*/
4040
@RunWith(SpringJUnit4ClassRunner.class)
41-
@SpringApplicationConfiguration(classes = SampleActuatorLog4J2Application.class)
41+
@SpringApplicationConfiguration(SampleActuatorLog4J2Application.class)
4242
@WebAppConfiguration
4343
@IntegrationTest("server.port=0")
4444
@DirtiesContext

spring-boot-samples/spring-boot-sample-actuator-noweb/src/test/java/sample/actuator/noweb/SampleActuatorNoWebApplicationTests.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
* @author Dave Syer
3434
*/
3535
@RunWith(SpringJUnit4ClassRunner.class)
36-
@SpringApplicationConfiguration(classes = SampleActuatorNoWebApplication.class)
36+
@SpringApplicationConfiguration(SampleActuatorNoWebApplication.class)
3737
@DirtiesContext
3838
public class SampleActuatorNoWebApplicationTests {
3939

0 commit comments

Comments
 (0)