spat1978 / mockito

Automatically exported from code.google.com/p/mockito
0 stars 0 forks source link

passing custom failure message to Mockito.verify #482

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago

What steps will reproduce the problem?

1. I am looking for a way to pass a custom error message to Mockito.verify
2. For example, junit asserts always have an option message argument
3. http://junit.sourceforge.net/javadoc/org/junit/Assert.html

What is the expected output? What do you see instead?
Similar to junit asserts, it would be nice to have another verify method, which 
takes a message arg
 verify(T mock, VerificationMode mode)
 verify(String message, T mock, VerificationMode mode)

What version of the product are you using? On what operating system?
I am using 1.9.5 on mac

Please provide any additional information below.
a similar question on Stackoverflow 
http://stackoverflow.com/questions/4185282/is-there-a-way-of-having-something-li
ke-junit-assert-message-argument-in-mockito

Original issue reported on code.google.com by rajanika...@gmail.com on 1 Apr 2014 at 5:57

GoogleCodeExporter commented 8 years ago

Original comment by brice.du...@gmail.com on 21 Apr 2014 at 6:42

GoogleCodeExporter commented 8 years ago
Pull request has been issued: https://github.com/mockito/mockito/pull/68

Original comment by geoffsch...@gmail.com on 16 Sep 2014 at 2:37

GoogleCodeExporter commented 8 years ago
Managed in GitHub https://github.com/mockito/mockito/pull/68

Original comment by szcze...@gmail.com on 30 Sep 2014 at 6:22

GoogleCodeExporter commented 8 years ago

Original comment by szcze...@gmail.com on 30 Sep 2014 at 6:23