Assignments Controller test + authj test fix

This commit is contained in:
Filip Izydorczyk
2020-10-05 16:52:52 +02:00
parent fe5d2d20c3
commit 73104850fe
3 changed files with 33 additions and 9 deletions

View File

@ -67,8 +67,8 @@ public class ConfigControllerTest {
final String token = this.service.login(TEST_MAIL);
MockMvc mockMvc = MockMvcBuilders.webAppContextSetup(webApplicationContext).apply(springSecurity()).build();
mockMvc.perform(multipart(CONFIG_ENDPOINT).file(file).header("Bearer ", token))
.andExpect(status().is4xxClientError());
mockMvc.perform(multipart(CONFIG_ENDPOINT).file(file).header("Authorization", "Bearer " + token))
.andExpect(status().isOk());
}