Skip to content

Commit 8c8da7a

Browse files
authored
Move ChromaDB tests to JUnit Jupiter (#10730)
1 parent 1714560 commit 8c8da7a

File tree

2 files changed

+11
-4
lines changed

2 files changed

+11
-4
lines changed

modules/chromadb/build.gradle

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,13 @@ description = "Testcontainers :: ChromaDB"
33
dependencies {
44
api project(':testcontainers')
55

6+
testRuntimeOnly 'org.junit.platform:junit-platform-launcher:1.11.0'
7+
68
testImplementation 'org.assertj:assertj-core:3.27.4'
9+
testImplementation 'org.junit.jupiter:junit-jupiter:5.13.4'
710
testImplementation 'io.rest-assured:rest-assured:5.5.6'
811
}
12+
13+
test {
14+
useJUnitPlatform()
15+
}

modules/chromadb/src/test/java/org/testcontainers/chromadb/ChromaDBContainerTest.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
package org.testcontainers.chromadb;
22

33
import io.restassured.http.ContentType;
4-
import org.junit.Test;
4+
import org.junit.jupiter.api.Test;
55

66
import static io.restassured.RestAssured.given;
77

8-
public class ChromaDBContainerTest {
8+
class ChromaDBContainerTest {
99

1010
@Test
11-
public void test() {
11+
void test() {
1212
try ( // container {
1313
ChromaDBContainer chroma = new ChromaDBContainer("chromadb/chroma:0.4.23")
1414
// }
@@ -29,7 +29,7 @@ public void test() {
2929
}
3030

3131
@Test
32-
public void testVersion2() {
32+
void testVersion2() {
3333
try (ChromaDBContainer chroma = new ChromaDBContainer("chromadb/chroma:1.0.0")) {
3434
chroma.start();
3535

0 commit comments

Comments
 (0)