java.time.OffsetTime type from new Date & Time API introduced in Java 8.
| Modifier and Type | Field and Description |
|---|---|
| public static final String |
| Access | Constructor and Description |
|---|---|
| protected | AbstractOffsetTimeAssert(OffsetTime
the actual value to verify actual, Class<?> the "self type" selfType)Creates a new |
| Modifier and Type | Method and Description |
|---|---|
| private static boolean | Returns: true if both OffsetTime are in the same year, month and day of month, hour, minute and second, false otherwise.the actual OffsetTime. expected not be null actual, OffsetTime the other OffsetTime. expected not be null other)Returns true if both OffsetTime are in the same hour, minute and second, false otherwise. |
| private static boolean | Returns: true if both OffsetTime are in the same hour and minute, false otherwise.the actual OffsetTime. expected not be null actual, OffsetTime the other OffsetTime. expected not be null other)Returns true if both OffsetTime are in the same hour and minute, false otherwise. |
| private static boolean | Returns: true if both OffsetTime are in the same hour, minute, second and nanosecond false otherwise.the actual OffsetTime. expected not be null actual, OffsetTime the other OffsetTime. expected not be null other)Returns true if both OffsetTime are in the same hour, minute, second and nanosecond false otherwise. |
| private static void | assertOffsetTimeAsStringParameterIsNotNull(String
String representing the OffsetTimeAsString)java. to compare actual withCheck that the |
| private static void | assertOffsetTimeParameterIsNotNull(OffsetTime
the other)java. to checkCheck that the |
| private void | |
| private static Object[] | |
| public SELF | Returns: this assertion object.the given other)java..Verifies that actual and given |
| private static boolean | |
| private static boolean | |
| private static boolean | |
| private static boolean | |
| public SELF | Returns: this assertion object.the given other)java..Verifies that the actual |
| public SELF | Returns: this assertion object.String representing a offsetTimeAsString)java..Same assertion as |
| public SELF | Returns: this assertion object.the given other)java..Verifies that the actual |
| public SELF | Returns: this assertion object.String representing a offsetTimeAsString)java..Same assertion as |
| public SELF | Returns: this assertion object.the given other)java..Verifies that the actual |
| public SELF | Returns: this assertion object.String representing a offsetTimeAsString)java..Same assertion as |
| public SELF | Returns: this assertion object.the given other)java..Verifies that the actual |
| public SELF | Returns: this assertion object.String representing a offsetTimeAsString)java..Same assertion as |
| public SELF | Returns: this assertion object.the start value (inclusive), expected not to be null. startInclusive, OffsetTime the end value (inclusive), expected not to be null. endInclusive)Verifies that the actual |
| public SELF | Returns: this assertion object.the start value (inclusive), expected not to be null. startInclusive, String the end value (inclusive), expected not to be null. endInclusive)Same assertion as |
| public SELF | Returns: this assertion objectthe offsetTime to compare actual to other, TemporalOffset<? super OffsetTime> the offset used for comparison offset)Overrides org. OffsetTime is close to the other according to the given TemporalOffset.
|
| public SELF | Returns: this assertion object.String representing a offsetTimeAsString)java..Same assertion as |
| public SELF | Returns: this assertion object.the given other)java..
Deprecated
Use
Verifies that actual and given isCloseTo(OffsetTime, TemporalOffset) instead, although not exactly the same semantics,
this is the right way to compare with a given precision.
OffsetTime have same hour, minute and second fields (nanosecond fields are
ignored in comparison).
|
| public SELF | Returns: this assertion object.the given other)java..
Deprecated
Use
Verifies that actual and given isCloseTo(OffsetTime, TemporalOffset) instead, although not exactly the same semantics,
this is the right way to compare with a given precision.
java. have same hour and minute fields (second and nanosecond
fields are
ignored in comparison).
|
| public SELF | Returns: this assertion object.the given other)java..Verifies that actual and given |
| public SELF | Returns: this assertion object.String array representing offsetTimesAsString)java.s.Same assertion as |
| public SELF | Returns: this assertion object.String representing a offsetTimeAsString)java..Same assertion as |
| public SELF | Returns: this assertion object.Array of String representing a offsetTimesAsString)java..Same assertion as |
| public SELF | Returns: this assertion object.the start value (exclusive), expected not to be null. startExclusive, OffsetTime the end value (exclusive), expected not to be null. endExclusive)Verifies that the actual |
| public SELF | Returns: this assertion object.the start value (exclusive), expected not to be null. startExclusive, String the end value (exclusive), expected not to be null. endExclusive)Same assertion as |
| protected OffsetTime | parse(String
the string to parse, not null offsetTimeAsString)Implements abstract org. TEMPORAL from a string representation in ISO date format.
|
| NULL_OFFSET_TIME_PARAMETER_MESSAGE | back to summary |
|---|---|
| public static final String NULL_OFFSET_TIME_PARAMETER_MESSAGE | |
| AbstractOffsetTimeAssert | back to summary |
|---|---|
| protected AbstractOffsetTimeAssert(OffsetTime actual, Class<?> selfType) Creates a new
| |
| areEqualIgnoringNanos | back to summary |
|---|---|
| private static boolean areEqualIgnoringNanos(OffsetTime actual, OffsetTime other) Returns true if both OffsetTime are in the same hour, minute and second, false otherwise.
| |
| areEqualIgnoringSeconds | back to summary |
|---|---|
| private static boolean areEqualIgnoringSeconds(OffsetTime actual, OffsetTime other) Returns true if both OffsetTime are in the same hour and minute, false otherwise.
| |
| areEqualIgnoringTimezone | back to summary |
|---|---|
| private static boolean areEqualIgnoringTimezone(OffsetTime actual, OffsetTime other) Returns true if both OffsetTime are in the same hour, minute, second and nanosecond false otherwise.
| |
| assertOffsetTimeAsStringParameterIsNotNull | back to summary |
|---|---|
| private static void assertOffsetTimeAsStringParameterIsNotNull(String OffsetTimeAsString) Check that the
| |
| assertOffsetTimeParameterIsNotNull | back to summary |
|---|---|
| private static void assertOffsetTimeParameterIsNotNull(OffsetTime other) Check that the
| |
| checkIsNotNullAndNotEmpty | back to summary |
|---|---|
| private void checkIsNotNullAndNotEmpty(Object[] values) | |
| convertToOffsetTimeArray | back to summary |
|---|---|
| private static Object[] convertToOffsetTimeArray(String... offsetTimesAsString) | |
| hasSameHourAs | back to summary |
|---|---|
| public SELF hasSameHourAs(OffsetTime other) Verifies that actual and given Assertion can fail with OffsetTimes in same chronological second time window, e.g : 01:00:00.000+01:00 and 00:59:59.000+01:00. Time difference is only 1s but hour fields differ. Code example :
| |
| haveSameHourField | back to summary |
|---|---|
| private static boolean haveSameHourField(OffsetTime actual, OffsetTime other) | |
| haveSameMinute | back to summary |
|---|---|
| private static boolean haveSameMinute(OffsetTime actual, OffsetTime other) | |
| haveSameNano | back to summary |
|---|---|
| private static boolean haveSameNano(OffsetTime actual, OffsetTime other) | |
| haveSameSecond | back to summary |
|---|---|
| private static boolean haveSameSecond(OffsetTime actual, OffsetTime other) | |
| isAfter | back to summary |
|---|---|
| public SELF isAfter(OffsetTime other) Verifies that the actual Example :
| |
| isAfter | back to summary |
|---|---|
| public SELF isAfter(String offsetTimeAsString) Same assertion as Example :
| |
| isAfterOrEqualTo | back to summary |
|---|---|
| public SELF isAfterOrEqualTo(OffsetTime other) Verifies that the actual Example :
| |
| isAfterOrEqualTo | back to summary |
|---|---|
| public SELF isAfterOrEqualTo(String offsetTimeAsString) Same assertion as Example :
| |
| isBefore | back to summary |
|---|---|
| public SELF isBefore(OffsetTime other) Verifies that the actual Example :
| |
| isBefore | back to summary |
|---|---|
| public SELF isBefore(String offsetTimeAsString) Same assertion as Example :
| |
| isBeforeOrEqualTo | back to summary |
|---|---|
| public SELF isBeforeOrEqualTo(OffsetTime other) Verifies that the actual Example :
| |
| isBeforeOrEqualTo | back to summary |
|---|---|
| public SELF isBeforeOrEqualTo(String offsetTimeAsString) Same assertion as Example :
| |
| isBetween | back to summary |
|---|---|
| public SELF isBetween(OffsetTime startInclusive, OffsetTime endInclusive) Verifies that the actual Example:
| |
| isBetween | back to summary |
|---|---|
| public SELF isBetween(String startInclusive, String endInclusive) Same assertion as Example:
| |
| isCloseTo | back to summary |
|---|---|
| public SELF isCloseTo(OffsetTime other, TemporalOffset<? super OffsetTime> offset) Overrides org. Verifies that the actual
You can build the offset parameter using Example:
| |
| isEqualTo | back to summary |
|---|---|
| public SELF isEqualTo(String offsetTimeAsString) Same assertion as Example :
| |
| isEqualToIgnoringNanos | back to summary |
|---|---|
| public SELF isEqualToIgnoringNanos(OffsetTime other)
Deprecated Use Verifies that actual and given Assertion can fail with OffsetTimes in same chronological nanosecond time window, e.g : 23:00:01.000000000+01:00 and 23:00:00.999999999+01:00. Assertion fails as second fields differ even if time difference is only 1ns. Code example :
| |
| isEqualToIgnoringSeconds | back to summary |
|---|---|
| public SELF isEqualToIgnoringSeconds(OffsetTime other)
Deprecated Use Verifies that actual and given Assertion can fail with OffsetTimes in same chronological second time window, e.g : 23:01:00.000+01:00 and 23:00:59.000+01:00. Assertion fails as minute fields differ even if time difference is only 1s. Code example :
| |
| isEqualToIgnoringTimezone | back to summary |
|---|---|
| public SELF isEqualToIgnoringTimezone(OffsetTime other) Verifies that actual and given Code examples :
| |
| isIn | back to summary |
|---|---|
| public SELF isIn(String... offsetTimesAsString) Same assertion as Example :
| |
| isNotEqualTo | back to summary |
|---|---|
| public SELF isNotEqualTo(String offsetTimeAsString) Same assertion as Example :
| |
| isNotIn | back to summary |
|---|---|
| public SELF isNotIn(String... offsetTimesAsString) Same assertion as Example :
| |
| isStrictlyBetween | back to summary |
|---|---|
| public SELF isStrictlyBetween(OffsetTime startExclusive, OffsetTime endExclusive) Verifies that the actual Example:
| |
| isStrictlyBetween | back to summary |
|---|---|
| public SELF isStrictlyBetween(String startExclusive, String endExclusive) Same assertion as Example:
| |
| parse | back to summary |
|---|---|
| protected OffsetTime parse(String offsetTimeAsString) Implements abstract org. Doc from org. Obtains an instance of
| |