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 java.lang.String
SHOULD_BE_COMPLETED_WITHIN
private static java.lang.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(java.util.concurrent.Future<?> actual, long timeout, java.util.concurrent.TimeUnit timeUnit, java.lang.Exception exception)
private
ShouldBeCompletedWithin(java.util.concurrent.Future<?> actual, java.time.Duration duration, java.lang.Exception exception)
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ErrorMessageFactory
shouldBeCompletedWithin(java.util.concurrent.Future<?> actual, long timeout, java.util.concurrent.TimeUnit timeUnit, java.lang.Exception exception)
static ErrorMessageFactory
shouldBeCompletedWithin(java.util.concurrent.Future<?> actual, java.time.Duration duration, java.lang.Exception exception)
private static java.time.temporal.ChronoUnit
toChronoUnit(java.util.concurrent.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 java.lang.String SHOULD_BE_COMPLETED_WITHIN_DURATION
- See Also:
- Constant Field Values
-
SHOULD_BE_COMPLETED_WITHIN
private static final java.lang.String SHOULD_BE_COMPLETED_WITHIN
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ShouldBeCompletedWithin
private ShouldBeCompletedWithin(java.util.concurrent.Future<?> actual, java.time.Duration duration, java.lang.Exception exception)
-
ShouldBeCompletedWithin
private ShouldBeCompletedWithin(java.util.concurrent.Future<?> actual, long timeout, java.util.concurrent.TimeUnit timeUnit, java.lang.Exception exception)
-
-
Method Detail
-
shouldBeCompletedWithin
public static ErrorMessageFactory shouldBeCompletedWithin(java.util.concurrent.Future<?> actual, java.time.Duration duration, java.lang.Exception exception)
-
shouldBeCompletedWithin
public static ErrorMessageFactory shouldBeCompletedWithin(java.util.concurrent.Future<?> actual, long timeout, java.util.concurrent.TimeUnit timeUnit, java.lang.Exception exception)
-
toChronoUnit
private static java.time.temporal.ChronoUnit toChronoUnit(java.util.concurrent.TimeUnit timeUnit)
-
-