Skip to content

Commit

Permalink
chore: remove obsolete test
Browse files Browse the repository at this point in the history
  • Loading branch information
mebo4b committed May 24, 2022
1 parent 5f821c2 commit 01f5eea
Showing 1 changed file with 0 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -199,16 +199,6 @@ public void getWebToken_should_generate_token_for_anonymous_user() throws Except
verify(tokenGeneratorService).generateToken(RC_CHAT_ROOM_ID);
}

@Test
@WithAnonymousUser
public void getWebToken_should_return_forbidden_for_request_without_csrf() throws Exception {
mvc.perform(get(PATH_GET_WEB_TOKEN)
.header(RC_USER_ID_HEADER, RC_USER_ID_VALUE)
.contentType(MediaType.APPLICATION_JSON)
.accept(MediaType.APPLICATION_JSON))
.andExpect(status().isForbidden());
}

@Test
@WithMockUser(authorities = {AUTHORITY_USER})
public void getWebToken_should_generate_token_for_user() throws Exception {
Expand Down

0 comments on commit 01f5eea

Please sign in to comment.