File tree Expand file tree Collapse file tree 2 files changed +11
-4
lines changed
src/test/java/org/testcontainers/ollama 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 :: Ollama"
33dependencies {
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 ' io.rest-assured:rest-assured:5.5.6'
811}
12+
13+ test {
14+ useJUnitPlatform()
15+ }
Original file line number Diff line number Diff line change 11package org .testcontainers .ollama ;
22
3- import org .junit .Test ;
3+ import org .junit .jupiter . api . Test ;
44import org .testcontainers .utility .Base58 ;
55import org .testcontainers .utility .DockerImageName ;
66
99import static io .restassured .RestAssured .given ;
1010import static org .assertj .core .api .Assertions .assertThat ;
1111
12- public class OllamaContainerTest {
12+ class OllamaContainerTest {
1313
1414 @ Test
15- public void withDefaultConfig () {
15+ void withDefaultConfig () {
1616 try ( // container {
1717 OllamaContainer ollama = new OllamaContainer ("ollama/ollama:0.1.26" )
1818 // }
@@ -25,7 +25,7 @@ public void withDefaultConfig() {
2525 }
2626
2727 @ Test
28- public void downloadModelAndCommitToImage () throws IOException , InterruptedException {
28+ void downloadModelAndCommitToImage () throws IOException , InterruptedException {
2929 String newImageName = "tc-ollama-allminilm-" + Base58 .randomString (4 ).toLowerCase ();
3030 try (OllamaContainer ollama = new OllamaContainer ("ollama/ollama:0.1.26" )) {
3131 ollama .start ();
You can’t perform that action at this time.
0 commit comments