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

Improved return-response tests #425

Closed
wants to merge 1 commit into from
Closed

Improved return-response tests #425

wants to merge 1 commit into from

Conversation

hbelmiro
Copy link
Contributor

This PR adds more tests to validate if methods return Response instead of void when configured.

This is related to: #424

Signed-off-by: Helber Belmiro <[email protected]>
@Test
void testReturnResponseFalseVoid() throws NoSuchMethodException {
assertThat(ReturnResponseFalseVoidApi.class.getMethod("hello").getReturnType())
.isEqualTo(Void.TYPE);
Copy link
Contributor

@lordvlad lordvlad Jul 29, 2023

Choose a reason for hiding this comment

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

Suggested change
.isEqualTo(Void.TYPE);
.isEqualTo(Response.class);

See comment #424 (comment) in #424

@hbelmiro
Copy link
Contributor Author

Closing this as we're going to change to return Response by default for void methods in #426.

@hbelmiro hbelmiro closed this Jul 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants