Package org.fest.assertions.error
Class ShouldNotBeInstanceOfAny
- java.lang.Object
-
- org.fest.assertions.error.BasicErrorMessageFactory
-
- org.fest.assertions.error.ShouldNotBeInstanceOfAny
-
- All Implemented Interfaces:
ErrorMessageFactory
public class ShouldNotBeInstanceOfAny extends BasicErrorMessageFactory
Creates an error message indicating that an assertion that verifies that an object is not an instance of one or more types 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
shouldNotBeInstanceOfAny(java.lang.Object actual, java.lang.Class<?>[] types)
Creates a newShouldNotBeInstanceOfAny
.-
Methods inherited from class org.fest.assertions.error.BasicErrorMessageFactory
create, equals, hashCode, toString
-
-
-
-
Method Detail
-
shouldNotBeInstanceOfAny
public static ErrorMessageFactory shouldNotBeInstanceOfAny(java.lang.Object actual, java.lang.Class<?>[] types)
Creates a newShouldNotBeInstanceOfAny
.- Parameters:
actual
- the actual value in the failed assertion.types
- contains the type or typesactual
is expected to belong to.- Returns:
- the created
ErrorMessageFactory
.
-
-