SEC-2833: Rossen's feedback on WebSocket

This commit is contained in:
Rob Winch
2015-02-04 10:42:34 -06:00
parent 72e256b95a
commit 9b5f76f3d6
4 changed files with 19 additions and 10 deletions

View File

@@ -225,7 +225,7 @@ public class MessageSecurityMetadataSourceRegistryTests {
@Test
public void simpDestMessageMatchersNotMatch() {
messages
.simpDestMessageMatchers("admin/**").denyAll()
.simpMessageDestMatchers("admin/**").denyAll()
.anyMessage().permitAll();
assertThat(getAttribute()).isEqualTo("permitAll");
@@ -234,7 +234,7 @@ public class MessageSecurityMetadataSourceRegistryTests {
@Test
public void simpDestMessageMatchersMatch() {
messages
.simpDestMessageMatchers("location/**").denyAll()
.simpMessageDestMatchers("location/**").denyAll()
.anyMessage().permitAll();
assertThat(getAttribute()).isEqualTo("denyAll");
@@ -243,7 +243,7 @@ public class MessageSecurityMetadataSourceRegistryTests {
@Test
public void simpDestSubscribeMatchersNotMatch() {
messages
.simpDestSubscribeMatchers("location/**").denyAll()
.simpSubscribeDestMatchers("location/**").denyAll()
.anyMessage().permitAll();
assertThat(getAttribute()).isEqualTo("permitAll");
@@ -256,7 +256,7 @@ public class MessageSecurityMetadataSourceRegistryTests {
.build();
messages
.simpDestSubscribeMatchers("location/**").denyAll()
.simpSubscribeDestMatchers("location/**").denyAll()
.anyMessage().permitAll();
assertThat(getAttribute()).isEqualTo("denyAll");