passing custom failure message to Mockito.verify
GoogleCodeExporter opened this issue · 4 comments
GoogleCodeExporter commented
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
Original comment by brice.du...@gmail.com
on 21 Apr 2014 at 6:42
- Added labels: Priority-Low, Type-Enhancement
- Removed labels: Priority-Medium, Type-Defect
GoogleCodeExporter commented
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
Managed in GitHub https://github.com/mockito/mockito/pull/68
Original comment by szcze...@gmail.com
on 30 Sep 2014 at 6:22
- Changed state: Fixed
GoogleCodeExporter commented
Original comment by szcze...@gmail.com
on 30 Sep 2014 at 6:23
- Added labels: MovedToGitHub