Class ArrayComparisonFailure

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.util.List<java.lang.Integer> fIndices  
      private java.lang.String fMessage  
      private static long serialVersionUID  
    • Constructor Summary

      Constructors 
      Constructor Description
      ArrayComparisonFailure​(java.lang.String message, java.lang.AssertionError cause, int index)
      Construct a new ArrayComparisonFailure with an error text and the array's dimension that was not equal
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addDimension​(int index)  
      java.lang.String getMessage()  
      java.lang.String toString()
      • Methods inherited from class java.lang.Throwable

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

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

      • fIndices

        private final java.util.List<java.lang.Integer> fIndices
      • fMessage

        private final java.lang.String fMessage
    • Constructor Detail

      • ArrayComparisonFailure

        public ArrayComparisonFailure​(java.lang.String message,
                                      java.lang.AssertionError cause,
                                      int index)
        Construct a new ArrayComparisonFailure with an error text and the array's dimension that was not equal
        Parameters:
        cause - the exception that caused the array's content to fail the assertion test
        index - the array position of the objects that are not equal.
        See Also:
        Assert.assertArrayEquals(String, Object[], Object[])
    • Method Detail

      • addDimension

        public void addDimension​(int index)
      • getMessage

        public java.lang.String getMessage()
        Overrides:
        getMessage in class java.lang.Throwable
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Throwable