I would like to check if at least one string is contained in another using AssertJ.
For example, having:
String actual = "I am a string";
String oneString = "am";
String anotherString = "some string";
Currently I can write:
assertThat(actual.contains(oneString) || actual.contains(anotherString)).isTrue();
so if one of the two conditions is true, the assertion will pass. However, in case of failures, there is no detail on what failed exactly.
What would be a good way to achieve this check and have specific details when failed?