Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make the generated main(String[] args) test class public #1217

Closed
joshlong opened this issue Jun 13, 2023 · 1 comment
Closed

Make the generated main(String[] args) test class public #1217

joshlong opened this issue Jun 13, 2023 · 1 comment
Assignees

Comments

@joshlong
Copy link

joshlong commented Jun 13, 2023

I've noticed an issue when using Devtools, ./gradlew bootTestRun, and Testcontainers (and I'm using Postgres, though I don't know if that matters) where the app either refuses to start (such as in IntelliJ) or refuses to reload new types. the issue seems to go away when I put public on the generated test class with a main(String [] args) method. Ideally, Devtools wouldn't care about a non-public class for the main method, and I've asked about that here

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Jun 13, 2023
@snicoll snicoll changed the title please make the generated main(String[] args) test class public Make the generated main(String[] args) test class public Jun 14, 2023
@snicoll snicoll added type: bug and removed status: waiting-for-triage An issue we've not yet triaged labels Jun 14, 2023
@snicoll snicoll self-assigned this Jun 14, 2023
@snicoll
Copy link
Contributor

snicoll commented Jun 14, 2023

Thanks for reporting this Josh. This was also a discrepancy with the reference documentation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants