what is allOf method
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