Top Description Fields Constructors Methods
org.assertj.core.error

public Class ShouldBeLess

extends BasicErrorMessageFactory
Class Inheritance
Imports
org.assertj.core.internal.ComparisonStrategy, .StandardComparisonStrategy

Creates an error message indicating that an assertion that verifies that a value is less than another one failed.
Authors
Alex Ruiz, Joel Costigliola

Field Summary

Inherited from org.assertj.core.error.BasicErrorMessageFactory:
argumentsformatformatter

Constructor Summary

AccessConstructor and Description
private <T>
ShouldBeLess(T actual, T other, ComparisonStrategy comparisonStrategy)

Method Summary

Modifier and TypeMethod and Description
public static <
guarantees that the values used in this factory have the same type.
T
>
ErrorMessageFactory

Returns:

the created ErrorMessageFactory.
shouldBeLess
(Comparable<? super T>
the actual value in the failed assertion.
actual
,
Comparable<? super T>
the value used in the failed assertion to compare the actual value to.
other
)

Creates a new ShouldBeLess.

public static <
guarantees that the values used in this factory have the same type.
T extends Comparable<? super T>
>
ErrorMessageFactory

Returns:

the created ErrorMessageFactory.
shouldBeLess
(T
the actual value in the failed assertion.
actual
,
T
the value used in the failed assertion to compare the actual value to.
other
,
ComparisonStrategy
the ComparisonStrategy used to evaluate assertion.
comparisonStrategy
)

Creates a new ShouldBeLess.
public static ErrorMessageFactory

Returns:

the created ErrorMessageFactory.
shouldBeLess
(Object
the actual value in the failed assertion.
actual
,
Object
the value used in the failed assertion to compare the actual value to.
other
,
ComparisonStrategy
the ComparisonStrategy used to evaluate assertion.
comparisonStrategy
)

Creates a new ShouldBeLess.

Inherited from org.assertj.core.error.BasicErrorMessageFactory:
createcreatecreateequalshashCodetoStringunquotedString

Constructor Detail

ShouldBeLessback to summary
private <T> ShouldBeLess(T actual, T other, ComparisonStrategy comparisonStrategy)

Method Detail

shouldBeLessback to summary
public static <T> ErrorMessageFactory shouldBeLess(Comparable<? super T> actual, Comparable<? super T> other)

Creates a new ShouldBeLess.

Parameters
<T>
guarantees that the values used in this factory have the same type.
actual:Comparable<? super T>

the actual value in the failed assertion.

other:Comparable<? super T>

the value used in the failed assertion to compare the actual value to.

Returns:ErrorMessageFactory

the created ErrorMessageFactory.

shouldBeLessback to summary
public static <T extends Comparable<? super T>> ErrorMessageFactory shouldBeLess(T actual, T other, ComparisonStrategy comparisonStrategy)

Creates a new ShouldBeLess.

Parameters
<T>
guarantees that the values used in this factory have the same type.
actual:T

the actual value in the failed assertion.

other:T

the value used in the failed assertion to compare the actual value to.

comparisonStrategy:ComparisonStrategy

the ComparisonStrategy used to evaluate assertion.

Returns:ErrorMessageFactory

the created ErrorMessageFactory.

Annotations
@Deprecated
shouldBeLessback to summary
public static ErrorMessageFactory shouldBeLess(Object actual, Object other, ComparisonStrategy comparisonStrategy)

Creates a new ShouldBeLess.

Parameters
actual:Object

the actual value in the failed assertion.

other:Object

the value used in the failed assertion to compare the actual value to.

comparisonStrategy:ComparisonStrategy

the ComparisonStrategy used to evaluate assertion.

Returns:ErrorMessageFactory

the created ErrorMessageFactory.