Package org.fest.assertions.error
Class ShouldHaveSameClass
java.lang.Object
org.fest.assertions.error.BasicErrorMessageFactory
org.fest.assertions.error.ShouldHaveSameClass
- All Implemented Interfaces:
ErrorMessageFactory
Creates an error message indicating that an assertion that verifies that an object have same class as another instance failed.
- Author:
- Nicolas François
-
Field Summary
Fields inherited from class org.fest.assertions.error.BasicErrorMessageFactory
arguments, format
-
Method Summary
Modifier and TypeMethodDescriptionstatic ErrorMessageFactory
shouldHaveSameClass
(Object actual, Object other) Creates a newShouldHaveSameClass
.Methods inherited from class org.fest.assertions.error.BasicErrorMessageFactory
create, equals, hashCode, toString
-
Method Details
-
shouldHaveSameClass
Creates a newShouldHaveSameClass
.- Parameters:
actual
- the actual value in the failed assertion.other
- the typeactual
is expected to be.- Returns:
- the created
ErrorMessageFactory
.
-