-
Notifications
You must be signed in to change notification settings - Fork 38.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
Provide support for publishing test execution life-cycle events #22477
Conversation
@maverick1601 Please sign the Contributor License Agreement! Click here to manually synchronize the status of this Pull Request. See the FAQ for frequently asked questions. |
@maverick1601 Thank you for signing the Contributor License Agreement! |
I noticed there are some code quality violations. Would you mind addressing those in your PR? |
I will fix those |
Seems like most of them are fixed. There is one violation, because the dummyTestMethod() used in the integration test needs documentation. But for me this is a false positive. |
Thanks |
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.
Looking good!
Please make the requested changes, and I'll then make a final review.
Cheers,
Sam
spring-test/src/main/java/org/springframework/test/context/TestExecutionListener.java
Outdated
Show resolved
Hide resolved
...-test/src/main/java/org/springframework/test/context/event/AfterClassTestExecutionEvent.java
Outdated
Show resolved
Hide resolved
...-test/src/main/java/org/springframework/test/context/event/AfterClassTestExecutionEvent.java
Outdated
Show resolved
Hide resolved
spring-test/src/main/java/org/springframework/test/context/event/package-info.java
Outdated
Show resolved
Hide resolved
.../springframework/test/context/event/EventPublishingTestExecutionListenerIntegrationTest.java
Outdated
Show resolved
Hide resolved
.../springframework/test/context/event/EventPublishingTestExecutionListenerIntegrationTest.java
Outdated
Show resolved
Hide resolved
spring-test/src/main/java/org/springframework/test/context/event/annotation/AfterTestClass.java
Outdated
Show resolved
Hide resolved
...st/java/org/springframework/test/context/event/EventPublishingTestExecutionListenerTest.java
Outdated
Show resolved
Hide resolved
.../springframework/test/context/event/EventPublishingTestExecutionListenerIntegrationTest.java
Outdated
Show resolved
Hide resolved
...st/java/org/springframework/test/context/event/EventPublishingTestExecutionListenerTest.java
Outdated
Show resolved
Hide resolved
Resolved all review tasks, hopefully. |
Yep. Looks good. I think the only thing you missed is the copyright date for the test classes, but that's not a big deal. 😉 Thanks for making the changes! |
Adds new TestExecutionListener for publishing events to the test application context. These may be consumed by @eventlistener annotated methods to react to the test life-cycle. The test execution listener isn't enabled by default. Implements spring-projects#18490
Fixed the test class copyrights, as well. These were all due to the cherry-pick from 2016 ;-) |
Thanks for all of the hard work, @maverick1601. I'll see if I can merge this in the coming days. |
Adds new TestExecutionListener for publishing events to the test application context.
These may be consumed by @eventlistener annotated methods to react to the test
life-cycle. The test execution listener isn't enabled by default.
Implements #18490