I am trying to use the new ArtemisContainer with some customizations:
static final ArtemisContainer container = TestImage.container(ArtemisContainer.class)
.withEnv("EXTRA_ARGS", "--queues %s:anycast".formatted(QUEUE_NAME));
That doesn't work because org.springframework.boot.testsupport.container.ArtemisContainer extends org.testcontainers.activemq.ArtemisContainer but none of the builder-style method do return the sub-class.
This works:
@Container
@ServiceConnection
static final org.testcontainers.activemq.ArtemisContainer container = TestImage.container(ArtemisContainer.class)
.withEnv("EXTRA_ARGS", "--queues %s:anycast".formatted(QUEUE_NAME));
I am trying to use the new
ArtemisContainerwith some customizations:That doesn't work because
org.springframework.boot.testsupport.container.ArtemisContainerextendsorg.testcontainers.activemq.ArtemisContainerbut none of the builder-style method do return the sub-class.This works: