Skip to content

org.springframework.boot.testsupport.container.ArtemisContainer cannot be configured #51082

Description

@snicoll

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));

Metadata

Metadata

Assignees

Labels

for: team-attentionAn issue we'd like other members of the team to reviewtype: taskA general task

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions