Replace assertThat(x.iterator().next()) with assertThat(x).element(0)
Search for : assertThat\((.+).iterator\(\).next\(\)\) Replace with : assertThat($1).element(0)
This commit is contained in:
@@ -225,7 +225,7 @@ class RequestMappingHandlerMappingTests {
|
||||
|
||||
Set<RequestMethod> methods = info.getMethodsCondition().getMethods();
|
||||
assertThat(methods).hasSize(1);
|
||||
assertThat(methods.iterator().next()).isEqualTo(requestMethod);
|
||||
assertThat(methods).element(0).isEqualTo(requestMethod);
|
||||
|
||||
return info;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user