File tree Expand file tree Collapse file tree 2 files changed +11
-4
lines changed
src/test/java/org/testcontainers/typesense Expand file tree Collapse file tree 2 files changed +11
-4
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,13 @@ description = "Testcontainers :: Typesense"
3
3
dependencies {
4
4
api project(' :testcontainers' )
5
5
6
+ testRuntimeOnly ' org.junit.platform:junit-platform-launcher:1.11.0'
7
+
8
+ testImplementation ' org.junit.jupiter:junit-jupiter:5.13.4'
6
9
testImplementation ' org.assertj:assertj-core:3.27.4'
7
10
testImplementation ' org.typesense:typesense-java:1.3.0'
8
11
}
12
+
13
+ test {
14
+ useJUnitPlatform()
15
+ }
Original file line number Diff line number Diff line change 1
1
package org .testcontainers .typesense ;
2
2
3
- import org .junit .Test ;
3
+ import org .junit .jupiter . api . Test ;
4
4
import org .typesense .api .Client ;
5
5
import org .typesense .api .Configuration ;
6
6
import org .typesense .resources .Node ;
11
11
12
12
import static org .assertj .core .api .Assertions .assertThat ;
13
13
14
- public class TypesenseContainerTest {
14
+ class TypesenseContainerTest {
15
15
16
16
@ Test
17
- public void query () throws Exception {
17
+ void query () throws Exception {
18
18
try ( // container {
19
19
TypesenseContainer typesense = new TypesenseContainer ("typesense/typesense:27.1" )
20
20
// }
@@ -33,7 +33,7 @@ public void query() throws Exception {
33
33
}
34
34
35
35
@ Test
36
- public void withCustomApiKey () throws Exception {
36
+ void withCustomApiKey () throws Exception {
37
37
try (TypesenseContainer typesense = new TypesenseContainer ("typesense/typesense:27.1" ).withApiKey ("s3cr3t" )) {
38
38
typesense .start ();
39
39
List <Node > nodes = Collections .singletonList (
You can’t perform that action at this time.
0 commit comments