Skip to content

Commit f4c663c

Browse files
committed
Fix JobLaunchingGatewayParserTests
The default value of sendTimeout in MessagingTemplate was changed from -1 to 30000 in SI 6.1 Related to spring-projects/spring-integration#8580
1 parent 2ba3785 commit f4c663c

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

Diff for: spring-batch-integration/src/test/java/org/springframework/batch/integration/config/xml/JobLaunchingGatewayParserTests.java

+3-5
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2022 the original author or authors.
2+
* Copyright 2002-2023 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
55
* the License. You may obtain a copy of the License at
@@ -13,7 +13,6 @@
1313
package org.springframework.batch.integration.config.xml;
1414

1515
import org.junit.jupiter.api.AfterEach;
16-
import org.junit.jupiter.api.Disabled;
1716
import org.junit.jupiter.api.Test;
1817

1918
import org.springframework.batch.core.launch.JobLauncher;
@@ -34,6 +33,7 @@
3433

3534
/**
3635
* @author Gunnar Hillert
36+
* @author Mahmoud Ben Hassine
3737
* @since 1.3
3838
*
3939
*/
@@ -64,8 +64,6 @@ void testGatewayParser() {
6464
assertFalse(this.consumer.isRunning());
6565
}
6666

67-
@Disabled
68-
// FIXME passing in the IDE, failing on the CLI: Wrong sendTimeout ==> expected: <-1> but was: <30000> ?
6967
@Test
7068
void testJobLaunchingGatewayIsRunning() {
7169
setUp("JobLaunchingGatewayParserTestsRunning-context.xml", getClass());
@@ -75,7 +73,7 @@ void testJobLaunchingGatewayIsRunning() {
7573
"handler.messagingTemplate", MessagingTemplate.class);
7674
final Long sendTimeout = TestUtils.getPropertyValue(messagingTemplate, "sendTimeout", Long.class);
7775

78-
assertEquals(-1L, sendTimeout, "Wrong sendTimeout");
76+
assertEquals(30000, sendTimeout, "Wrong sendTimeout");
7977
}
8078

8179
@Test

0 commit comments

Comments
 (0)