-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Migrate few modules to Junit Jupiter #10020
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
base: main
Are you sure you want to change the base?
Conversation
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.
Error: eckstyle] [ERROR] /home/runner/work/spring-integration/spring-integration/spring-integration-amqp/src/test/java/org/springframework/integration/amqp/inbound/ManualAckTests.java:50:74: Using a static member import should be avoided - org.springframework.integration.amqp.inbound.ManualAckTests.ManualAckConfig. [AvoidStaticImport]
Use check
Gradle command to verify Checkstyle as well.
Thanks
including: `spring-integration-amqp`, `spring-integration-file`, 'spring-integration-groovy' Signed-off-by: Jiandong Ma <[email protected]>
including: `spring-integration-http`, `spring-integration-jdbc`, `spring-integration-jms` Signed-off-by: Jiandong Ma <[email protected]>
Hi @artembilan I found one test local failed at this assert By checking the By checking the doc file-tailing, we support can confirm can I do it this way, or any better idea. Thank you! |
Hey, @mjd507 ! Thank you for digging more about those tests! The CI is Linux, so ha to pass I guess, e..g. latest SNAPSHOT build: https://ge.spring.io/s/xefov3l7yanqy/tests/task/:spring-integration-file:test/details/org.springframework.integration.file.tail.FileTailingMessageProducerTests/testOS?top-execution=1 I use Windows for development. Still works with my WSL2. Please, raise a new PR with whatever you think could be as a fix for that problem. |
The |
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 is great.
Just some minor comments over there in the code.
Do you know already, @mjd507 , how many modules left with some JUnit 4 tests?
Thank you for great contribution!
...egration-amqp/src/test/java/org/springframework/integration/amqp/inbound/ManualAckTests.java
Outdated
Show resolved
Hide resolved
...-file/src/test/java/org/springframework/integration/file/config/FileMessageHistoryTests.java
Outdated
Show resolved
Hide resolved
...rc/test/java/org/springframework/integration/file/config/FileOutboundGatewayParserTests.java
Outdated
Show resolved
Hide resolved
...-integration-file/src/test/java/org/springframework/integration/file/tail/TailAvailable.java
Outdated
Show resolved
Hide resolved
...va/org/springframework/integration/jdbc/mysql/MySqlJdbcMessageStoreMultipleChannelTests.java
Show resolved
Hide resolved
...java/org/springframework/integration/jdbc/store/channel/DerbyTxTimeoutMessageStoreTests.java
Show resolved
Hide resolved
...java/org/springframework/integration/jdbc/store/channel/MySqlTxTimeoutMessageStoreTests.java
Show resolved
Hide resolved
...ava/org/springframework/integration/jdbc/store/channel/OracleTxTimeoutMessageStoreTests.java
Show resolved
Hide resolved
...a/org/springframework/integration/jdbc/store/channel/PostgresTxTimeoutMessageStoreTests.java
Show resolved
Hide resolved
Thank you @artembilan , I always expect the comments you leave on my changes, Even though I was doing the relatively easy part, I always learned something useful.
by search |
Signed-off-by: Jiandong Ma <[email protected]>
No, we still need to migrate Hazelcast. We have deprecated only some of the components which require CP subsystem. The rest remains as is. And if you say there are some JUnit 4 tests , then we need to migrate them. So, thank you for reporting that, I’ll try to migrate renaming tests myself before releasing tomorrow . |
including:
spring-integration-amqp
,spring-integration-file
,spring-integration-groovy
for
RabbitAvailable
test cases, I am not sure they are working or not, in local all skipped due to no broker available.