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

public Class ShouldNotBeEqual

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

Creates an error message indicating that an assertion that verifies that two objects are not equal failed.
Authors
Alex Ruiz, Joel Costigliola

Field Summary

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

Constructor Summary

AccessConstructor and Description
private
ShouldNotBeEqual(Object actual, Object other, ComparisonStrategy comparisonStrategy)

Method Summary

Modifier and TypeMethod and Description
public static ErrorMessageFactory

Returns:

the created ErrorMessageFactory.
shouldNotBeEqual
(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 compare actual with expected.
comparisonStrategy
)

Creates a new ShouldNotBeEqual.

public static ErrorMessageFactory

Returns:

the created ErrorMessageFactory.
shouldNotBeEqual
(Object
the actual value in the failed assertion.
actual
,
Object
the value used in the failed assertion to compare the actual value to.
other
)

Creates a new ShouldNotBeEqual.

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

Constructor Detail

ShouldNotBeEqualback to summary
private ShouldNotBeEqual(Object actual, Object other, ComparisonStrategy comparisonStrategy)

Method Detail

shouldNotBeEqualback to summary
public static ErrorMessageFactory shouldNotBeEqual(Object actual, Object other, ComparisonStrategy comparisonStrategy)

Creates a new ShouldNotBeEqual.

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 compare actual with expected.

Returns:ErrorMessageFactory

the created ErrorMessageFactory.

shouldNotBeEqualback to summary
public static ErrorMessageFactory shouldNotBeEqual(Object actual, Object other)

Creates a new ShouldNotBeEqual.

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.

Returns:ErrorMessageFactory

the created ErrorMessageFactory.