Package org.fest.assertions.internal
Class Characters
- java.lang.Object
-
- org.fest.assertions.internal.Comparables
-
- org.fest.assertions.internal.Characters
-
public class Characters extends Comparables
Reusable assertions for
s.Character
- Author:
- Alex Ruiz, Joel Costigliola
-
-
Constructor Summary
Constructors Constructor Description Characters(ComparisonStrategy comparisonStrategy)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
assertLowerCase(AssertionInfo info, java.lang.Character actual)
Asserts that the actual value is a lowercase character.void
assertUpperCase(AssertionInfo info, java.lang.Character actual)
Asserts that the actual value is a uppercase character.static Characters
instance()
Returns the singleton instance of this class.-
Methods inherited from class org.fest.assertions.internal.Comparables
areEqual, assertEqual, assertEqualByComparison, assertGreaterThan, assertGreaterThanOrEqualTo, assertLessThan, assertLessThanOrEqualTo, assertNotEqual, assertNotEqualByComparison, assertNotNull, getComparator
-
-
-
-
Constructor Detail
-
Characters
public Characters(ComparisonStrategy comparisonStrategy)
-
-
Method Detail
-
instance
public static Characters instance()
Returns the singleton instance of this class.- Returns:
- the singleton instance of this class.
-
assertLowerCase
public void assertLowerCase(AssertionInfo info, java.lang.Character actual)
Asserts that the actual value is a lowercase character.- Parameters:
info
- contains information about the assertion.actual
- the actual value.- Throws:
java.lang.AssertionError
- if the actual value isnull
.java.lang.AssertionError
- if the actual value is not a lowercase character.
-
assertUpperCase
public void assertUpperCase(AssertionInfo info, java.lang.Character actual)
Asserts that the actual value is a uppercase character.- Parameters:
info
- contains information about the assertion.actual
- the actual value.- Throws:
java.lang.AssertionError
- if the actual value isnull
.java.lang.AssertionError
- if the actual value is not a uppercase character.
-
-