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

Introduce reset method to OutputCapture #8490

Closed
wants to merge 2 commits into from

Conversation

rweisleder
Copy link
Contributor

Fixes #8390

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Mar 4, 2017
@philwebb philwebb added priority: normal type: enhancement A general enhancement and removed status: waiting-for-triage An issue we've not yet triaged labels Mar 4, 2017
@philwebb philwebb added this to the 1.5.3 milestone Mar 4, 2017
@philwebb
Copy link
Member

philwebb commented Mar 4, 2017

Nice, thanks!

@@ -0,0 +1,51 @@
/*
* Copyright 2012-2016 the original author or authors.
Copy link

Choose a reason for hiding this comment

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

Should be Copyright 2012-2017 the original author or authors.

public OutputCapture outputCapture = new OutputCapture();

@Test
public void testToString() throws Exception {
Copy link

Choose a reason for hiding this comment

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

I think that you shouldn't add prefix or sufix "test" to tests because it's redundant since the methods are also annotated with @test and are public methods in a test class.
This can be named also "smurf naming"

@rweisleder
Copy link
Contributor Author

Thanks @vborcea, I updated the pull request.

@philwebb
Copy link
Member

philwebb commented Mar 7, 2017

@vborcea Thanks for your efforts reviewing things, but many of these smaller issues we're happy to deal with ourselves when we merge. There's no need for contributors to update the copyright header or rename methods as it's something that's a natural part of our process when we merge.

@snicoll snicoll self-assigned this Mar 10, 2017
snicoll added a commit that referenced this pull request Mar 10, 2017
* pr/8490:
  Polish contribution
  Introduce reset method to OutputCapture
@snicoll snicoll closed this in c8ac94b Mar 10, 2017
@rweisleder rweisleder deleted the gh-8390 branch March 10, 2017 19:34
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.

5 participants