Class AssertionErrors

java.lang.Object
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 Details

    • 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