RichardWarburton/lambda-behave

ArrayExpectation.never() is broken

Opened this issue · 0 comments

The current implementation of ArrayExpectation.never does nothing, creating a new BoundExpectation object that is immediately discarded and returning this unchanged. Because of this, the expectation conditions are not reversed.

The proper implementation should presumably be

return new ArrayExpectation<>(objectUnderTest, !positive);