@VisibleForTesting ByteArrays() { this(StandardComparisonStrategy.instance()); }
/** * Creates a new </code>{@link ShouldBeBetween}</code>. * * @param actual the actual value in the failed assertion. * @param start the lower boundary of date period. * @param end the lower boundary of date period. * @param inclusiveStart wether to include start date in period. * @param inclusiveEnd wether to include end date in period. * @return the created {@code ErrorMessageFactory}. */ public static ErrorMessageFactory shouldBeBetween( Date actual, Date start, Date end, boolean inclusiveStart, boolean inclusiveEnd) { return new ShouldBeBetween( actual, start, end, inclusiveStart, inclusiveEnd, StandardComparisonStrategy.instance()); }
/** * Creates a new </code>{@link ShouldBeGreaterOrEqual}</code>. * * @param <T> guarantees that the values used in this factory have the same type. * @param actual the actual value in the failed assertion. * @param other the value used in the failed assertion to compare the actual value to. * @return the created {@code ErrorMessageFactory}. */ public static <T extends Comparable<T>> ErrorMessageFactory shouldBeGreaterOrEqual( T actual, T other) { return new ShouldBeGreaterOrEqual(actual, other, StandardComparisonStrategy.instance()); }