You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: config/src/test/java/org/springframework/security/config/annotation/rsocket/RSocketMessageHandlerITests.java
+13-7
Original file line number
Diff line number
Diff line change
@@ -103,7 +103,9 @@ public void retrieveMonoWhenSecureThenDenied() throws Exception {
103
103
.data(data)
104
104
.retrieveMono(String.class)
105
105
.block()
106
-
).isInstanceOf(ApplicationErrorException.class);
106
+
).isInstanceOf(ApplicationErrorException.class)
107
+
.hasMessageContaining("Access Denied");
108
+
107
109
assertThat(this.controller.payloads).isEmpty();
108
110
}
109
111
@@ -116,7 +118,9 @@ public void retrieveMonoWhenAuthenticationFailedThenException() throws Exception
116
118
.data(data)
117
119
.retrieveMono(String.class)
118
120
.block()
119
-
).isInstanceOf(ApplicationErrorException.class);
121
+
).isInstanceOf(ApplicationErrorException.class)
122
+
.hasMessageContaining("Invalid Credentials");
123
+
120
124
assertThat(this.controller.payloads).isEmpty();
121
125
}
122
126
@@ -149,12 +153,13 @@ public void retrieveMonoWhenPublicThenGranted() throws Exception {
0 commit comments