Answers for "what is allOf method"

1

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
Posted by: Guest on December-15-2020

Browse Popular Code Answers by Language