Package testUtils

Class Assertion

java.lang.Object
testUtils.Assertion

public class Assertion extends Object
Utility class for assertions with logging using Log4j2.
  • Constructor Details

    • Assertion

      public Assertion()
  • Method Details

    • assertTrue

      public static void assertTrue(boolean condition, String message)
      Asserts that a condition is true and logs the result.
      Parameters:
      condition - the condition to check
      message - the assertion message
    • assertEquals

      public static <T> void assertEquals(T actual, T expected, String message)
      Asserts that two values are equal and logs the result.
      Type Parameters:
      T - the type of the values
      Parameters:
      actual - the actual value
      expected - the expected value
      message - the assertion message