File tree 1 file changed +5
-3
lines changed
spring-integration-core/src/test/java/org/springframework/integration/store
1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change 28
28
29
29
import org .apache .commons .logging .Log ;
30
30
import org .apache .commons .logging .LogFactory ;
31
- import org .junit .Test ;
31
+ import org .junit .jupiter . api . Test ;
32
32
33
33
import org .springframework .messaging .Message ;
34
34
import org .springframework .messaging .support .GenericMessage ;
40
40
/**
41
41
* @author Dave Syer
42
42
* @author Gary Russell
43
+ * @author Artem Bilan
44
+ *
43
45
* @since 2.0
44
46
*/
45
47
public class MessageGroupQueueTests {
@@ -74,7 +76,7 @@ public void testPollEmpty() throws Exception {
74
76
CountDownLatch latch2 = new CountDownLatch (1 );
75
77
exec .execute (() -> {
76
78
try {
77
- Message <?> result = queue .poll (100 , TimeUnit .MILLISECONDS );
79
+ Message <?> result = queue .poll (10 , TimeUnit .SECONDS );
78
80
if (result != null ) {
79
81
latch2 .countDown ();
80
82
}
@@ -92,7 +94,7 @@ public void testPollEmpty() throws Exception {
92
94
@ Test
93
95
public void testSize () throws Exception {
94
96
MessageGroupQueue queue = new MessageGroupQueue (new SimpleMessageStore (), "FOO" );
95
- queue .put (new GenericMessage <String >("foo" ));
97
+ queue .put (new GenericMessage <>("foo" ));
96
98
assertThat (queue .size ()).isEqualTo (1 );
97
99
queue .poll (100 , TimeUnit .MILLISECONDS );
98
100
assertThat (queue .size ()).isEqualTo (0 );
You can’t perform that action at this time.
0 commit comments