Package org.assertj.core.error
Class ShouldNotHaveSameClass
java.lang.Object
org.assertj.core.error.BasicErrorMessageFactory
org.assertj.core.error.ShouldNotHaveSameClass
- All Implemented Interfaces:
ErrorMessageFactory
Creates an error message indicating that an assertion that verifies that an object has 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 ErrorMessageFactoryshouldNotHaveSameClass(Object actual, Object other) Creates a new.ShouldNotHaveSameClassMethods inherited from class org.assertj.core.error.BasicErrorMessageFactory
create, create, create, equals, hashCode, toString, unquotedString
-
Method Details
-
shouldNotHaveSameClass
Creates a new.ShouldNotHaveSameClass- Parameters:
actual- the actual value in the failed assertion.other- the typeactualis expected to be.- Returns:
- the created
ErrorMessageFactory.
-