Package org.assertj.core.error
Class ShouldHaveSameClass
java.lang.Object
org.assertj.core.error.BasicErrorMessageFactory
org.assertj.core.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.assertj.core.error.BasicErrorMessageFactory
arguments, format -
Method Summary
Modifier and TypeMethodDescriptionstatic ErrorMessageFactoryshouldHaveSameClass(Object actual, Object other) Creates a new.ShouldHaveSameClassMethods inherited from class org.assertj.core.error.BasicErrorMessageFactory
create, create, create, equals, hashCode, toString, unquotedString
-
Method Details
-
shouldHaveSameClass
Creates a new.ShouldHaveSameClass- Parameters:
actual- the actual value in the failed assertion.other- the typeactualis expected to be.- Returns:
- the created
ErrorMessageFactory.
-