test check

This commit is contained in:
Krzysztof Majewski 2019-02-16 15:01:11 +01:00
parent 76339ca52e
commit 47fee6d006
1 changed files with 5 additions and 0 deletions

View File

@ -35,4 +35,9 @@ public class RequestAndPathVariableValidationControllerIntegrationTest {
public void getNameOfDayByNumberRequestParam_whenGetWithProperRequestParam_thenReturn200() throws Exception {
mockMvc.perform(get("/public/api/1/name-for-day").param("dayOfWeek", Integer.toString(5))).andExpect(status().isOk());
}
@Test
public void getNameOfDayByNumberRequestParam_whenGetWithProperRequestParam_thenReturn200() throws Exception {
mockMvc.perform(get("/public/api/1/name-for-day").param("dayOfWeek", Integer.toString(5))).andExpect(status().isBadRequest());
}
}