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.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from class org.assertj.core.error.BasicErrorMessageFactory
arguments, format, formatter
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
ShouldBeNumeric
(String actual, ShouldBeNumeric.NumericType type) -
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
-
Constructor Details
-
ShouldBeNumeric
-
-
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
.
-