Apply formatting

This commit is contained in:
Marcus Hert Da Coregio
2024-01-17 12:02:19 -03:00
parent 66e0ae2acf
commit fadbeb354c
35 changed files with 175 additions and 110 deletions

View File

@@ -87,9 +87,10 @@ public class OAuth2ResourceServerControllerTests {
@Test
void messageCanNotBeCreatedWithScopeMessageReadAuthority() throws Exception {
this.mvc.perform(post("/message").content("Hello message")
this.mvc
.perform(post("/message").content("Hello message")
.with(opaqueToken().authorities(new SimpleGrantedAuthority("SCOPE_message:read"))))
.andExpect(status().isForbidden());
.andExpect(status().isForbidden());
}
@Test