Class ScopeTestHelper

java.lang.Object
com.espertech.esper.common.client.scopetest.ScopeTestHelper

public class ScopeTestHelper extends Object
Helper for asserting conditions.
  • Constructor Details

    • ScopeTestHelper

      public ScopeTestHelper()
  • Method Details

    • assertFalse

      public static void assertFalse(boolean condition)
      Assert a condition is false.
      Parameters:
      condition - to assert
    • assertTrue

      public static void assertTrue(boolean condition)
      Assert a condition is true.
      Parameters:
      condition - to assert
    • assertTrue

      public static void assertTrue(String message, boolean condition)
      Assert a condition is true.
      Parameters:
      message - an optional message
      condition - to assert
    • assertFalse

      public static void assertFalse(String message, boolean condition)
      Assert a condition is false.
      Parameters:
      message - an optional message
      condition - to assert
    • assertEquals

      public static void assertEquals(String message, Object expected, Object actual)
      Assert that two values equal.
      Parameters:
      message - an optional message
      expected - expected value
      actual - actual value
    • assertEquals

      public static void assertEquals(Object expected, Object actual)
      Assert that two values equal.
      Parameters:
      expected - expected value
      actual - actual value
    • fail

      public static void fail()
      Fail assertion.
    • assertSame

      public static void assertSame(String message, Object expected, Object actual)
      Assert that two values are the same.
      Parameters:
      message - an optional message
      expected - expected value
      actual - actual value
    • assertSame

      public static void assertSame(Object expected, Object actual)
      Assert that two values are the same.
      Parameters:
      expected - expected value
      actual - actual value
    • assertNull

      public static void assertNull(String message, Object object)
      Assert that a value is null.
      Parameters:
      message - an optional message
      object - the object to check
    • assertNotNull

      public static void assertNotNull(Object object)
      Assert that a value is not null.
      Parameters:
      object - the object to check
    • assertNotNull

      public static void assertNotNull(String message, Object object)
      Assert that a value is not null.
      Parameters:
      object - the object to check
      message - message
    • assertNull

      public static void assertNull(Object object)
      Assert that a value is null.
      Parameters:
      object - the object to check
    • failNotSame

      public static void failNotSame(String message, Object expected, Object actual)
      Fail assertion formatting a message for not-same.
      Parameters:
      message - an optional message
      expected - expected value
      actual - actual value
    • failNotEquals

      public static void failNotEquals(String message, Object expected, Object actual)
      Fail assertion formatting a message for not-equals.
      Parameters:
      message - an optional message
      expected - expected value
      actual - actual value
    • fail

      public static void fail(String message)
      Fail assertion.
      Parameters:
      message - an optional message