Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve argument captors #91

Merged
merged 1 commit into from
Oct 13, 2016
Merged

Improve argument captors #91

merged 1 commit into from
Oct 13, 2016

Conversation

nhaarman
Copy link
Collaborator

Fixes #79.

The capture { } method's behavior did not match
the Java behavior.
For capturing single values, use one of the following:

  • argThat(T.() -> Boolean)
  • argForWhich(T.() -> Boolean)
  • check((T) -> Unit)

For capturing multiple values, use argumentCaptor() in
the traditional Java way.

The capture { } method's behavior did not match
the Java behavior.
For capturing single values, use one of the following:

 - argThat(T.() -> Boolean)
 - argForWhich(T.() -> Boolean)
 - check((T) -> Unit)

For capturing multiple values, use `argumentCaptor()` in
the traditional Java way.
@nhaarman nhaarman merged commit cd16b04 into dev Oct 13, 2016
@nhaarman nhaarman deleted the improve-captors branch October 13, 2016 13:32
@nhaarman nhaarman mentioned this pull request Oct 13, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant