Package org.assertj.core.error
Class ShouldBeNumeric
java.lang.Object
org.assertj.core.error.BasicErrorMessageFactory
org.assertj.core.error.ShouldBeNumeric
- All Implemented Interfaces:
ErrorMessageFactory
Creates an error message that indicates an assertion that cast string
to a number (byte, short, integer, long, float or double) failed.
- Author:
- hezean
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from class org.assertj.core.error.BasicErrorMessageFactory
arguments, format -
Method Summary
Modifier and TypeMethodDescriptionstatic ErrorMessageFactoryshouldBeNumeric(String actual, ShouldBeNumeric.NumericType type) Creates a new.ShouldBeNumericMethods inherited from class org.assertj.core.error.BasicErrorMessageFactory
create, create, create, equals, hashCode, toString, unquotedString
-
Method Details
-
shouldBeNumeric
Creates a new.ShouldBeNumeric- Parameters:
actual- the actual value in the failed assertion.type- the type expected to cast.- Returns:
- the created
ErrorMessageFactory.
-