Package org.assertj.core.error
Class ShouldHaveSameClass
- java.lang.Object
-
- org.assertj.core.error.BasicErrorMessageFactory
-
- org.assertj.core.error.ShouldHaveSameClass
-
- All Implemented Interfaces:
ErrorMessageFactory
public class ShouldHaveSameClass extends BasicErrorMessageFactory
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, formatter
-
-
Constructor Summary
Constructors Modifier Constructor Description privateShouldHaveSameClass(Object actual, Object other)
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ErrorMessageFactoryshouldHaveSameClass(Object actual, Object other)Creates a new.ShouldHaveSameClass-
Methods inherited from class org.assertj.core.error.BasicErrorMessageFactory
create, create, create, equals, hashCode, toString, unquotedString
-
-
-
-
Method Detail
-
shouldHaveSameClass
public static ErrorMessageFactory shouldHaveSameClass(Object actual, Object other)
Creates a new.ShouldHaveSameClass- Parameters:
actual- the actual value in the failed assertion.other- the typeactualis expected to be.- Returns:
- the created
ErrorMessageFactory.
-
-