@ -89,7 +89,7 @@ abstract class AbstractSchedulingTaskExecutorTests {
@@ -89,7 +89,7 @@ abstract class AbstractSchedulingTaskExecutorTests {
executor . execute ( task ) ;
Awaitility . await ( )
. dontCatchUncaughtExceptions ( )
. atMost ( 1 , TimeUnit . SECONDS )
. atMost ( 5 , TimeUnit . SECONDS )
. pollInterval ( 10 , TimeUnit . MILLISECONDS )
. until ( ( ) - > task . exception . get ( ) ! = null & & task . exception . get ( ) . getMessage ( ) . equals (
"TestTask failure for test 'executeFailingRunnable': expectedRunCount:<0>, actualRunCount:<1>" ) ) ;
@ -133,7 +133,7 @@ abstract class AbstractSchedulingTaskExecutorTests {
@@ -133,7 +133,7 @@ abstract class AbstractSchedulingTaskExecutorTests {
future . addCallback ( result - > outcome = result , ex - > outcome = ex ) ;
// Assert
Awaitility . await ( )
. atMost ( 1 , TimeUnit . SECONDS )
. atMost ( 5 , TimeUnit . SECONDS )
. pollInterval ( 10 , TimeUnit . MILLISECONDS )
. until ( future : : isDone ) ;
assertThat ( outcome ) . isNull ( ) ;
@ -148,7 +148,7 @@ abstract class AbstractSchedulingTaskExecutorTests {
@@ -148,7 +148,7 @@ abstract class AbstractSchedulingTaskExecutorTests {
future . whenComplete ( this : : storeOutcome ) ;
// Assert
Awaitility . await ( )
. atMost ( 1 , TimeUnit . SECONDS )
. atMost ( 5 , TimeUnit . SECONDS )
. pollInterval ( 10 , TimeUnit . MILLISECONDS )
. until ( future : : isDone ) ;
assertThat ( outcome ) . isNull ( ) ;
@ -164,7 +164,7 @@ abstract class AbstractSchedulingTaskExecutorTests {
@@ -164,7 +164,7 @@ abstract class AbstractSchedulingTaskExecutorTests {
Awaitility . await ( )
. dontCatchUncaughtExceptions ( )
. atMost ( 1 , TimeUnit . SECONDS )
. atMost ( 5 , TimeUnit . SECONDS )
. pollInterval ( 10 , TimeUnit . MILLISECONDS )
. until ( ( ) - > future . isDone ( ) & & outcome ! = null ) ;
assertThat ( outcome . getClass ( ) ) . isSameAs ( RuntimeException . class ) ;
@ -178,7 +178,7 @@ abstract class AbstractSchedulingTaskExecutorTests {
@@ -178,7 +178,7 @@ abstract class AbstractSchedulingTaskExecutorTests {
Awaitility . await ( )
. dontCatchUncaughtExceptions ( )
. atMost ( 1 , TimeUnit . SECONDS )
. atMost ( 5 , TimeUnit . SECONDS )
. pollInterval ( 10 , TimeUnit . MILLISECONDS )
. until ( ( ) - > future . isDone ( ) & & outcome ! = null ) ;
assertThat ( outcome . getClass ( ) ) . isSameAs ( CompletionException . class ) ;
@ -198,7 +198,7 @@ abstract class AbstractSchedulingTaskExecutorTests {
@@ -198,7 +198,7 @@ abstract class AbstractSchedulingTaskExecutorTests {
// ignore
}
Awaitility . await ( )
. atMost ( 4 , TimeUnit . SECONDS )
. atMost ( 5 , TimeUnit . SECONDS )
. pollInterval ( 10 , TimeUnit . MILLISECONDS )
. untilAsserted ( ( ) - > assertThatExceptionOfType ( CancellationException . class )
. isThrownBy ( ( ) - > future2 . get ( 1000 , TimeUnit . MILLISECONDS ) ) ) ;
@ -217,7 +217,7 @@ abstract class AbstractSchedulingTaskExecutorTests {
@@ -217,7 +217,7 @@ abstract class AbstractSchedulingTaskExecutorTests {
// ignore
}
Awaitility . await ( )
. atMost ( 4 , TimeUnit . SECONDS )
. atMost ( 5 , TimeUnit . SECONDS )
. pollInterval ( 10 , TimeUnit . MILLISECONDS )
. untilAsserted ( ( ) - > assertThatExceptionOfType ( TimeoutException . class )
. isThrownBy ( ( ) - > future2 . get ( 1000 , TimeUnit . MILLISECONDS ) ) ) ;
@ -253,7 +253,7 @@ abstract class AbstractSchedulingTaskExecutorTests {
@@ -253,7 +253,7 @@ abstract class AbstractSchedulingTaskExecutorTests {
// ignore
}
Awaitility . await ( )
. atMost ( 4 , TimeUnit . SECONDS )
. atMost ( 5 , TimeUnit . SECONDS )
. pollInterval ( 10 , TimeUnit . MILLISECONDS )
. untilAsserted ( ( ) - > assertThatExceptionOfType ( CancellationException . class )
. isThrownBy ( ( ) - > future2 . get ( 1000 , TimeUnit . MILLISECONDS ) ) ) ;
@ -268,7 +268,7 @@ abstract class AbstractSchedulingTaskExecutorTests {
@@ -268,7 +268,7 @@ abstract class AbstractSchedulingTaskExecutorTests {
future . addCallback ( result - > outcome = result , ex - > outcome = ex ) ;
// Assert
Awaitility . await ( )
. atMost ( 1 , TimeUnit . SECONDS )
. atMost ( 5 , TimeUnit . SECONDS )
. pollInterval ( 10 , TimeUnit . MILLISECONDS )
. until ( ( ) - > future . isDone ( ) & & outcome ! = null ) ;
assertThat ( outcome . toString ( ) . substring ( 0 , this . threadNamePrefix . length ( ) ) ) . isEqualTo ( this . threadNamePrefix ) ;
@ -284,7 +284,7 @@ abstract class AbstractSchedulingTaskExecutorTests {
@@ -284,7 +284,7 @@ abstract class AbstractSchedulingTaskExecutorTests {
// Assert
Awaitility . await ( )
. dontCatchUncaughtExceptions ( )
. atMost ( 1 , TimeUnit . SECONDS )
. atMost ( 5 , TimeUnit . SECONDS )
. pollInterval ( 10 , TimeUnit . MILLISECONDS )
. until ( ( ) - > future . isDone ( ) & & outcome ! = null ) ;
assertThat ( outcome . getClass ( ) ) . isSameAs ( RuntimeException . class ) ;
@ -310,7 +310,7 @@ abstract class AbstractSchedulingTaskExecutorTests {
@@ -310,7 +310,7 @@ abstract class AbstractSchedulingTaskExecutorTests {
future . whenComplete ( this : : storeOutcome ) ;
// Assert
Awaitility . await ( )
. atMost ( 1 , TimeUnit . SECONDS )
. atMost ( 5 , TimeUnit . SECONDS )
. pollInterval ( 10 , TimeUnit . MILLISECONDS )
. until ( ( ) - > future . isDone ( ) & & outcome ! = null ) ;
assertThat ( outcome . toString ( ) . substring ( 0 , this . threadNamePrefix . length ( ) ) ) . isEqualTo ( this . threadNamePrefix ) ;
@ -325,7 +325,7 @@ abstract class AbstractSchedulingTaskExecutorTests {
@@ -325,7 +325,7 @@ abstract class AbstractSchedulingTaskExecutorTests {
// Assert
Awaitility . await ( )
. dontCatchUncaughtExceptions ( )
. atMost ( 1 , TimeUnit . SECONDS )
. atMost ( 5 , TimeUnit . SECONDS )
. pollInterval ( 10 , TimeUnit . MILLISECONDS )
. until ( ( ) - > future . isDone ( ) & & outcome ! = null ) ;
assertThat ( outcome . getClass ( ) ) . isSameAs ( CompletionException . class ) ;