Package org.assertj.core.error
Class ShouldNotBe
java.lang.Object
org.assertj.core.error.BasicErrorMessageFactory
org.assertj.core.error.ShouldNotBe
- All Implemented Interfaces:
ErrorMessageFactory
Creates an error message indicating that an assertion that verifies that a value does not satisfy a
Condition failed.- Author:
- Yvonne Wang, Mikhail Mazursky
-
Field Summary
Fields inherited from class org.assertj.core.error.BasicErrorMessageFactory
arguments, format -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> ErrorMessageFactoryshouldNotBe(T actual, Condition<? super T> condition) Creates a new.ShouldNotBeMethods inherited from class org.assertj.core.error.BasicErrorMessageFactory
create, create, create, equals, hashCode, toString, unquotedString
-
Method Details
-
shouldNotBe
Creates a new.ShouldNotBe- Type Parameters:
T- guarantees that the type of the actual value and the generic type of theConditionare the same.- Parameters:
actual- the actual value in the failed assertion.condition- theCondition.- Returns:
- the created
ErrorMessageFactory.
-