-
Notifications
You must be signed in to change notification settings - Fork 3k
Closed
Labels
Milestone
Description
Describe the bug
Given
Quarkus version: 3.17.8
Extensions: quarkus-junit5-component
When
Having a any CDI bean (dummy MyService used in this case) and test class like
@QuarkusComponentTest
class NestedComponentTest {
@Inject
private MyService testUnit;
@Test
void topLevel() {
}
@Nested
class NonStaticInnerClass {
@Test
void nested() {
}
}
}
Then
java.lang.IllegalStateException: No component classes to test
Expected behavior
The extension should handle nested test classes, as these are often used to structure more complex test scenarios, for which especially @QuarkusComponentTest is a good candidate to reduce mocking efforts.
Actual behavior
No response
How to Reproduce?
No response
Output of uname -a or ver
No response
Output of java -version
No response
Quarkus version or git rev
No response
Build tool (ie. output of mvnw --version or gradlew --version)
No response
Additional information
No response