-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
Use EventCollector if possible. #936
base: main
Are you sure you want to change the base?
Conversation
*/ | ||
public class EventCollector extends RunListener { | ||
|
||
private final List<Description> fTestRunsStarted = synchronizedList(new ArrayList<Description>()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We no longer use an f
prefix for fields
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This code is much older :-)
Done.
Very nice. I do think some of the test support code could use some tests. Don't go crazy; "test until fear turns to boredom" :-) |
Were you going to add tests for some of the non-trivial code in the |
Yes. I already started. |
bbdcf28
to
3eb5e8c
Compare
@stefanbirkner LGTM! Do you want to take another look before we merge it? |
Needs squashing, though. |
8e4aeef
to
4036fa6
Compare
Avoids duplicate implementations of RunListener for different test and provides Hamcrest matchers for verifying events sent to the listener.
4036fa6
to
ae86bf3
Compare
Avoids duplicate implementations of RunListener for different test and
provides Hamcrest matchers for verifying events sent to the listener.