Class FailureReporter

java.lang.Object
com.shaft.tools.io.internal.FailureReporter

public class FailureReporter extends Object
  • Constructor Details

    • FailureReporter

      public FailureReporter()
  • Method Details

    • fail

      public static void fail(Class<?> failedFileManager, String message, Throwable throwable)
    • fail

      public static void fail(String message)
    • failAssertion

      public static void failAssertion(String message)
      Reports a failed assertion checkpoint and throws an AssertionError so test runners classify it as a test failure rather than an execution error. Use this for assertion outcomes; use fail(String) for execution failures — the exception type is never inferred from the message text.
      Parameters:
      message - the assertion failure message
    • getRootCause

      public static String getRootCause(Throwable throwable)