Skip to content

Commit

Permalink
Remove irrelevant UT
Browse files Browse the repository at this point in the history
  • Loading branch information
eckermania committed Dec 12, 2024
1 parent 9234100 commit 14d116d
Showing 1 changed file with 0 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -141,24 +141,6 @@ void testUpdateStudent_GivenNullID_ShouldReturn400() throws Exception {
.andExpect(jsonPath("$.subErrors[?(@.field == 'assessmentStudentID')]").exists());
}

@Test
void testUpdateStudent_GivenInvalidPEN_ShouldReturn400() throws Exception {
final GrantedAuthority grantedAuthority = () -> "SCOPE_WRITE_EAS_STUDENT";
final SecurityMockMvcRequestPostProcessors.OidcLoginRequestPostProcessor mockAuthority = oidcLogin().authorities(grantedAuthority);

AssessmentStudent student = createMockStudent();
student.setPen("123456789");

this.mockMvc.perform(
put(URL.BASE_URL_STUDENT + "/" + student.getAssessmentStudentID())
.contentType(APPLICATION_JSON)
.content(asJsonString(student))
.with(mockAuthority))
.andDo(print())
.andExpect(status().isBadRequest())
.andExpect(MockMvcResultMatchers.jsonPath("$.subErrors[0].field").value("pen"));
}

@Test
void testUpdateStudent_GivenValidPayload_ShouldReturnStudent() throws Exception {
final GrantedAuthority grantedAuthority = () -> "SCOPE_WRITE_EAS_STUDENT";
Expand Down

0 comments on commit 14d116d

Please sign in to comment.