Skip to content

spring-integration-mail minor changes #9948

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

Merged
merged 1 commit into from
Apr 11, 2025
Merged

Conversation

mjd507
Copy link
Contributor

@mjd507 mjd507 commented Apr 11, 2025

  1. use pattern matching for instanceof
  2. polish unit tests

Copy link
Member

@artembilan artembilan left a comment

Choose a reason for hiding this comment

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

Thank you for contribution!
I'll look into this shortly.
Meanwhile, please, make sure you follow our Checkstyle rules:


Error: eckstyle] [ERROR] /home/runner/work/spring-integration/spring-integration/spring-integration-mail/src/test/java/org/springframework/integration/mail/config/PollingMailSourceParserTests.java:21:1: 'jakarta.mail.URLName' should be separated from previous imports. [ImportOrder]
Error: eckstyle] [ERROR] /home/runner/work/spring-integration/spring-integration/spring-integration-mail/src/test/java/org/springframework/integration/mail/config/PollingMailSourceParserTests.java:25:1: 'org.springframework.beans.DirectFieldAccessor' should be separated from previous imports. [ImportOrder]
> Task :spring-integration-mail:checkstyleTest
Error: eckstyle] [ERROR] /home/runner/work/spring-integration/spring-integration/spring-integration-mail/src/test/java/org/springframework/integration/mail/config/PollingMailSourceParserTests.java:36:58: Using a static member import should be avoided - org.junit.jupiter.params.provider.Arguments.arguments. [AvoidStaticImport]
Error: eckstyle] [ERROR] /home/runner/work/spring-integration/spring-integration/spring-integration-mail/src/test/java/org/springframework/integration/mail/config/MessageWithContentTypeTests.java:22:1: 'jakarta.mail.Session' should be separated from previous imports. [ImportOrder]
Error: eckstyle] [ERROR] /home/runner/work/spring-integration/spring-integration/spring-integration-mail/src/test/java/org/springframework/integration/mail/config/MessageWithContentTypeTests.java:26:1: 'org.springframework.integration.mail.MailHeaders' should be separated from previous imports. [ImportOrder]
Error: eckstyle] [ERROR] /home/runner/work/spring-integration/spring-integration/spring-integration-mail/src/test/java/org/springframework/integration/mail/ImapMailReceiverTests.java:36:1: 'com.icegreen.greenmail.user.GreenMailUser' should be separated from previous imports. [ImportOrder]
Error: eckstyle] [ERROR] /home/runner/work/spring-integration/spring-integration/spring-integration-mail/src/test/java/org/springframework/integration/mail/ImapMailReceiverTests.java:65:1: 'org.springframework.beans.DirectFieldAccessor' should be separated from previous imports. [ImportOrder]

That easy to check locally before pushing changes: gradlew :spring-integration-mail:check

Copy link
Member

@artembilan artembilan left a comment

Choose a reason for hiding this comment

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

Left some review on lines.
Thanks

@mjd507
Copy link
Contributor Author

mjd507 commented Apr 11, 2025

can suggest below test error for core, in my local, it passed. can we re-trigger the build process?

Task :spring-integration-core:test
ReactiveStreamsTests > testPollableReactiveFlow() FAILED
org.springframework.messaging.MessageDeliveryException at ReactiveStreamsTests.java:157
Caused by: org.springframework.integration.MessageDispatchingException at ReactiveStreamsTests.java:157
2314 tests completed, 1 failed, 31 skipped
Task :spring-integration-core:test FAILED

  1. use pattern matching for instanceof
  2. polish unit tests

Signed-off-by: Ma,Jiandong <[email protected]>
@mjd507
Copy link
Contributor Author

mjd507 commented Apr 11, 2025

re submitted without change anything, now build pass :)

@mjd507 mjd507 requested a review from artembilan April 11, 2025 18:41
@artembilan artembilan added this to the 6.5.0-RC1 milestone Apr 11, 2025
@artembilan artembilan merged commit ce6627f into spring-projects:main Apr 11, 2025
3 checks passed
@artembilan
Copy link
Member

@mjd507 ,

thank you for contribution; looking forward for more!

@mjd507
Copy link
Contributor Author

mjd507 commented Apr 11, 2025

@mjd507 ,

thank you for contribution; looking forward for more!

thank you for such a quick review ❤️

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