org.jdiagnose
Class Assert

java.lang.Object
  extended byorg.jdiagnose.Assert

public class Assert
extends java.lang.Object

Author:
jmccrindle

Field Summary
static java.lang.String DEFAULT_MESSAGE
           
 
Method Summary
static void assertEquals(java.lang.Object toTestAgainst, java.lang.Object test)
          Assert that two objects are equal
static void assertEquals(java.lang.String msg, java.lang.Object toTestAgainst, java.lang.Object test)
          Assert that two objects are equal
static void assertNotNull(java.lang.Object test)
          Assert that an object is not null
static void assertNotNull(java.lang.String msg, java.lang.Object test)
          Assert that an object is not null
static void assertNull(java.lang.Object test)
          Assert that an object is null
static void assertNull(java.lang.String msg, java.lang.Object test)
          Assert that an object is null
static void assertTrue(boolean test)
          Assert that a test is true
static void assertTrue(java.lang.String msg, boolean test)
          Assert that a test is true
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_MESSAGE

public static final java.lang.String DEFAULT_MESSAGE
See Also:
Constant Field Values
Method Detail

assertTrue

public static void assertTrue(java.lang.String msg,
                              boolean test)
Assert that a test is true

Parameters:
msg - a message if the assertion if false
test - the test to test

assertTrue

public static void assertTrue(boolean test)
Assert that a test is true

Parameters:
test - the test to test

assertEquals

public static void assertEquals(java.lang.String msg,
                                java.lang.Object toTestAgainst,
                                java.lang.Object test)
Assert that two objects are equal

Parameters:
msg - a message if the assertion if false
toTestAgainst - the object to test against
test - the test object

assertEquals

public static void assertEquals(java.lang.Object toTestAgainst,
                                java.lang.Object test)
Assert that two objects are equal

Parameters:
toTestAgainst - the object to test against
test - the test object

assertNull

public static void assertNull(java.lang.String msg,
                              java.lang.Object test)
Assert that an object is null

Parameters:
msg - a message if the assertion if false
test - the test object

assertNull

public static void assertNull(java.lang.Object test)
Assert that an object is null

Parameters:
test - the test object

assertNotNull

public static void assertNotNull(java.lang.String msg,
                                 java.lang.Object test)
Assert that an object is not null

Parameters:
msg - a message if the assertion if false
test - the test object

assertNotNull

public static void assertNotNull(java.lang.Object test)
Assert that an object is not null

Parameters:
test - the test object


Copyright © 2004-2005 Grape Design Limited. All Rights Reserved.