Skip to content

Polish argument capturing in two Tomcat tests #12203

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

Conversation

dreis2211
Copy link
Contributor

Hi,

in this PR I initially wanted to replace InvocationOnMock.getArguments()[0] with the cleaner InvocationOnMock.getArgument(0) that could get rid of some casting. While typing I realized that we could clean things further up and use ArgumentCaptor instead of writing an Answer that does an additional assertion, which I find somewhat questionable.

Let me know what you think.

Cheers,
Christoph

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Feb 23, 2018
@philwebb philwebb added type: enhancement A general enhancement priority: normal and removed status: waiting-for-triage An issue we've not yet triaged labels Feb 23, 2018
@philwebb philwebb added this to the 2.0.0 milestone Feb 23, 2018
@snicoll snicoll self-assigned this Feb 24, 2018
@snicoll snicoll closed this in cbabf54 Feb 26, 2018
snicoll added a commit that referenced this pull request Feb 26, 2018
* pr/12203:
  Polish argument capturing in two Tomcat tests
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: enhancement A general enhancement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants