Skip to content

Commit 576aa2b

Browse files
authored
Move Typesense assertions to assertj (#10767)
1 parent 7f5ee2e commit 576aa2b

File tree

2 files changed

+11
-4
lines changed

2 files changed

+11
-4
lines changed

modules/typesense/build.gradle

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

6+
testRuntimeOnly 'org.junit.platform:junit-platform-launcher:1.11.0'
7+
8+
testImplementation 'org.junit.jupiter:junit-jupiter:5.13.4'
69
testImplementation 'org.assertj:assertj-core:3.27.4'
710
testImplementation 'org.typesense:typesense-java:1.3.0'
811
}
12+
13+
test {
14+
useJUnitPlatform()
15+
}

modules/typesense/src/test/java/org/testcontainers/typesense/TypesenseContainerTest.java

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

3-
import org.junit.Test;
3+
import org.junit.jupiter.api.Test;
44
import org.typesense.api.Client;
55
import org.typesense.api.Configuration;
66
import org.typesense.resources.Node;
@@ -11,10 +11,10 @@
1111

1212
import static org.assertj.core.api.Assertions.assertThat;
1313

14-
public class TypesenseContainerTest {
14+
class TypesenseContainerTest {
1515

1616
@Test
17-
public void query() throws Exception {
17+
void query() throws Exception {
1818
try ( // container {
1919
TypesenseContainer typesense = new TypesenseContainer("typesense/typesense:27.1")
2020
// }
@@ -33,7 +33,7 @@ public void query() throws Exception {
3333
}
3434

3535
@Test
36-
public void withCustomApiKey() throws Exception {
36+
void withCustomApiKey() throws Exception {
3737
try (TypesenseContainer typesense = new TypesenseContainer("typesense/typesense:27.1").withApiKey("s3cr3t")) {
3838
typesense.start();
3939
List<Node> nodes = Collections.singletonList(

0 commit comments

Comments
 (0)