samedi 10 juin 2017

What is the significance of following piece of Spring controller tester code?

@Test(expected = IllegalArgumentException.class) public void execute() throws Exception {

    mockMvc.perform(fileUpload(URL)
            .param("name"))
            .andExpect(status().isOk())
            .andExpect(view().name("abc.html"));
}

Aucun commentaire:

Enregistrer un commentaire