Skip to content

Commit a935882

Browse files
committed
test: upgrade testcontainers version and refactor some tests
1 parent 689d1a8 commit a935882

File tree

31 files changed

+181
-131
lines changed

31 files changed

+181
-131
lines changed

content-retrievers/langchain4j-community-neo4j-retriever/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,13 +62,13 @@
6262
<!-- test dependencies -->
6363
<dependency>
6464
<groupId>org.testcontainers</groupId>
65-
<artifactId>junit-jupiter</artifactId>
65+
<artifactId>testcontainers-junit-jupiter</artifactId>
6666
<scope>test</scope>
6767
</dependency>
6868

6969
<dependency>
7070
<groupId>org.testcontainers</groupId>
71-
<artifactId>neo4j</artifactId>
71+
<artifactId>testcontainers-neo4j</artifactId>
7272
<scope>test</scope>
7373
</dependency>
7474

document-transformers/langchain4j-community-llm-graph-transformer/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
<!-- test dependencies -->
2929
<dependency>
3030
<groupId>org.testcontainers</groupId>
31-
<artifactId>junit-jupiter</artifactId>
31+
<artifactId>testcontainers-junit-jupiter</artifactId>
3232
<scope>test</scope>
3333
</dependency>
3434

embedding-stores/langchain4j-community-alloydb-pg/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,13 +112,13 @@
112112

113113
<dependency>
114114
<groupId>org.testcontainers</groupId>
115-
<artifactId>junit-jupiter</artifactId>
115+
<artifactId>testcontainers-junit-jupiter</artifactId>
116116
<scope>test</scope>
117117
</dependency>
118118

119119
<dependency>
120120
<groupId>org.testcontainers</groupId>
121-
<artifactId>postgresql</artifactId>
121+
<artifactId>testcontainers-postgresql</artifactId>
122122
<scope>test</scope>
123123
</dependency>
124124

embedding-stores/langchain4j-community-alloydb-pg/src/test/java/dev/langchain4j/community/store/embedding/alloydb/AlloyDBEmbeddingStoreIT.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
package dev.langchain4j.community.store.embedding.alloydb;
22

3-
import static org.testcontainers.shaded.org.apache.commons.lang3.RandomUtils.nextInt;
3+
import static org.apache.commons.lang3.RandomUtils.nextInt;
44

55
import dev.langchain4j.community.store.embedding.alloydb.index.DistanceStrategy;
66
import dev.langchain4j.data.segment.TextSegment;

embedding-stores/langchain4j-community-alloydb-pg/src/test/java/dev/langchain4j/community/store/embedding/alloydb/AlloyDBEmbeddingStoreRemovalIT.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
package dev.langchain4j.community.store.embedding.alloydb;
22

3-
import static org.testcontainers.shaded.org.apache.commons.lang3.RandomUtils.nextInt;
3+
import static org.apache.commons.lang3.RandomUtils.nextInt;
44

55
import dev.langchain4j.community.store.embedding.alloydb.index.DistanceStrategy;
66
import dev.langchain4j.data.segment.TextSegment;

embedding-stores/langchain4j-community-clickhouse/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@
8383

8484
<dependency>
8585
<groupId>org.testcontainers</groupId>
86-
<artifactId>clickhouse</artifactId>
86+
<artifactId>testcontainers-clickhouse</artifactId>
8787
<scope>test</scope>
8888
</dependency>
8989

embedding-stores/langchain4j-community-cloud-sql-pg/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -317,13 +317,13 @@
317317

318318
<dependency>
319319
<groupId>org.testcontainers</groupId>
320-
<artifactId>junit-jupiter</artifactId>
320+
<artifactId>testcontainers-junit-jupiter</artifactId>
321321
<scope>test</scope>
322322
</dependency>
323323

324324
<dependency>
325325
<groupId>org.testcontainers</groupId>
326-
<artifactId>postgresql</artifactId>
326+
<artifactId>testcontainers-postgresql</artifactId>
327327
<scope>test</scope>
328328
</dependency>
329329

embedding-stores/langchain4j-community-cloud-sql-pg/src/test/java/dev/langchain4j/community/store/embedding/cloudsql/PostgresEmbeddingStoreIT.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
package dev.langchain4j.community.store.embedding.cloudsql;
22

3-
import static org.testcontainers.shaded.org.apache.commons.lang3.RandomUtils.nextInt;
3+
import static org.apache.commons.lang3.RandomUtils.nextInt;
44

55
import dev.langchain4j.community.store.embedding.cloudsql.index.DistanceStrategy;
66
import dev.langchain4j.data.segment.TextSegment;

embedding-stores/langchain4j-community-cloud-sql-pg/src/test/java/dev/langchain4j/community/store/embedding/cloudsql/PostgresEmbeddingStoreRemovalIT.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
package dev.langchain4j.community.store.embedding.cloudsql;
22

3-
import static org.testcontainers.shaded.org.apache.commons.lang3.RandomUtils.nextInt;
3+
import static org.apache.commons.lang3.RandomUtils.nextInt;
44

55
import dev.langchain4j.community.store.embedding.cloudsql.index.DistanceStrategy;
66
import dev.langchain4j.data.segment.TextSegment;

embedding-stores/langchain4j-community-neo4j/pom.xml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -58,16 +58,15 @@
5858
</dependency>
5959

6060
<!-- test dependencies -->
61-
6261
<dependency>
6362
<groupId>org.testcontainers</groupId>
64-
<artifactId>junit-jupiter</artifactId>
63+
<artifactId>testcontainers-junit-jupiter</artifactId>
6564
<scope>test</scope>
6665
</dependency>
6766

6867
<dependency>
6968
<groupId>org.testcontainers</groupId>
70-
<artifactId>neo4j</artifactId>
69+
<artifactId>testcontainers-neo4j</artifactId>
7170
<scope>test</scope>
7271
</dependency>
7372

@@ -127,7 +126,7 @@
127126

128127
<dependency>
129128
<groupId>org.testcontainers</groupId>
130-
<artifactId>selenium</artifactId>
129+
<artifactId>testcontainers-selenium</artifactId>
131130
<scope>test</scope>
132131
</dependency>
133132

0 commit comments

Comments
 (0)