File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
spring-integration-core/src/test/java/org/springframework/integration/store Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change 2828
2929import org .apache .commons .logging .Log ;
3030import org .apache .commons .logging .LogFactory ;
31- import org .junit .Test ;
31+ import org .junit .jupiter . api . Test ;
3232
3333import org .springframework .messaging .Message ;
3434import org .springframework .messaging .support .GenericMessage ;
4040/**
4141 * @author Dave Syer
4242 * @author Gary Russell
43+ * @author Artem Bilan
44+ *
4345 * @since 2.0
4446 */
4547public class MessageGroupQueueTests {
@@ -74,7 +76,7 @@ public void testPollEmpty() throws Exception {
7476 CountDownLatch latch2 = new CountDownLatch (1 );
7577 exec .execute (() -> {
7678 try {
77- Message <?> result = queue .poll (100 , TimeUnit .MILLISECONDS );
79+ Message <?> result = queue .poll (10 , TimeUnit .SECONDS );
7880 if (result != null ) {
7981 latch2 .countDown ();
8082 }
@@ -92,7 +94,7 @@ public void testPollEmpty() throws Exception {
9294 @ Test
9395 public void testSize () throws Exception {
9496 MessageGroupQueue queue = new MessageGroupQueue (new SimpleMessageStore (), "FOO" );
95- queue .put (new GenericMessage <String >("foo" ));
97+ queue .put (new GenericMessage <>("foo" ));
9698 assertThat (queue .size ()).isEqualTo (1 );
9799 queue .poll (100 , TimeUnit .MILLISECONDS );
98100 assertThat (queue .size ()).isEqualTo (0 );
You can’t perform that action at this time.
0 commit comments