Class ShouldHaveNoCause

  • All Implemented Interfaces:
    ErrorMessageFactory

    public class ShouldHaveNoCause
    extends BasicErrorMessageFactory
    Creates an error message indicating that an assertion that verifies that an Throwable has no cause failed.
    Author:
    Joel Costigliola
    • Method Detail

      • shouldHaveNoCause

        public static ErrorMessageFactory shouldHaveNoCause​(java.lang.Throwable actual)
        Creates a new ShouldHaveNoCause.
        Parameters:
        actual - the actual value in the failed assertion.
        Returns:
        the created ErrorMessageFactory.