Skip to content

Conversation

@DarrenBishop
Copy link
Contributor

Implemented a number of negative-tests, mainly to verify useful failure information is provided.

I thought it would be useful to report as many failures as possible for any given run, in the hope that feedback about more things results in less wasted developer time.

I used MockitoAssertionError to compose failure feedback for both size and content failures; I did experiment exception suppression, but it seems that suppressed AssertionErrors do not get any special treatment/representation in ScalaTest.

@ultrasecreth
Copy link
Member

Nice!

Merge pending #324

@ultrasecreth
Copy link
Member

@DarrenBishop mind rebasing on release/1.x so the build runs on the PR?

@ultrasecreth
Copy link
Member

@DarrenBishop mind rebasing on release/1.x so the build runs on the PR?

@DarrenBishop ?

@DarrenBishop
Copy link
Contributor Author

@bbonanno sorry just noticed this... will do

…ectations vs the number of captured values
@DarrenBishop DarrenBishop force-pushed the Enable_Captor_hasCaptured_to_check_number_of_captures_vs_expectations branch from 394013b to 6da4413 Compare February 10, 2021 09:56
@ultrasecreth ultrasecreth merged commit ba7bf52 into mockito:release/1.x Feb 10, 2021
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.

2 participants