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

public Class ShouldBeGreaterOrEqual

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 greater than or equal to 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>
ShouldBeGreaterOrEqual(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.
shouldBeGreaterOrEqual
(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 ShouldBeGreaterOrEqual.

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

Returns:

the created ErrorMessageFactory.
shouldBeGreaterOrEqual
(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
,
ComparisonStrategy
the ComparisonStrategy used to evaluate assertion.
comparisonStrategy
)

Creates a new ShouldBeGreaterOrEqual.
public static ErrorMessageFactory

Returns:

the created ErrorMessageFactory.
shouldBeGreaterOrEqual
(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 ShouldBeGreaterOrEqual.

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

Constructor Detail

ShouldBeGreaterOrEqualback to summary
private <T> ShouldBeGreaterOrEqual(T actual, T other, ComparisonStrategy comparisonStrategy)

Method Detail

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

Creates a new ShouldBeGreaterOrEqual.

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.

shouldBeGreaterOrEqualback to summary
public static <T> ErrorMessageFactory shouldBeGreaterOrEqual(Comparable<? super T> actual, Comparable<? super T> other, ComparisonStrategy comparisonStrategy)

Creates a new ShouldBeGreaterOrEqual.

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.

comparisonStrategy:ComparisonStrategy

the ComparisonStrategy used to evaluate assertion.

Returns:ErrorMessageFactory

the created ErrorMessageFactory.

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

Creates a new ShouldBeGreaterOrEqual.

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.