InterviewSolution
Saved Bookmarks
| 1. |
______________ Hamcrest matcher can be used to match absolutely everything.(a) Is(b) AnyOf(c) Anything(d) NotI have been asked this question in final exam.This is a very interesting question from Hamcrest Matchers topic in portion Mastering JUnit of JUnit |
|
Answer» RIGHT OPTION is (c) Anything For explanation I WOULD SAY: Matches ABSOLUTELY anything. Useful in some cases where one wants to make the assert statement more readable. |
|