Class OllamaTestContainerProvider
java.lang.Object
io.micronaut.testresources.testcontainers.AbstractTestContainersProvider<org.testcontainers.ollama.OllamaContainer>
io.micronaut.langchain4j.testresources.ollama.OllamaTestContainerProvider
- All Implemented Interfaces:
io.micronaut.core.order.Ordered
,io.micronaut.testresources.core.TestResourcesResolver
,io.micronaut.testresources.core.ToggableTestResourcesResolver
public class OllamaTestContainerProvider
extends io.micronaut.testresources.testcontainers.AbstractTestContainersProvider<org.testcontainers.ollama.OllamaContainer>
-
Field Summary
Fields inherited from interface io.micronaut.core.order.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
Fields inherited from interface io.micronaut.testresources.core.TestResourcesResolver
TEST_RESOURCES_PROPERTY
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected org.testcontainers.ollama.OllamaContainer
createContainer
(org.testcontainers.utility.DockerImageName imageName, Map<String, Object> requestedProperties, Map<String, Object> testResourcesConfig) protected String
getRequiredProperties
(String expression) getResolvableProperties
(Map<String, Collection<String>> propertyEntries, Map<String, Object> testResourcesConfig) protected String
resolveProperty
(String propertyName, org.testcontainers.ollama.OllamaContainer container) protected boolean
shouldAnswer
(String propertyName, Map<String, Object> requestedProperties, Map<String, Object> testResourcesConfig) Methods inherited from class io.micronaut.testresources.testcontainers.AbstractTestContainersProvider
configureContainer, getName, getOrder, resolve, resolveWithoutContainer, stringOrNull
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.micronaut.testresources.core.TestResourcesResolver
getId
Methods inherited from interface io.micronaut.testresources.core.ToggableTestResourcesResolver
getDisplayName, isEnabled
-
Field Details
-
MODEL_NAME
- See Also:
-
BASE_URL
- See Also:
-
-
Constructor Details
-
OllamaTestContainerProvider
public OllamaTestContainerProvider()
-
-
Method Details
-
getSimpleName
- Specified by:
getSimpleName
in classio.micronaut.testresources.testcontainers.AbstractTestContainersProvider<org.testcontainers.ollama.OllamaContainer>
-
getDefaultImageName
- Specified by:
getDefaultImageName
in classio.micronaut.testresources.testcontainers.AbstractTestContainersProvider<org.testcontainers.ollama.OllamaContainer>
-
createContainer
protected org.testcontainers.ollama.OllamaContainer createContainer(org.testcontainers.utility.DockerImageName imageName, Map<String, Object> requestedProperties, Map<String, Object> testResourcesConfig) - Specified by:
createContainer
in classio.micronaut.testresources.testcontainers.AbstractTestContainersProvider<org.testcontainers.ollama.OllamaContainer>
-
resolveProperty
protected Optional<String> resolveProperty(String propertyName, org.testcontainers.ollama.OllamaContainer container) - Specified by:
resolveProperty
in classio.micronaut.testresources.testcontainers.AbstractTestContainersProvider<org.testcontainers.ollama.OllamaContainer>
-
getResolvableProperties
-
getRequiredPropertyEntries
-
shouldAnswer
protected boolean shouldAnswer(String propertyName, Map<String, Object> requestedProperties, Map<String, Object> testResourcesConfig) - Overrides:
shouldAnswer
in classio.micronaut.testresources.testcontainers.AbstractTestContainersProvider<org.testcontainers.ollama.OllamaContainer>
-
getRequiredProperties
-