Skip to content

Kotlin Tests using @AutoConfigureMockMvc don't reuse ApplicationContext between test classes #7210

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

Closed
kpdonn opened this issue Oct 23, 2016 · 1 comment
Labels
status: duplicate A duplicate of another issue

Comments

@kpdonn
Copy link

kpdonn commented Oct 23, 2016

When using Spring Boot 1.4.1 with Kotlin 1.0.4, I'm running into an issue where tests using @AutoConfigureMockMvc result in the application context being recreated between each class instead of being reused as expected.

I'm not sure what the cause is but it appears to be related to Kotlin in some way because I was unable to reproduce the issue using a pure Java project.

I have a minimal project reproducing the issue which I'll add to this issue shortly.

@snicoll
Copy link
Member

snicoll commented Oct 24, 2016

Duplicates #7101

@snicoll snicoll closed this as completed Oct 24, 2016
@snicoll snicoll added status: duplicate A duplicate of another issue and removed status: waiting-for-triage An issue we've not yet triaged labels Oct 24, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: duplicate A duplicate of another issue
Projects
None yet
Development

No branches or pull requests

3 participants