File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
config/src/test/java/org/springframework/security/test/web/servlet Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright 2002-2022 the original author or authors.
2
+ * Copyright 2002-2023 the original author or authors.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
25
25
import static org .assertj .core .api .Assertions .assertThat ;
26
26
27
27
/**
28
- * Ensures that the MockMvcResult redirects to the saved ReqeuestCache .getRedirectUrl().
28
+ * Ensures that the MockMvcResult redirects to the saved RequestCache .getRedirectUrl().
29
29
*/
30
30
public final class RequestCacheResultMatcher {
31
31
32
32
/**
33
33
* Verifies that the MockMvcResult redirects to the saved
34
- * ReqeustCache .getRedirectUrl().
34
+ * RequestCache .getRedirectUrl().
35
35
* @return a ResultMatcher that performs the verification.
36
36
*/
37
37
public static ResultMatcher redirectToCachedRequest () {
38
38
return (mvcResult ) -> {
39
39
RequestCache requestCache = new HttpSessionRequestCache ();
40
40
MockHttpServletResponse response = mvcResult .getResponse ();
41
41
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 ();
43
43
String cachedRedirectUrl = savedRequest .getRedirectUrl ();
44
44
assertThat (response .getRedirectedUrl ()).isEqualTo (cachedRedirectUrl );
45
45
};
You can’t perform that action at this time.
0 commit comments