Class ShouldHaveSuppressedException

  • All Implemented Interfaces:
    ErrorMessageFactory

    public class ShouldHaveSuppressedException
    extends BasicErrorMessageFactory
    Creates an error message indicating that an assertion that verifies that a Throwable has a given suppressed exception failed.
    • Constructor Detail

      • ShouldHaveSuppressedException

        private ShouldHaveSuppressedException​(java.lang.Throwable actual,
                                              java.lang.Throwable expectedSuppressedException)
    • Method Detail

      • shouldHaveSuppressedException

        public static ErrorMessageFactory shouldHaveSuppressedException​(java.lang.Throwable actual,
                                                                        java.lang.Throwable expectedSuppressedException)
        Parameters:
        actual - the throwable to check suppressed exceptions.
        expectedSuppressedException - the expected suppressed exception.
        Returns:
        the created ErrorMessageFactory.