quarkus: Multiple QuarkusTestResource annotations in Test are ignored

Describe the bug Multiple @QuarkusTestResource annotations in Test are completely ignored e.g. @QuarkusTest @QuarkusTestResource(ActiveMQServerTestResource.class) @QuarkusTestResource(ActiveMQClientTestResource.class)

Expected behavior Given that QuarkusTestResource annotation is Repeatable both test resources should be processed.

Actual behavior Both QuarkusTestResource are ignored

To Reproduce Steps to reproduce the behavior:

  1. Create a test with two simple “QuarkusTestResource” test resources
  2. Run test
  3. See that both QuarkusTestResource are ignored. If you comment one of them just 1 is picked and processed correctly.

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Comments: 15 (15 by maintainers)

Most upvoted comments

the name is io.quarkus.test.common.QuarkusTestResource$List and no io.quarkus.test.common.QuarkusTestResource…

@lkrzyzanek Yes, that’s expected - for repeatable annotations you get the “container” annotation.

@gastaldi Thanks for the reproducer!