Class AssertJMultipleFailuresError

  • All Implemented Interfaces:
    java.io.Serializable

    public class AssertJMultipleFailuresError
    extends org.opentest4j.MultipleFailuresError
    AssertJ version of MultipleFailuresError to get more control on the error formatting.
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private static java.lang.String EOL  
      private static java.lang.String ERROR_SEPARATOR  
      private java.lang.String heading  
      private static long serialVersionUID  
    • Constructor Summary

      Constructors 
      Constructor Description
      AssertJMultipleFailuresError​(java.lang.String heading, java.util.List<? extends java.lang.Throwable> failures)  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      private java.lang.String errorSeparator​(int errorNumber)  
      java.lang.String getMessage()  
      private boolean hasDescription​(java.lang.String message)  
      private static boolean isBlank​(java.lang.String str)  
      private static java.lang.String nullSafeMessage​(java.lang.Throwable failure)  
      private static java.lang.String pluralize​(int count, java.lang.String singular, java.lang.String plural)  
      • Methods inherited from class org.opentest4j.MultipleFailuresError

        getFailures, hasFailures
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • EOL

        private static final java.lang.String EOL
      • ERROR_SEPARATOR

        private static final java.lang.String ERROR_SEPARATOR
      • heading

        private java.lang.String heading
    • Constructor Detail

      • AssertJMultipleFailuresError

        public AssertJMultipleFailuresError​(java.lang.String heading,
                                            java.util.List<? extends java.lang.Throwable> failures)
    • Method Detail

      • getMessage

        public java.lang.String getMessage()
        Overrides:
        getMessage in class org.opentest4j.MultipleFailuresError
      • errorSeparator

        private java.lang.String errorSeparator​(int errorNumber)
      • hasDescription

        private boolean hasDescription​(java.lang.String message)
      • isBlank

        private static boolean isBlank​(java.lang.String str)
      • pluralize

        private static java.lang.String pluralize​(int count,
                                                  java.lang.String singular,
                                                  java.lang.String plural)
      • nullSafeMessage

        private static java.lang.String nullSafeMessage​(java.lang.Throwable failure)