org.fest.assertions.internal
Class Characters

java.lang.Object
  extended by org.fest.assertions.internal.Comparables
      extended by org.fest.assertions.internal.Characters

public class Characters
extends Comparables

Reusable assertions for Characters.

Author:
Alex Ruiz, Joel Costigliola

Constructor Summary
Characters(org.fest.util.ComparisonStrategy comparisonStrategy)
           
 
Method Summary
 void assertLowerCase(AssertionInfo info, Character actual)
          Asserts that the actual value is a lowercase character.
 void assertUpperCase(AssertionInfo info, 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Characters

public Characters(org.fest.util.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,
                            Character actual)
Asserts that the actual value is a lowercase character.

Parameters:
info - contains information about the assertion.
actual - the actual value.
Throws:
AssertionError - if the actual value is null.
AssertionError - if the actual value is not a lowercase character.

assertUpperCase

public void assertUpperCase(AssertionInfo info,
                            Character actual)
Asserts that the actual value is a uppercase character.

Parameters:
info - contains information about the assertion.
actual - the actual value.
Throws:
AssertionError - if the actual value is null.
AssertionError - if the actual value is not a uppercase character.


Copyright © 2007-2012 FEST (Fixtures for Easy Software Testing). All Rights Reserved.