public class ShouldBeLess extends BasicErrorMessageFactory
arguments, format| Modifier and Type | Method and Description |
|---|---|
static <T> ErrorMessageFactory |
shouldBeLess(Comparable<? super T> actual,
Comparable<? super T> other)
Creates a new
. |
static ErrorMessageFactory |
shouldBeLess(Object actual,
Object other,
ComparisonStrategy comparisonStrategy)
Creates a new
. |
static <T extends Comparable<? super T>> |
shouldBeLess(T actual,
T other,
ComparisonStrategy comparisonStrategy)
Deprecated.
Use
shouldBeLess(Object, Object, ComparisonStrategy) instead. |
create, create, create, equals, hashCode, toString, unquotedStringpublic static <T> ErrorMessageFactory shouldBeLess(Comparable<? super T> actual, Comparable<? super T> other)
ShouldBeLess.T - guarantees that the values used in this factory have the same type.actual - the actual value in the failed assertion.other - the value used in the failed assertion to compare the actual value to.ErrorMessageFactory.@Deprecated public static <T extends Comparable<? super T>> ErrorMessageFactory shouldBeLess(T actual, T other, ComparisonStrategy comparisonStrategy)
shouldBeLess(Object, Object, ComparisonStrategy) instead.ShouldBeLess.T - guarantees that the values used in this factory have the same type.actual - the actual value in the failed assertion.other - the value used in the failed assertion to compare the actual value to.comparisonStrategy - the ComparisonStrategy used to evaluate assertion.ErrorMessageFactory.public static ErrorMessageFactory shouldBeLess(Object actual, Object other, ComparisonStrategy comparisonStrategy)
ShouldBeLess.actual - the actual value in the failed assertion.other - the value used in the failed assertion to compare the actual value to.comparisonStrategy - the ComparisonStrategy used to evaluate assertion.ErrorMessageFactory.Copyright © 2025. All rights reserved.