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

Add Kotlin example showing integration with WebTestClient #9998

Closed
eleftherias opened this issue Jun 24, 2021 · 0 comments · Fixed by #11610
Closed

Add Kotlin example showing integration with WebTestClient #9998

eleftherias opened this issue Jun 24, 2021 · 0 comments · Fixed by #11610
Assignees
Labels
in: docs An issue in Documentation or samples status: backported An issue that has been backported to maintenance branches status: ideal-for-contribution An issue that we actively are looking for someone to help us with type: enhancement A general enhancement
Milestone

Comments

@eleftherias
Copy link
Contributor

In Java code a WebTestClient can be configured as follows

WebTestClient
    .bindToApplicationContext(this.context)
    // add Spring Security test Support
    .apply(springSecurity())
    .configureClient()
    .filter(basicAuthentication())
    .build();

In Kotlin, it is not currently possible to use the apply method.
See spring-projects/spring-framework#20606 for more details and a workaround.

Once this issue is fixed, we should update the reference documentation to show the equivalent example in Kotlin.

@eleftherias eleftherias added in: docs An issue in Documentation or samples type: enhancement A general enhancement status: blocked An issue that's blocked on an external project change labels Jun 24, 2021
@eleftherias eleftherias removed the status: blocked An issue that's blocked on an external project change label Mar 10, 2022
@eleftherias eleftherias added the status: ideal-for-contribution An issue that we actively are looking for someone to help us with label Mar 22, 2022
@marcusdacoregio marcusdacoregio self-assigned this Jul 22, 2022
@github-actions github-actions bot added the status: backported An issue that has been backported to maintenance branches label Jul 22, 2022
@marcusdacoregio marcusdacoregio added this to the 5.7.3 milestone Jul 22, 2022
@spring-projects spring-projects deleted a comment from github-actions bot Jul 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: docs An issue in Documentation or samples status: backported An issue that has been backported to maintenance branches status: ideal-for-contribution An issue that we actively are looking for someone to help us with type: enhancement A general enhancement
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants