Skip to content

Commit

Permalink
one more test on controller
Browse files Browse the repository at this point in the history
  • Loading branch information
erickmob committed Jul 13, 2020
1 parent d76749e commit 05987c6
Showing 1 changed file with 13 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,4 +57,17 @@ void sendDataWhenSameDateAndExpectErrorStatus() throws Exception {
.andExpect(status().isBadRequest());

}

@Test
void sendEmptyDataExpectErrorStatus() throws Exception {

JobsDTO jobsDTO = new JobsDTO();
ResultActions resultActions = mockMvc
.perform(
post("/sequenceJobs")
.contentType(TestUtil.APPLICATION_JSON_UTF8)
.content(TestUtil.convertObjectToJsonBytes(jobsDTO)))
.andExpect(status().isNotAcceptable());

}
}

0 comments on commit 05987c6

Please sign in to comment.