Spring Web Services Framework

org.springframework.ws.test.support
Class AssertionErrors

java.lang.Object
  extended by org.springframework.ws.test.support.AssertionErrors

public abstract class AssertionErrors
extends Object

JUnit independent assertion class.

Since:
2.0
Author:
Lukas Krecan, Arjen Poutsma

Method Summary
static void assertEquals(String message, Object expected, Object actual)
          Asserts that two objects are equal.
static void assertEquals(String message, Object expected, Object actual, String sourceLabel, Source source)
          Asserts that two objects are equal.
static void assertTrue(String message, boolean condition)
          Asserts that a condition is true.
static void assertTrue(String message, boolean condition, String sourceLabel, Source source)
          Asserts that a condition is true.
static void fail(String message)
          Fails a test with the given message.
static void fail(String message, String sourceLabel, Source source)
          Fails a test with the given message and source.
 
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(String message)
Fails a test with the given message.

Parameters:
message - the message

fail

public static void fail(String message,
                        String sourceLabel,
                        Source source)
Fails a test with the given message and source.

Parameters:
message - the message
source - the source

assertTrue

public static void assertTrue(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

assertTrue

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

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

assertEquals

public static void assertEquals(String message,
                                Object expected,
                                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

assertEquals

public static void assertEquals(String message,
                                Object expected,
                                Object actual,
                                String sourceLabel,
                                Source source)
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
source - the source

Spring Web Services Framework

Copyright © 2005-2013 The Spring Web Services Framework. All Rights Reserved.