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/ollama/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,13 @@ description = "Testcontainers :: Ollama"
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 'io.rest-assured:rest-assured:5.5.6'
}

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

import org.junit.Test;
import org.junit.jupiter.api.Test;
import org.testcontainers.utility.Base58;
import org.testcontainers.utility.DockerImageName;

Expand All @@ -9,10 +9,10 @@
import static io.restassured.RestAssured.given;
import static org.assertj.core.api.Assertions.assertThat;

public class OllamaContainerTest {
class OllamaContainerTest {

@Test
public void withDefaultConfig() {
void withDefaultConfig() {
try ( // container {
OllamaContainer ollama = new OllamaContainer("ollama/ollama:0.1.26")
// }
Expand All @@ -25,7 +25,7 @@ public void withDefaultConfig() {
}

@Test
public void downloadModelAndCommitToImage() throws IOException, InterruptedException {
void downloadModelAndCommitToImage() throws IOException, InterruptedException {
String newImageName = "tc-ollama-allminilm-" + Base58.randomString(4).toLowerCase();
try (OllamaContainer ollama = new OllamaContainer("ollama/ollama:0.1.26")) {
ollama.start();
Expand Down
Loading