Assignments Controller test + authj test fix
This commit is contained in:
@ -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());
|
||||
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user