Skip to content

Commit

Permalink
remove outdated test case
Browse files Browse the repository at this point in the history
  • Loading branch information
julian-christl committed Aug 4, 2022
1 parent 1556372 commit a196501
Showing 1 changed file with 0 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -164,19 +164,6 @@ void updateAttachmentUnit_notInstructorInCourse_shouldReturnForbidden() throws E
HttpStatus.FORBIDDEN);
}

@Test
@WithMockUser(username = "instructor1", roles = "INSTRUCTOR")
void updateAttachmentUnit_noId_shouldReturnBadRequest() throws Exception {
persistAttachmentUnitWithLecture();

this.attachment.setAttachmentUnit(this.attachmentUnit);
this.attachment = attachmentRepository.save(attachment);
this.attachmentUnit.setDescription("Changed");
this.attachmentUnit.setId(null);
this.attachmentUnit = request.putWithResponseBody("/api/lectures/" + lecture1.getId() + "/attachment-units", this.attachmentUnit, AttachmentUnit.class,
HttpStatus.BAD_REQUEST);
}

@Test
@WithMockUser(username = "instructor1", roles = "INSTRUCTOR")
void getAttachmentUnit_correctId_shouldReturnAttachmentUnit() throws Exception {
Expand Down

0 comments on commit a196501

Please sign in to comment.