@Test public void simpDestMatchersAuthority() { messages.simpDestMatchers("admin/**", "location/**").hasAuthority("ROLE_ADMIN") .anyMessage().fullyAuthenticated(); assertThat(getAttribute()).isEqualTo("hasAuthority('ROLE_ADMIN')"); }
@Test public void simpDestMatchersFullyAuthenticated() { messages.simpDestMatchers("admin/**", "location/**").fullyAuthenticated() .anyMessage().denyAll(); assertThat(getAttribute()).isEqualTo("fullyAuthenticated"); }