org.assertj.core.error
Class ShouldNotBe
java.lang.Object
org.assertj.core.error.BasicErrorMessageFactory
org.assertj.core.error.ShouldNotBe
- All Implemented Interfaces:
- ErrorMessageFactory
public class ShouldNotBe
- extends BasicErrorMessageFactory
Creates an error message indicating that an assertion that verifies that a value does not satisfy a
Condition
failed.
- Author:
- Yvonne Wang, Mikhail Mazursky
shouldNotBe
public static <T> ErrorMessageFactory shouldNotBe(T actual,
Condition<? super T> condition)
- Creates a new
ShouldNotBe
.
- Type Parameters:
T
- guarantees that the type of the actual value and the generic type of the Condition
are the same.- Parameters:
actual
- the actual value in the failed assertion.condition
- the Condition
.
- Returns:
- the created
ErrorMessageFactory
.
Copyright © 2013–2015 AssertJ. All rights reserved.