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
-
Field Summary
Fields inherited from class org.assertj.core.error.BasicErrorMessageFactory
arguments, format
-
Method Summary
Modifier and TypeMethodDescriptionstatic ErrorMessageFactory
shouldBeNumeric
(String actual, ShouldBeNumeric.NumericType type) Creates a new
.ShouldBeNumeric
Methods 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
.
-