mirror of
https://github.com/spring-projects/spring-boot.git
synced 2024-08-29 03:06:45 +08:00
Polish away public modifier on tests
This commit is contained in:
parent
1754018a7b
commit
08659baeba
@ -44,7 +44,7 @@ import static org.assertj.core.api.Assertions.assertThat;
|
|||||||
*/
|
*/
|
||||||
@SpringBootTest
|
@SpringBootTest
|
||||||
@Testcontainers(disabledWithoutDocker = true)
|
@Testcontainers(disabledWithoutDocker = true)
|
||||||
public class Neo4jReactiveHealthIndicatorIntegrationTests {
|
class Neo4jReactiveHealthIndicatorIntegrationTests {
|
||||||
|
|
||||||
// gh-33428
|
// gh-33428
|
||||||
|
|
||||||
|
@ -41,7 +41,7 @@ import static org.mockito.Mockito.mock;
|
|||||||
*
|
*
|
||||||
* @author Andy Wilkinson
|
* @author Andy Wilkinson
|
||||||
*/
|
*/
|
||||||
public class ElasticsearchClientAutoConfigurationTests {
|
class ElasticsearchClientAutoConfigurationTests {
|
||||||
|
|
||||||
private final ApplicationContextRunner contextRunner = new ApplicationContextRunner()
|
private final ApplicationContextRunner contextRunner = new ApplicationContextRunner()
|
||||||
.withConfiguration(AutoConfigurations.of(ElasticsearchClientAutoConfiguration.class));
|
.withConfiguration(AutoConfigurations.of(ElasticsearchClientAutoConfiguration.class));
|
||||||
|
@ -27,7 +27,7 @@ import org.springframework.graphql.test.tester.GraphQlTester;
|
|||||||
* @author Brian Clozel
|
* @author Brian Clozel
|
||||||
*/
|
*/
|
||||||
@GraphQlTest(BookController.class)
|
@GraphQlTest(BookController.class)
|
||||||
public class GraphQlTestIntegrationTest {
|
class GraphQlTestIntegrationTest {
|
||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
private GraphQlTester graphQlTester;
|
private GraphQlTester graphQlTester;
|
||||||
|
@ -25,7 +25,7 @@ import static org.assertj.core.api.Assertions.assertThat;
|
|||||||
*
|
*
|
||||||
* @author Jonatan Ivanov
|
* @author Jonatan Ivanov
|
||||||
*/
|
*/
|
||||||
public class OsInfoTests {
|
class OsInfoTests {
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
void osInfoIsAvailable() {
|
void osInfoIsAvailable() {
|
||||||
|
@ -32,7 +32,7 @@ import static org.assertj.core.api.Assertions.assertThat;
|
|||||||
*
|
*
|
||||||
* @author Andy Wilkinson
|
* @author Andy Wilkinson
|
||||||
*/
|
*/
|
||||||
public class UndertowWebServerRuntimeHintsTests {
|
class UndertowWebServerRuntimeHintsTests {
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
void registersHints() throws ClassNotFoundException {
|
void registersHints() throws ClassNotFoundException {
|
||||||
|
@ -39,7 +39,7 @@ import static org.assertj.core.api.Assertions.assertThat;
|
|||||||
@SpringBootTest(webEnvironment = WebEnvironment.RANDOM_PORT,
|
@SpringBootTest(webEnvironment = WebEnvironment.RANDOM_PORT,
|
||||||
properties = "management.endpoints.jackson.isolated-object-mapper=false")
|
properties = "management.endpoints.jackson.isolated-object-mapper=false")
|
||||||
@ContextConfiguration(loader = ApplicationStartupSpringBootContextLoader.class)
|
@ContextConfiguration(loader = ApplicationStartupSpringBootContextLoader.class)
|
||||||
public class JerseyActuatorIsolatedObjectMapperFalseTests {
|
class JerseyActuatorIsolatedObjectMapperFalseTests {
|
||||||
|
|
||||||
@LocalServerPort
|
@LocalServerPort
|
||||||
private int port;
|
private int port;
|
||||||
|
@ -39,7 +39,7 @@ import static org.assertj.core.api.Assertions.assertThat;
|
|||||||
@SpringBootTest(webEnvironment = WebEnvironment.RANDOM_PORT,
|
@SpringBootTest(webEnvironment = WebEnvironment.RANDOM_PORT,
|
||||||
properties = "management.endpoints.jackson.isolated-object-mapper=true")
|
properties = "management.endpoints.jackson.isolated-object-mapper=true")
|
||||||
@ContextConfiguration(loader = ApplicationStartupSpringBootContextLoader.class)
|
@ContextConfiguration(loader = ApplicationStartupSpringBootContextLoader.class)
|
||||||
public class JerseyActuatorIsolatedObjectMapperTrueTests {
|
class JerseyActuatorIsolatedObjectMapperTrueTests {
|
||||||
|
|
||||||
@LocalServerPort
|
@LocalServerPort
|
||||||
private int port;
|
private int port;
|
||||||
|
@ -54,7 +54,7 @@ import static org.assertj.core.api.Assertions.assertThat;
|
|||||||
*/
|
*/
|
||||||
@SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT)
|
@SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT)
|
||||||
@Testcontainers(disabledWithoutDocker = true)
|
@Testcontainers(disabledWithoutDocker = true)
|
||||||
public class SampleSessionMongoApplicationTests {
|
class SampleSessionMongoApplicationTests {
|
||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
private TestRestTemplate restTemplate;
|
private TestRestTemplate restTemplate;
|
||||||
|
@ -51,7 +51,7 @@ import static org.assertj.core.api.Assertions.assertThat;
|
|||||||
*/
|
*/
|
||||||
@SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT)
|
@SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT)
|
||||||
@Testcontainers(disabledWithoutDocker = true)
|
@Testcontainers(disabledWithoutDocker = true)
|
||||||
public class SampleSessionRedisApplicationTests {
|
class SampleSessionRedisApplicationTests {
|
||||||
|
|
||||||
@Container
|
@Container
|
||||||
static RedisContainer redis = new RedisContainer();
|
static RedisContainer redis = new RedisContainer();
|
||||||
|
Loading…
Reference in New Issue
Block a user