lambda-behave
lambda-behave copied to clipboard
ArrayExpectation.never() is broken
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);