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
-
Field Summary
FieldsFields inherited from class org.assertj.core.error.BasicErrorMessageFactory
arguments, format
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
ShouldBeCompletedWithin
(Future<?> actual, long timeout, TimeUnit timeUnit, Exception exception) private
ShouldBeCompletedWithin
(Future<?> actual, Duration duration, Exception exception) -
Method Summary
Modifier and TypeMethodDescriptionstatic ErrorMessageFactory
shouldBeCompletedWithin
(Future<?> actual, long timeout, TimeUnit timeUnit, Exception exception) static ErrorMessageFactory
shouldBeCompletedWithin
(Future<?> 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 Details
-
SHOULD_BE_COMPLETED_WITHIN_DURATION
- See Also:
-
SHOULD_BE_COMPLETED_WITHIN
- See Also:
-
-
Constructor Details
-
ShouldBeCompletedWithin
-
ShouldBeCompletedWithin
-
-
Method Details
-
shouldBeCompletedWithin
public static ErrorMessageFactory shouldBeCompletedWithin(Future<?> actual, Duration duration, Exception exception) -
shouldBeCompletedWithin
public static ErrorMessageFactory shouldBeCompletedWithin(Future<?> actual, long timeout, TimeUnit timeUnit, Exception exception) -
toChronoUnit
-