Skip to content
Snippets Groups Projects
Commit 41c0b0a8 authored by Daniel Gerhardt's avatar Daniel Gerhardt
Browse files

Adjust tests

parent 1f3bd6bb
Branches
Tags
No related merge requests found
......@@ -89,15 +89,15 @@ public class CourseControllerTest {
public void testShouldIndicateNotImplementedIfInactiveClient() throws Exception {
setAuthenticated(true, "ptsr00");
mockMvc.perform(get("/mycourses").accept(MediaType.TEXT_PLAIN))
.andExpect(status().isNotImplemented());
mockMvc.perform(get("/mycourses").accept(MediaType.APPLICATION_JSON))
.andExpect(status().isNotImplemented());
}
@Test
public void testShouldNotReturnCurrentUsersCoursesIfUnauthorized() throws Exception {
setAuthenticated(false, "nobody");
mockMvc.perform(get("/mycourses").accept(MediaType.TEXT_PLAIN))
.andExpect(status().isUnauthorized());
mockMvc.perform(get("/mycourses").accept(MediaType.APPLICATION_JSON))
.andExpect(status().isUnauthorized());
}
}
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment