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

public Class ShouldNotBe

extends BasicErrorMessageFactory
Class Inheritance
Imports
org.assertj.core.api.Condition

Creates an error message indicating that an assertion that verifies that a value does not satisfy a Condition failed.
Authors
Yvonne Wang, Mikhail Mazursky

Field Summary

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

Constructor Summary

AccessConstructor and Description
private
ShouldNotBe(Object actual, Condition<?> condition)

Method Summary

Modifier and TypeMethod and Description
public static <
guarantees that the type of the actual value and the generic type of the Condition are the same.
T
>
ErrorMessageFactory

Returns:

the created ErrorMessageFactory.
shouldNotBe
(T
the actual value in the failed assertion.
actual
,
Condition<? super T>
the Condition.
condition
)

Creates a new ShouldNotBe.

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

Constructor Detail

ShouldNotBeback to summary
private ShouldNotBe(Object actual, Condition<?> condition)

Method Detail

shouldNotBeback to summary
public static <T> ErrorMessageFactory shouldNotBe(T actual, Condition<? super T> condition)

Creates a new ShouldNotBe.

Parameters
<T>
guarantees that the type of the actual value and the generic type of the Condition are the same.
actual:T

the actual value in the failed assertion.

condition:Condition<? super T>

the Condition.

Returns:ErrorMessageFactory

the created ErrorMessageFactory.