📜  什么是 allOf 方法 - 无论代码示例

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

代码示例1
allOf method --> it is similar to "AND" = "&&"
in Java. Basically both condition must be true
in order test to pass

For example :

assertThat("John Doe", allOf(startsWith("Jo"),containsString("Doe")));
//since both condition is true test passes