Use parenthesis with single-arg lambdas
Use regular expression search/replace to ensure all single-arg lambdas have parenthesis. This aligns with the style used in Spring Boot and ensure that single-arg and multi-arg lambdas are consistent. Issue gh-8945
This commit is contained in:
+3
-3
@@ -117,14 +117,14 @@ public class CasSampleProxyTests {
|
||||
public void extremelySecurePageWhenReusingTicketThenDisplays() {
|
||||
this.login.to(this::serviceParam).assertAt().login("rod");
|
||||
Map<String, String> ptCache = new HashMap<>();
|
||||
this.extremelySecure.to(url -> url + "?ticket=" + ptCache.computeIfAbsent(url, this::getPt)).assertAt();
|
||||
this.extremelySecure.to(url -> url + "?ticket=" + ptCache.get(url)).assertAt();
|
||||
this.extremelySecure.to((url) -> url + "?ticket=" + ptCache.computeIfAbsent(url, this::getPt)).assertAt();
|
||||
this.extremelySecure.to((url) -> url + "?ticket=" + ptCache.get(url)).assertAt();
|
||||
}
|
||||
|
||||
@Test
|
||||
public void securePageWhenInvalidTicketThenFails() {
|
||||
this.login.to(this::serviceParam).assertAt().login("scott");
|
||||
this.secure.to(url -> url + "?ticket=invalid");
|
||||
this.secure.to((url) -> url + "?ticket=invalid");
|
||||
this.unauthorized.assertAt();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user