Class AbstractArraySubject

    • Field Detail

      • actual

        private final java.lang.Object actual
    • Constructor Detail

      • AbstractArraySubject

        AbstractArraySubject​(FailureMetadata metadata,
                             java.lang.Object actual,
                             java.lang.String typeDescription)
    • Method Detail

      • isEmpty

        public final void isEmpty()
        Fails if the array is not empty (i.e. array.length > 0).
      • isNotEmpty

        public final void isNotEmpty()
        Fails if the array is empty (i.e. array.length == 0).
      • hasLength

        public final void hasLength​(int length)
        Fails if the array does not have the given length.
        Throws:
        java.lang.IllegalArgumentException - if length < 0
      • length

        private int length()