Is there a way to assert that an actual value equals any of a number of values?
Example:
String original = "...";
Collection<String> permittedTransformations = Set.of("...[1]", "...[2]", "...[3]");
String actual = transform(original);
assertThat(actual, isContainedIn(permittedTransformations));
I can see that I can just swap the arguments around:
assertThat(permittedTransformations, contains(actual));
but that reverses the semantics. I'm not checking if permittedTransformations is correct; I'm checking actual.