Package org.assertj.core.error
Class ShouldContainOnlyDigits
java.lang.Object
org.assertj.core.error.BasicErrorMessageFactory
org.assertj.core.error.ShouldContainOnlyDigits
- All Implemented Interfaces:
ErrorMessageFactory
Creates an error message indicating that an assertion that verifies a CharSequence contains only digits failed.
-
Field Summary
Fields inherited from class org.assertj.core.error.BasicErrorMessageFactory
arguments, format
-
Method Summary
Modifier and TypeMethodDescriptionstatic ErrorMessageFactory
shouldContainOnlyDigits
(CharSequence actual) Creates a new
.ShouldContainOnlyDigits
static ErrorMessageFactory
shouldContainOnlyDigits
(CharSequence actual, char character, int index) Creates a new
.ShouldContainOnlyDigits
Methods inherited from class org.assertj.core.error.BasicErrorMessageFactory
create, create, create, equals, hashCode, toString, unquotedString
-
Method Details
-
shouldContainOnlyDigits
public static ErrorMessageFactory shouldContainOnlyDigits(CharSequence actual, char character, int index) Creates a new
.ShouldContainOnlyDigits
- Parameters:
actual
- the actual value in the failed assertion.character
- first non-digit character found inactual
.index
- index of first non-digit character found inactual
.- Returns:
- the created
ErrorMessageFactory
.
-
shouldContainOnlyDigits
Creates a new
.ShouldContainOnlyDigits
- Parameters:
actual
- the actual value in the failed assertion.- Returns:
- the created
ErrorMessageFactory
.
-