ArrayExpectation.never() is broken
Opened this issue · 0 comments
Maia-Everett commented
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);