@@ -47,7 +47,7 @@ void setup() {
47
47
48
48
@ Test
49
49
void loginShouldSaveSecurityContextAsJson () throws Exception {
50
- Cookie sessionCookie = this .mvc .perform (formLogin ().user ("user " ).password ("password" ))
50
+ Cookie sessionCookie = this .mvc .perform (formLogin ().user ("rüdiger " ).password ("password" ))
51
51
.andExpect (authenticated ())
52
52
.andReturn ()
53
53
.getResponse ()
@@ -62,20 +62,20 @@ void loginShouldSaveSecurityContextAsJson() throws Exception {
62
62
SecurityContext securityContext = this .objectMapperWithModules .readValue ((String ) attributeBytes ,
63
63
SecurityContext .class );
64
64
assertThat (securityContext ).isNotNull ();
65
- assertThat (securityContext .getAuthentication ().getName ()).isEqualTo ("user " );
65
+ assertThat (securityContext .getAuthentication ().getName ()).isEqualTo ("rüdiger " );
66
66
}
67
67
68
68
@ Test
69
69
void loginWhenQueryUsingJsonbOperatorThenReturns () throws Exception {
70
- this .mvc .perform (formLogin ().user ("user " ).password ("password" )).andExpect (authenticated ());
70
+ this .mvc .perform (formLogin ().user ("rüdiger " ).password ("password" )).andExpect (authenticated ());
71
71
Object attributeBytes = this .jdbcClient .queryForObject ("""
72
72
SELECT attribute_bytes::text FROM spring_session_attributes
73
- WHERE attribute_bytes -> 'authentication' -> 'principal' ->> 'username' = 'user '
73
+ WHERE attribute_bytes -> 'authentication' -> 'principal' ->> 'username' = 'rüdiger '
74
74
""" , Object .class );
75
75
SecurityContext securityContext = this .objectMapperWithModules .readValue ((String ) attributeBytes ,
76
76
SecurityContext .class );
77
77
assertThat (securityContext ).isNotNull ();
78
- assertThat (securityContext .getAuthentication ().getName ()).isEqualTo ("user " );
78
+ assertThat (securityContext .getAuthentication ().getName ()).isEqualTo ("rüdiger " );
79
79
}
80
80
81
81
}
0 commit comments