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 private
ShouldHaveSameClass(Object actual, Object other)
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ErrorMessageFactory
shouldHaveSameClass(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 typeactual
is expected to be.- Returns:
- the created
ErrorMessageFactory
.
-
-