📜  anyof hamcrest - 任何代码示例

📅  最后修改于: 2022-03-11 14:55:59.330000             🧑  作者: Mango

代码示例1
Anyof method is similar to "OR" = ||
logic in Java. We are checking 2 conditions and
if either one is pass than test pass

for example


assertThat("John Doe" , anyOf ( is ("John"), endsWith("oe"));
//any of --> or logic as long as one matcher match it will pass