Package org.assertj.core.error
Class ShouldBeNumeric
- java.lang.Object
-
- org.assertj.core.error.BasicErrorMessageFactory
-
- org.assertj.core.error.ShouldBeNumeric
-
- All Implemented Interfaces:
ErrorMessageFactory
public class ShouldBeNumeric extends BasicErrorMessageFactory
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 Modifier and Type Class Description static class
ShouldBeNumeric.NumericType
-
Field Summary
-
Fields inherited from class org.assertj.core.error.BasicErrorMessageFactory
arguments, format, formatter
-
-
Constructor Summary
Constructors Modifier Constructor Description private
ShouldBeNumeric(java.lang.String actual, ShouldBeNumeric.NumericType type)
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ErrorMessageFactory
shouldBeNumeric(java.lang.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 Detail
-
ShouldBeNumeric
private ShouldBeNumeric(java.lang.String actual, ShouldBeNumeric.NumericType type)
-
-
Method Detail
-
shouldBeNumeric
public static ErrorMessageFactory shouldBeNumeric(java.lang.String actual, ShouldBeNumeric.NumericType type)
Creates a new
.ShouldBeNumeric
- Parameters:
actual
- the actual value in the failed assertion.type
- the type expected to cast.- Returns:
- the created
ErrorMessageFactory
.
-
-