Class Characters


  • public class Characters
    extends Comparables
    Reusable assertions for Characters.
    Author:
    Alex Ruiz, Joel Costigliola
    • 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 is null.
        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 is null.
        java.lang.AssertionError - if the actual value is not a uppercase character.