JUnit-addons
version 1.4

junitx.framework
Class ListAssert

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

public class ListAssert
extends java.lang.Object

A set of assert methods specially targetted to asserting Lists.

Version:
$Revision: 1.1 $ $Date: 2003/04/28 03:08:17 $
Author:
Vladimir R. Bossicard

Method Summary
static void assertContains(java.util.List actual, java.lang.Object value)
          Asserts that a list contains a given object.
static void assertContains(java.lang.String message, java.util.List actual, java.lang.Object value)
          Asserts that a list contains a given object.
static void assertEquals(java.util.List expected, java.util.List actual)
          Asserts that two lists are equal (the order is not relevant).
static void assertEquals(java.lang.String message, java.util.List expected, java.util.List actual)
          Asserts that two lists are equal (the order is not relevant).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

assertEquals

public static void assertEquals(java.util.List expected,
                                java.util.List actual)
Asserts that two lists are equal (the order is not relevant). Throws an AssertionFailedError if not.


assertEquals

public static void assertEquals(java.lang.String message,
                                java.util.List expected,
                                java.util.List actual)
Asserts that two lists are equal (the order is not relevant). Throws an AssertionFailedError if not.


assertContains

public static void assertContains(java.util.List actual,
                                  java.lang.Object value)
Asserts that a list contains a given object. Throws an AssertionFailedError if it doesn't contain the object.


assertContains

public static void assertContains(java.lang.String message,
                                  java.util.List actual,
                                  java.lang.Object value)
Asserts that a list contains a given object. Throws an AssertionFailedError if it doesn't contain the object.


JUnit-addons
version 1.4

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