org.springframework.social.test.client
Class AssertionErrors

java.lang.Object
  extended by org.springframework.social.test.client.AssertionErrors

public abstract class AssertionErrors
extends java.lang.Object

JUnit independent assertion class.


Method Summary
static void assertEquals(java.lang.String message, java.lang.Object expected, java.lang.Object actual)
          Asserts that two objects are equal.
static void assertTrue(java.lang.String message, boolean condition)
          Asserts that a condition is true.
static void fail(java.lang.String message)
          Fails a test with the given message.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

fail

public static void fail(java.lang.String message)
Fails a test with the given message.

Parameters:
message - the message

assertTrue

public static void assertTrue(java.lang.String message,
                              boolean condition)
Asserts that a condition is true. If not, throws an AssertionError with the given message.

Parameters:
message - the message
condition - the condition to test for

assertEquals

public static void assertEquals(java.lang.String message,
                                java.lang.Object expected,
                                java.lang.Object actual)
Asserts that two objects are equal. If not, an AssertionError is thrown with the given message.

Parameters:
message - the message
expected - the expected value
actual - the actual value