Linked Questions

Popular Questions

I have requirement, say in my response I get the results in list as "brisbane, australia", "sydney, australia" and "melbourne, australia". Now I need to test that, the results contains "sydney" in any of the three results.

softAssertions.assertThat(resultArrayList.subList(0, 3))
              .extracting("title")
              .as("Title match")
              .containsAny(expectedTitle);

Kindly suggest.

Related Questions