diff --git a/src/test/java/com/erickmob/schedulingjob/controller/JobControllerTest.java b/src/test/java/com/erickmob/schedulingjob/controller/JobControllerTest.java index 90744dc..2035a22 100644 --- a/src/test/java/com/erickmob/schedulingjob/controller/JobControllerTest.java +++ b/src/test/java/com/erickmob/schedulingjob/controller/JobControllerTest.java @@ -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()); + + } }