JUnit-addons
version 1.4

junitx.framework
Class ObjectAssert

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

public class ObjectAssert
extends java.lang.Object

A set of assert methods specially targetted to asserting objects.

Version:
$Revision: 1.7 $ $Date: 2003/04/27 02:14:33 $
Author:
Vladimir R. Bossicard

Method Summary
static void assertInstanceOf(java.lang.Class expected, java.lang.Object actual)
          Asserts that an object is an instance of a class.
static void assertInstanceOf(java.lang.String message, java.lang.Class expected, java.lang.Object actual)
          Asserts that an object is an instance of a class.
static void assertNotInstanceOf(java.lang.Class expected, java.lang.Object actual)
          Asserts that an object is not an instance of a class.
static void assertNotInstanceOf(java.lang.String message, java.lang.Class expected, java.lang.Object actual)
          Asserts that an object is not an instance of a class.
static void assertNotSame(java.lang.Object expected, java.lang.Object actual)
          Asserts that an object are not the same.
static void assertNotSame(java.lang.String message, java.lang.Object expected, java.lang.Object actual)
          Asserts that an object are not the same.
static void assertSame(java.lang.Object expected, java.lang.Object actual)
          Asserts that an object are the same.
static void assertSame(java.lang.String message, java.lang.Object expected, java.lang.Object actual)
          Asserts that an object are the same.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

assertInstanceOf

public static void assertInstanceOf(java.lang.String message,
                                    java.lang.Class expected,
                                    java.lang.Object actual)
Asserts that an object is an instance of a class. Throws an AssertionFailedError if it is not an instance of that class.


assertInstanceOf

public static void assertInstanceOf(java.lang.Class expected,
                                    java.lang.Object actual)
Asserts that an object is an instance of a class. Throws an AssertionFailedError if it is not an instance of that class.


assertNotInstanceOf

public static void assertNotInstanceOf(java.lang.String message,
                                       java.lang.Class expected,
                                       java.lang.Object actual)
Asserts that an object is not an instance of a class. Throws an AssertionFailedError if it is an instance of that class.


assertNotInstanceOf

public static void assertNotInstanceOf(java.lang.Class expected,
                                       java.lang.Object actual)
Asserts that an object is not an instance of a class. Throws an AssertionFailedError if it is an instance of that class.


assertSame

public static void assertSame(java.lang.Object expected,
                              java.lang.Object actual)
Asserts that an object are the same. Throws an AssertionFailedError if they are not (including the objects' values).


assertSame

public static void assertSame(java.lang.String message,
                              java.lang.Object expected,
                              java.lang.Object actual)
Asserts that an object are the same. Throws an AssertionFailedError if they are not (including the objects' values).


assertNotSame

public static void assertNotSame(java.lang.Object expected,
                                 java.lang.Object actual)
Asserts that an object are not the same. Throws an AssertionFailedError if they are.


assertNotSame

public static void assertNotSame(java.lang.String message,
                                 java.lang.Object expected,
                                 java.lang.Object actual)
Asserts that an object are not the same. Throws an AssertionFailedError if they are.


JUnit-addons
version 1.4

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