mirror of
https://github.com/spring-projects/spring-boot.git
synced 2024-07-15 01:07:30 +08:00
Rename test classes so that their tests are run by Maven
This commit is contained in:
parent
9baa9772c2
commit
5bbd31e7a3
@ -17,7 +17,7 @@ import static org.assertj.core.api.Assertions.assertThat;
|
||||
* @author Madhura Bhave
|
||||
*/
|
||||
@RunWith(SpringRunner.class)
|
||||
public class SampleTestNoMockitoApplicationTest {
|
||||
public class SampleTestNoMockitoApplicationTests {
|
||||
|
||||
// gh-7065
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2012-2016 the original author or authors.
|
||||
* Copyright 2012-2018 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@ -42,7 +42,7 @@ import static org.assertj.core.api.Assertions.assertThat;
|
||||
@OverrideAutoConfiguration(enabled = false)
|
||||
@BootstrapWith(SpringBootTestContextBootstrapper.class)
|
||||
@ImportAutoConfiguration(ExampleTestConfig.class)
|
||||
public class OverrideAutoConfigurationEnabledFalseIntegrationTest {
|
||||
public class OverrideAutoConfigurationEnabledFalseIntegrationTests {
|
||||
|
||||
@Rule
|
||||
public ExpectedException thrown = ExpectedException.none();
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2012-2016 the original author or authors.
|
||||
* Copyright 2012-2018 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@ -39,7 +39,7 @@ import static org.assertj.core.api.Assertions.assertThat;
|
||||
@OverrideAutoConfiguration(enabled = true)
|
||||
@BootstrapWith(SpringBootTestContextBootstrapper.class)
|
||||
@ImportAutoConfiguration(ExampleTestConfig.class)
|
||||
public class OverrideAutoConfigurationEnabledTrueIntegrationTest {
|
||||
public class OverrideAutoConfigurationEnabledTrueIntegrationTests {
|
||||
|
||||
@Autowired
|
||||
private ApplicationContext context;
|
Loading…
Reference in New Issue
Block a user