Class AssertionFailureFormatter
java.lang.Object
com.shaft.validation.internal.AssertionFailureFormatter
Formats assertion failures with a clickable Java stack-trace line.
-
Method Summary
Modifier and TypeMethodDescriptionstatic StringformatFailureWithStackTrace(AssertionError ex, String rootPackage) Gets the formatted failure message with clickable stack trace for a given AssertionError.
-
Method Details
-
formatFailureWithStackTrace
Gets the formatted failure message with clickable stack trace for a given AssertionError.- Parameters:
ex- The AssertionError to formatrootPackage- The root package name to filter stack trace elements- Returns:
- Formatted failure message with clickable stack trace, or null if no matching stack element found
-