Skip to content

Commit cbb4e40

Browse files
twosomjzheaux
authored andcommitted
fix typo in RequestCacheResultMatcher
1 parent f03c904 commit cbb4e40

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

config/src/test/java/org/springframework/security/test/web/servlet/RequestCacheResultMatcher.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2022 the original author or authors.
2+
* Copyright 2002-2023 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -25,21 +25,21 @@
2525
import static org.assertj.core.api.Assertions.assertThat;
2626

2727
/**
28-
* Ensures that the MockMvcResult redirects to the saved ReqeuestCache.getRedirectUrl().
28+
* Ensures that the MockMvcResult redirects to the saved RequestCache.getRedirectUrl().
2929
*/
3030
public final class RequestCacheResultMatcher {
3131

3232
/**
3333
* Verifies that the MockMvcResult redirects to the saved
34-
* ReqeustCache.getRedirectUrl().
34+
* RequestCache.getRedirectUrl().
3535
* @return a ResultMatcher that performs the verification.
3636
*/
3737
public static ResultMatcher redirectToCachedRequest() {
3838
return (mvcResult) -> {
3939
RequestCache requestCache = new HttpSessionRequestCache();
4040
MockHttpServletResponse response = mvcResult.getResponse();
4141
SavedRequest savedRequest = requestCache.getRequest(mvcResult.getRequest(), response);
42-
assertThat(savedRequest).describedAs("savedReqeust cannot be null").isNotNull();
42+
assertThat(savedRequest).describedAs("savedRequest cannot be null").isNotNull();
4343
String cachedRedirectUrl = savedRequest.getRedirectUrl();
4444
assertThat(response.getRedirectedUrl()).isEqualTo(cachedRedirectUrl);
4545
};

0 commit comments

Comments
 (0)