Package org.fest.assertions.error
Class ShouldHaveSameClass
- java.lang.Object
-
- org.fest.assertions.error.BasicErrorMessageFactory
-
- org.fest.assertions.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.fest.assertions.error.BasicErrorMessageFactory
arguments, format
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ErrorMessageFactory
shouldHaveSameClass(java.lang.Object actual, java.lang.Object other)
Creates a newShouldHaveSameClass
.-
Methods inherited from class org.fest.assertions.error.BasicErrorMessageFactory
create, equals, hashCode, toString
-
-
-
-
Method Detail
-
shouldHaveSameClass
public static ErrorMessageFactory shouldHaveSameClass(java.lang.Object actual, java.lang.Object other)
Creates a newShouldHaveSameClass
.- Parameters:
actual
- the actual value in the failed assertion.other
- the typeactual
is expected to be.- Returns:
- the created
ErrorMessageFactory
.
-
-