JUnit-addons
version 1.4

junitx.framework
Class ComparableAssert

java.lang.Object
  |
  +--junitx.framework.ComparableAssert

public class ComparableAssert
extends java.lang.Object

A set of assert methods specially targetted to comparable objects.

Version:
$Revision: 1.6 $ $Date: 2003/03/23 01:25:24 $
Author:
Vladimir R. Bossicard

Method Summary
static void assertEquals(java.lang.Comparable expected, java.lang.Comparable actual)
          Asserts that the expected and actual are equals (comparables).
static void assertEquals(java.lang.String message, java.lang.Comparable expected, java.lang.Comparable actual)
          Asserts that the expected and actual are equals (comparables).
static void assertGreater(java.lang.Comparable limit, java.lang.Comparable actual)
          Asserts that the actual object is greater than the limit object.
static void assertGreater(java.lang.String message, java.lang.Comparable limit, java.lang.Comparable actual)
          Asserts that the actual object is greater than the limit object.
static void assertLesser(java.lang.Comparable limit, java.lang.Comparable actual)
          Asserts that the actual object is lesser than the limit object.
static void assertLesser(java.lang.String message, java.lang.Comparable limit, java.lang.Comparable actual)
          Asserts that the actual object is lesser than the limit object.
static void assertNotEquals(java.lang.Comparable expected, java.lang.Comparable actual)
          Asserts that the expected and actual are not equals (comparables).
static void assertNotEquals(java.lang.String message, java.lang.Comparable expected, java.lang.Comparable actual)
          Asserts that the expected and actual are not equals (comparables).
static void assertNotGreater(java.lang.Comparable limit, java.lang.Comparable actual)
          Asserts that the actual object is not greater than the limit object.
static void assertNotGreater(java.lang.String message, java.lang.Comparable limit, java.lang.Comparable actual)
          Asserts that the actual object is not greater than the limit object.
static void assertNotLesser(java.lang.Comparable limit, java.lang.Comparable actual)
          Asserts that the actual object is not lesser than the limit object.
static void assertNotLesser(java.lang.String message, java.lang.Comparable limit, java.lang.Comparable actual)
          Asserts that the actual object is not lesser than the limit object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

assertLesser

public static void assertLesser(java.lang.String message,
                                java.lang.Comparable limit,
                                java.lang.Comparable actual)
Asserts that the actual object is lesser than the limit object. Throws an AssertionFailedError if it is greater or equal.


assertLesser

public static void assertLesser(java.lang.Comparable limit,
                                java.lang.Comparable actual)
Asserts that the actual object is lesser than the limit object. Throws an AssertionFailedError if it is greater or equal.


assertNotLesser

public static void assertNotLesser(java.lang.String message,
                                   java.lang.Comparable limit,
                                   java.lang.Comparable actual)
Asserts that the actual object is not lesser than the limit object. Throws an AssertionFailedError if it is lesser.


assertNotLesser

public static void assertNotLesser(java.lang.Comparable limit,
                                   java.lang.Comparable actual)
Asserts that the actual object is not lesser than the limit object. Throws an AssertionFailedError if it is lesser.


assertEquals

public static void assertEquals(java.lang.String message,
                                java.lang.Comparable expected,
                                java.lang.Comparable actual)
Asserts that the expected and actual are equals (comparables). Throws an AssertionFailedError if it is lesser or equal.


assertEquals

public static void assertEquals(java.lang.Comparable expected,
                                java.lang.Comparable actual)
Asserts that the expected and actual are equals (comparables). Throws an AssertionFailedError if it is lesser or equal.


assertNotEquals

public static void assertNotEquals(java.lang.String message,
                                   java.lang.Comparable expected,
                                   java.lang.Comparable actual)
Asserts that the expected and actual are not equals (comparables). Throws an AssertionFailedError if it is lesser or equal.


assertNotEquals

public static void assertNotEquals(java.lang.Comparable expected,
                                   java.lang.Comparable actual)
Asserts that the expected and actual are not equals (comparables). Throws an AssertionFailedError if it is lesser or equal.


assertGreater

public static void assertGreater(java.lang.String message,
                                 java.lang.Comparable limit,
                                 java.lang.Comparable actual)
Asserts that the actual object is greater than the limit object. Throws an AssertionFailedError if it is lesser or equal.


assertGreater

public static void assertGreater(java.lang.Comparable limit,
                                 java.lang.Comparable actual)
Asserts that the actual object is greater than the limit object. Throws an AssertionFailedError if it is lesser or equal.


assertNotGreater

public static void assertNotGreater(java.lang.String message,
                                    java.lang.Comparable limit,
                                    java.lang.Comparable actual)
Asserts that the actual object is not greater than the limit object. Throws an AssertionFailedError if it is greater.


assertNotGreater

public static void assertNotGreater(java.lang.Comparable limit,
                                    java.lang.Comparable actual)
Asserts that the actual object is not greater than the limit object. Throws an AssertionFailedError if it is greater.


JUnit-addons
version 1.4

Copyright © 2002-2003 Vladimir R. Bossicard. All Rights Reserved.