Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions modules/typesense/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,13 @@ description = "Testcontainers :: Typesense"
dependencies {
api project(':testcontainers')

testRuntimeOnly 'org.junit.platform:junit-platform-launcher:1.11.0'

testImplementation 'org.junit.jupiter:junit-jupiter:5.13.4'
testImplementation 'org.assertj:assertj-core:3.27.4'
testImplementation 'org.typesense:typesense-java:1.3.0'
}

test {
useJUnitPlatform()
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package org.testcontainers.typesense;

import org.junit.Test;
import org.junit.jupiter.api.Test;
import org.typesense.api.Client;
import org.typesense.api.Configuration;
import org.typesense.resources.Node;
Expand All @@ -11,10 +11,10 @@

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

public class TypesenseContainerTest {
class TypesenseContainerTest {

@Test
public void query() throws Exception {
void query() throws Exception {
try ( // container {
TypesenseContainer typesense = new TypesenseContainer("typesense/typesense:27.1")
// }
Expand All @@ -33,7 +33,7 @@ public void query() throws Exception {
}

@Test
public void withCustomApiKey() throws Exception {
void withCustomApiKey() throws Exception {
try (TypesenseContainer typesense = new TypesenseContainer("typesense/typesense:27.1").withApiKey("s3cr3t")) {
typesense.start();
List<Node> nodes = Collections.singletonList(
Expand Down
Loading