question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Multiple QuarkusTestResource annotations in Test are ignored

See original GitHub issue

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.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:15 (11 by maintainers)

github_iconTop GitHub Comments

1reaction
mkoubacommented, Nov 6, 2019

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!

0reactions
lkrzyzanekcommented, Nov 20, 2019

Nicely works in 1.0.0.CR2. Thanks guys!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Testing Your Application - Quarkus
QuarkusTestResource } class * annotation will be used for the tests using this ... will be started, * global annotated test resources will...
Read more >
java - Different @QuarkusTestResource per Quarkus profile
I have just set up my project to use H2DatabaseTestResource in the tests. I also have created a custom ...
Read more >
Testing Quarkus Applications | Baeldung
This test, annotated with @QuarkusTest, first starts the Quarkus application and then performs a series of HTTP requests against our ...
Read more >
Testing Quarkus Web Applications: Writing Clean Component ...
TestSecurity annotation to control the security context the test is run with. ... If multiple Quarkus Test Resources are defined, @QuarkusTestResource has ...
Read more >
How to Test Quarkus applications - Mastertheboss
The most important part of the Quarkus testing framework is the annotation io.quarkus.test.junit.QuarkusTest. When you annotate a test class ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found