Package org.fest.assertions.error
Class ShouldNotBeInstance
- java.lang.Object
-
- org.fest.assertions.error.BasicErrorMessageFactory
-
- org.fest.assertions.error.ShouldNotBeInstance
-
- All Implemented Interfaces:
ErrorMessageFactory
public class ShouldNotBeInstance extends BasicErrorMessageFactory
Creates an error message indicating that an assertion that verifies that an object is not an instance of some type failed.- Author:
- Nicolas François
-
-
Field Summary
-
Fields inherited from class org.fest.assertions.error.BasicErrorMessageFactory
arguments, format
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ErrorMessageFactory
shouldNotBeInstance(java.lang.Object actual, java.lang.Class<?> type)
Creates a newShouldNotBeInstance
.-
Methods inherited from class org.fest.assertions.error.BasicErrorMessageFactory
create, equals, hashCode, toString
-
-
-
-
Method Detail
-
shouldNotBeInstance
public static ErrorMessageFactory shouldNotBeInstance(java.lang.Object actual, java.lang.Class<?> type)
Creates a newShouldNotBeInstance
.- Parameters:
actual
- the actual value in the failed assertion.type
- the typeactual
is expected to belong to.- Returns:
- the created
ErrorMessageFactory
.
-
-