Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Must be able to say with(anyOf(... and with(aNonNullOf(... #4

Open
dfurodet opened this Issue · 0 comments

1 participant

@dfurodet
Owner

In Lmock, anyOf(class) and aNonNullOf(class) express "with any argument of class" and "with any non null argument of class".
This is pretty confusing for JMock users who regularly make the mistake of saying with(anyOf(class)) and with(aNonNullOf(class)).
The resulting behavior is not that clear, even considering the warnings in the documentation.
So Lmock should either be able to include those clauses within a with clause or to raise an explicit error if such pattern appears.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.