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

MockMVC ResultMatchers.status().is(200) - method call needs to be escaped in kotlin [SPR-16429] #20975

Closed
spring-issuemaster opened this issue Jan 29, 2018 · 2 comments

Comments

Projects
None yet
2 participants
@spring-issuemaster
Copy link
Collaborator

commented Jan 29, 2018

Bastian Voigt opened SPR-16429 and commented

Spring Boot Version: 2.0.0.M7 (i.e. Spring Framework 5.0.2.RELEASE)

For better experience for Kotlin users, the MockMVC result matcher status() should not use the kotlin keyword is as a method name, because the method call needs to be escaped in backticks which is not very convenient.


1 votes, 4 watchers

@spring-issuemaster

This comment has been minimized.

Copy link
Collaborator Author

commented Jan 29, 2018

Sébastien Deleuze commented

is is usable in Kotlin but with backticks, but we can probably provide an alias via an extension like we did on Spring Data in order to provide a way to write such code without backticks which is not idiomatic.

@spring-issuemaster

This comment has been minimized.

Copy link
Collaborator Author

commented May 15, 2018

Sébastien Deleuze commented

A StatusResultMatchers.isEqualTo Kotlin extension has been introduced (consistent with what we did for Spring Data).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.