# Testing Dependencies ## Maven Configuration ```xml dev.langchain4j langchain4j dev.langchain4j langchain4j-test test org.testcontainers testcontainers-bom ${testcontainers.version} pom import org.testcontainers junit-jupiter test dev.langchain4j langchain4j-ollama ${langchain4j.version} test org.testcontainers ollama test org.junit.jupiter junit-jupiter 5.9.3 test org.mockito mockito-core 5.3.1 test org.assertj assertj-core 3.24.1 test ``` ## Gradle Configuration ```gradle dependencies { // Core LangChain4J implementation "dev.langchain4j:langchain4j:${langchain4jVersion}" // Testing utilities testImplementation "dev.langchain4j:langchain4j-test" // Testcontainers testImplementation "org.testcontainers:junit-jupiter" testImplementation "org.testcontainers:ollama" // Ollama for local testing testImplementation "dev.langchain4j:langchain4j-ollama:${langchain4jVersion}" // Additional test dependencies testImplementation "org.junit.jupiter:junit-jupiter:5.9.3" testImplementation "org.mockito:mockito-core:5.3.1" testImplementation "org.assertj:assertj-core:3.24.1" } ``` ## Test Configuration Properties ```properties # application-test.properties spring.profiles.active=test langchain4j.ollama.base-url=http://localhost:11434 langchain4j.openai.api-key=test-key langchain4j.openai.model-name=gpt-4.1 ```