Class AbstractArraySubject<S extends AbstractArraySubject<S,​T>,​T>

    • Constructor Detail

      • AbstractArraySubject

        AbstractArraySubject​(FailureStrategy failureStrategy,
                             T subject)
    • Method Detail

      • isEmpty

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

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

        public void hasLength​(int length)
        Fails if the array does not have the given length.
      • underlyingType

        abstract java.lang.String underlyingType()
      • listRepresentation

        abstract java.util.List<?> listRepresentation()
      • failWithBadType

        void failWithBadType​(java.lang.Object expected)