Skip to content

Provide a custom @SpringBootTest to avoid ClassNotFoundException and reduce dependency footprint#17

Merged
aureamunoz merged 2 commits intoquarkusio:mainfrom
aureamunoz:sb-test
Apr 7, 2026
Merged

Provide a custom @SpringBootTest to avoid ClassNotFoundException and reduce dependency footprint#17
aureamunoz merged 2 commits intoquarkusio:mainfrom
aureamunoz:sb-test

Conversation

@aureamunoz
Copy link
Copy Markdown
Member

@aureamunoz aureamunoz commented Mar 3, 2026

Added a customized @SpringBootTest for Quarkus avoiding classes needed at runtime.
Once merged, we need to release this artifact and update the corresponding Quarkus PR: quarkusio/quarkus#51056

cc @cescoffier

@aureamunoz aureamunoz requested review from edeandrea and geoand March 3, 2026 10:51
@edeandrea
Copy link
Copy Markdown
Collaborator

See my comment here: quarkusio/quarkus#51056 (comment)

TL;DR; - if we have to invent a custom annotation masking the Spring one, then I'm not sure what this really buys us nor if we should even do it.

Copy link
Copy Markdown
Member

@cescoffier cescoffier left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

let's wait until we decide if we want to reuse the existing annotation or create a new one.

@aureamunoz
Copy link
Copy Markdown
Member Author

We were discussing about this in Zulip and we are finally tuning @SpringBootTest for avoiding runtime exceptions and allow users to use it as in Spring, without changing the package. Look the Quarkus PR

Comment thread pom.xml Outdated
Comment thread quarkus-spring-boot-test-api/pom.xml Outdated
Comment thread pom.xml Outdated
Copy link
Copy Markdown
Collaborator

@edeandrea edeandrea left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a comment about the Quarkus version being referenced and the use of quarkus-junit5 instead of quarkus-junit?

@aureamunoz aureamunoz changed the title Clean up uneeded classes Provide a custom @SpringBootTest to avoid ClassNotFoundException and reduce dependency footprint Mar 18, 2026
@aureamunoz aureamunoz requested a review from edeandrea March 25, 2026 12:30
@aureamunoz
Copy link
Copy Markdown
Member Author

Hi @edeandrea, I’d like to move forward on this – could you have a look at it when you have a moment? I’m available to discuss the solution, but we can’t expect miracles. We can’t have it all; running the original code on Quarkus isn’t possible

@edeandrea
Copy link
Copy Markdown
Collaborator

LGTM!

@aureamunoz aureamunoz merged commit 7a5790e into quarkusio:main Apr 7, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants