Move @Testcontainers before @SpringBootTest in documentation
Closes gh-35572
This commit is contained in:
@@ -25,8 +25,8 @@ import org.springframework.boot.test.context.SpringBootTest;
|
||||
import org.springframework.test.context.DynamicPropertyRegistry;
|
||||
import org.springframework.test.context.DynamicPropertySource;
|
||||
|
||||
@SpringBootTest
|
||||
@Testcontainers
|
||||
@SpringBootTest
|
||||
class MyIntegrationTests {
|
||||
|
||||
@Container
|
||||
|
||||
@@ -24,8 +24,8 @@ import org.testcontainers.junit.jupiter.Testcontainers;
|
||||
import org.springframework.boot.test.context.SpringBootTest;
|
||||
import org.springframework.boot.testcontainers.service.connection.ServiceConnection;
|
||||
|
||||
@SpringBootTest
|
||||
@Testcontainers
|
||||
@SpringBootTest
|
||||
class MyIntegrationTests {
|
||||
|
||||
@Container
|
||||
|
||||
@@ -23,8 +23,8 @@ import org.testcontainers.junit.jupiter.Testcontainers;
|
||||
|
||||
import org.springframework.boot.test.context.SpringBootTest;
|
||||
|
||||
@SpringBootTest
|
||||
@Testcontainers
|
||||
@SpringBootTest
|
||||
class MyIntegrationTests {
|
||||
|
||||
@Container
|
||||
|
||||
@@ -24,8 +24,8 @@ import org.testcontainers.containers.Neo4jContainer
|
||||
import org.testcontainers.junit.jupiter.Container
|
||||
import org.testcontainers.junit.jupiter.Testcontainers
|
||||
|
||||
@SpringBootTest
|
||||
@Testcontainers
|
||||
@SpringBootTest
|
||||
class MyIntegrationTests {
|
||||
|
||||
@Test
|
||||
@@ -45,4 +45,4 @@ class MyIntegrationTests {
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -17,15 +17,14 @@
|
||||
package org.springframework.boot.docs.features.testing.testcontainers.serviceconnections
|
||||
|
||||
import org.junit.jupiter.api.Test
|
||||
import org.springframework.boot.test.context.SpringBootTest
|
||||
import org.springframework.boot.testcontainers.service.connection.ServiceConnection
|
||||
import org.testcontainers.containers.Neo4jContainer
|
||||
import org.testcontainers.junit.jupiter.Container
|
||||
import org.testcontainers.junit.jupiter.Testcontainers
|
||||
|
||||
import org.springframework.boot.test.context.SpringBootTest
|
||||
import org.springframework.boot.testcontainers.service.connection.ServiceConnection;
|
||||
|
||||
@SpringBootTest
|
||||
@Testcontainers
|
||||
@SpringBootTest
|
||||
class MyIntegrationTests {
|
||||
|
||||
@Test
|
||||
@@ -41,4 +40,4 @@ class MyIntegrationTests {
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -22,8 +22,8 @@ import org.testcontainers.containers.Neo4jContainer
|
||||
import org.testcontainers.junit.jupiter.Container
|
||||
import org.testcontainers.junit.jupiter.Testcontainers
|
||||
|
||||
@SpringBootTest
|
||||
@Testcontainers
|
||||
@SpringBootTest
|
||||
class MyIntegrationTests {
|
||||
|
||||
@Test
|
||||
|
||||
Reference in New Issue
Block a user