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

    • assertNotNull

      public static void assertNotNull(Object object, String message)
      Asserts that value is NOT NULL and logs the result.
      Parameters:
      object - the object 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