build: remove unused testcontainers dependency
This commit is contained in:
@@ -255,6 +255,21 @@ class MavenModuleProfileTest {
|
||||
.isFalse();
|
||||
}
|
||||
|
||||
@Test
|
||||
void buildSurfaceDoesNotManageTestcontainersWhenKafkaTestsUseInMemoryFakes() throws Exception {
|
||||
Document pom = rootPom();
|
||||
Document kafkaSinkPom = modulePom("modules/sinks/sink-kafka/pom.xml");
|
||||
|
||||
assertThat(hasProjectProperty(pom, "testcontainers.version"))
|
||||
.isFalse();
|
||||
assertThat(hasDependency(pom, "org.testcontainers", "testcontainers-bom"))
|
||||
.isFalse();
|
||||
assertThat(hasDependency(kafkaSinkPom, "org.testcontainers", "kafka"))
|
||||
.isFalse();
|
||||
assertThat(javaSourcesContain("import org." + "testcontainers"))
|
||||
.isFalse();
|
||||
}
|
||||
|
||||
@Test
|
||||
void productionDocsDoNotAdvertiseMemorySessionStore() throws Exception {
|
||||
String runbook = Files.readString(repositoryRoot()
|
||||
|
||||
@@ -49,11 +49,6 @@
|
||||
<groupId>io.github.resilience4j</groupId>
|
||||
<artifactId>resilience4j-circuitbreaker</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.testcontainers</groupId>
|
||||
<artifactId>kafka</artifactId>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-starter-test</artifactId>
|
||||
|
||||
8
pom.xml
8
pom.xml
@@ -152,7 +152,6 @@
|
||||
<junit.version>5.11.3</junit.version>
|
||||
<assertj.version>3.26.3</assertj.version>
|
||||
<mockito.version>5.14.2</mockito.version>
|
||||
<testcontainers.version>1.20.3</testcontainers.version>
|
||||
</properties>
|
||||
|
||||
<!--
|
||||
@@ -206,13 +205,6 @@
|
||||
<type>pom</type>
|
||||
<scope>import</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.testcontainers</groupId>
|
||||
<artifactId>testcontainers-bom</artifactId>
|
||||
<version>${testcontainers.version}</version>
|
||||
<type>pom</type>
|
||||
<scope>import</scope>
|
||||
</dependency>
|
||||
|
||||
<!-- 内部模块 -->
|
||||
<dependency>
|
||||
|
||||
Reference in New Issue
Block a user