public class ShouldBeGreater extends BasicErrorMessageFactory
arguments, format| Modifier and Type | Method and Description |
|---|---|
static <T> ErrorMessageFactory |
shouldBeGreater(Comparable<? super T> actual,
Comparable<? super T> other)
Creates a new
. |
static <T> ErrorMessageFactory |
shouldBeGreater(Comparable<? super T> actual,
Comparable<? super T> other,
ComparisonStrategy comparisonStrategy)
Deprecated.
Use
shouldBeGreater(Object, Object, ComparisonStrategy) instead. |
static ErrorMessageFactory |
shouldBeGreater(Object actual,
Object other,
ComparisonStrategy comparisonStrategy)
Creates a new
. |
create, create, create, equals, hashCode, toString, unquotedStringpublic static <T> ErrorMessageFactory shouldBeGreater(Comparable<? super T> actual, Comparable<? super T> other)
ShouldBeGreater.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> ErrorMessageFactory shouldBeGreater(Comparable<? super T> actual, Comparable<? super T> other, ComparisonStrategy comparisonStrategy)
shouldBeGreater(Object, Object, ComparisonStrategy) instead.ShouldBeGreater.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 shouldBeGreater(Object actual, Object other, ComparisonStrategy comparisonStrategy)
ShouldBeGreater.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.