Why @QuarkusMainTest #48711
Replies: 2 comments
-
Beta Was this translation helpful? Give feedback.
-
You're right that
|
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
You're right that
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
In the documentation quarkus states you should use @QuarkusMainTest for testing CLI. application I wonder why you would ever use it if you just could use @QuarkusTest. This latter one offers @InjectMocks/@Inject etc. capabilities. And it's easy to implement as well.
Is @QuarkusMainTest necessary to keep? Why not advice @QuarkusTest (for sure if you want to use mocks)?
Beta Was this translation helpful? Give feedback.
All reactions