Package org.assertj.core.error.future
Class ShouldBeCompletedWithin
- java.lang.Object
-
- org.assertj.core.error.BasicErrorMessageFactory
-
- org.assertj.core.error.future.ShouldBeCompletedWithin
-
- All Implemented Interfaces:
ErrorMessageFactory
public class ShouldBeCompletedWithin extends BasicErrorMessageFactory
-
-
Field Summary
Fields Modifier and Type Field Description private static String
SHOULD_BE_COMPLETED_WITHIN
private static String
SHOULD_BE_COMPLETED_WITHIN_DURATION
-
Fields inherited from class org.assertj.core.error.BasicErrorMessageFactory
arguments, format
-
-
Constructor Summary
Constructors Modifier Constructor Description private
ShouldBeCompletedWithin(CompletableFuture<?> actual, long timeout, TimeUnit timeUnit, Exception exception)
private
ShouldBeCompletedWithin(CompletableFuture<?> actual, Duration duration, Exception exception)
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ErrorMessageFactory
shouldBeCompletedWithin(CompletableFuture<?> actual, long timeout, TimeUnit timeUnit, Exception exception)
static ErrorMessageFactory
shouldBeCompletedWithin(CompletableFuture<?> actual, Duration duration, Exception exception)
private static ChronoUnit
toChronoUnit(TimeUnit timeUnit)
-
Methods inherited from class org.assertj.core.error.BasicErrorMessageFactory
create, create, create, equals, hashCode, toString, unquotedString
-
-
-
-
Field Detail
-
SHOULD_BE_COMPLETED_WITHIN_DURATION
private static final String SHOULD_BE_COMPLETED_WITHIN_DURATION
- See Also:
- Constant Field Values
-
SHOULD_BE_COMPLETED_WITHIN
private static final String SHOULD_BE_COMPLETED_WITHIN
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ShouldBeCompletedWithin
private ShouldBeCompletedWithin(CompletableFuture<?> actual, Duration duration, Exception exception)
-
ShouldBeCompletedWithin
private ShouldBeCompletedWithin(CompletableFuture<?> actual, long timeout, TimeUnit timeUnit, Exception exception)
-
-
Method Detail
-
shouldBeCompletedWithin
public static ErrorMessageFactory shouldBeCompletedWithin(CompletableFuture<?> actual, Duration duration, Exception exception)
-
shouldBeCompletedWithin
public static ErrorMessageFactory shouldBeCompletedWithin(CompletableFuture<?> actual, long timeout, TimeUnit timeUnit, Exception exception)
-
toChronoUnit
private static ChronoUnit toChronoUnit(TimeUnit timeUnit)
-
-