public class HiveMQTestResourceProvider extends AbstractTestContainersProvider<org.testcontainers.hivemq.HiveMQContainer>
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
DEFAULT_IMAGE |
static java.lang.String |
MQTT_CLIENT_SERVER_URI |
TEST_RESOURCES_PROPERTY| Constructor and Description |
|---|
HiveMQTestResourceProvider() |
| Modifier and Type | Method and Description |
|---|---|
protected org.testcontainers.hivemq.HiveMQContainer |
createContainer(org.testcontainers.utility.DockerImageName imageName,
java.util.Map<java.lang.String,java.lang.Object> requestedProperties,
java.util.Map<java.lang.String,java.lang.Object> testResourcesConfiguration)
Creates the test container.
|
protected java.lang.String |
getDefaultImageName()
Returns the default image name.
|
java.util.List<java.lang.String> |
getResolvableProperties(java.util.Map<java.lang.String,java.util.Collection<java.lang.String>> propertyEntries,
java.util.Map<java.lang.String,java.lang.Object> testResourcesConfig)
Returns the list of properties that this resolver
is able to support.
|
protected java.lang.String |
getSimpleName()
Returns the name of the resource resolver, for example "kafka" or "mysql".
|
protected java.util.Optional<java.lang.String> |
resolveProperty(java.lang.String propertyName,
org.testcontainers.hivemq.HiveMQContainer container) |
protected boolean |
shouldAnswer(java.lang.String propertyName,
java.util.Map<java.lang.String,java.lang.Object> requestedProperties,
java.util.Map<java.lang.String,java.lang.Object> testResourcesConfiguration)
Determines if this resolver can resolve the requested property.
|
configureContainer, getOrder, resolve, resolveWithoutContainer, stringOrNullclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetRequiredProperties, getRequiredPropertyEntriespublic static final java.lang.String MQTT_CLIENT_SERVER_URI
public static final java.lang.String DEFAULT_IMAGE
public java.util.List<java.lang.String> getResolvableProperties(java.util.Map<java.lang.String,java.util.Collection<java.lang.String>> propertyEntries,
java.util.Map<java.lang.String,java.lang.Object> testResourcesConfig)
TestResourcesResolverTestResourcesResolver.getRequiredPropertyEntries() and
values are those property entries resolved.propertyEntries - the property entriestestResourcesConfig - the test resources configurationprotected java.lang.String getSimpleName()
AbstractTestContainersProvidergetSimpleName in class AbstractTestContainersProvider<org.testcontainers.hivemq.HiveMQContainer>protected java.lang.String getDefaultImageName()
AbstractTestContainersProvidergetDefaultImageName in class AbstractTestContainersProvider<org.testcontainers.hivemq.HiveMQContainer>protected org.testcontainers.hivemq.HiveMQContainer createContainer(org.testcontainers.utility.DockerImageName imageName,
java.util.Map<java.lang.String,java.lang.Object> requestedProperties,
java.util.Map<java.lang.String,java.lang.Object> testResourcesConfiguration)
AbstractTestContainersProvidercreateContainer in class AbstractTestContainersProvider<org.testcontainers.hivemq.HiveMQContainer>imageName - the docker image namerequestedProperties - the resolved propertiestestResourcesConfiguration - the test resources configurationprotected java.util.Optional<java.lang.String> resolveProperty(java.lang.String propertyName,
org.testcontainers.hivemq.HiveMQContainer container)
resolveProperty in class AbstractTestContainersProvider<org.testcontainers.hivemq.HiveMQContainer>protected boolean shouldAnswer(java.lang.String propertyName,
java.util.Map<java.lang.String,java.lang.Object> requestedProperties,
java.util.Map<java.lang.String,java.lang.Object> testResourcesConfiguration)
AbstractTestContainersProvidershouldAnswer in class AbstractTestContainersProvider<org.testcontainers.hivemq.HiveMQContainer>propertyName - the property to resolverequestedProperties - the resolved propertiestestResourcesConfiguration - the test resources configuration