Skip to content

Instantly share code, notes, and snippets.

@netodevel
Created December 30, 2016 19:17
Show Gist options
  • Save netodevel/49e86e376d811d57455d0d2cfec62cb1 to your computer and use it in GitHub Desktop.
Save netodevel/49e86e376d811d57455d0d2cfec62cb1 to your computer and use it in GitHub Desktop.
@Test
public void testPUTSalarioMinimoController() throws Exception {
SalarioMinimo salarioMinimo = (SalarioMinimo) salarioMinimoService.save(new SalarioMinimo("AL", "800", new SimpleDateFormat("dd/MM/yyyy").parse("01/01/2016"), new SimpleDateFormat("dd/MM/yyyy").parse("01/02/2016"), "decreto test"));
this.mockMvc.perform(MockMvcRequestBuilders.put("/salarios/" + salarioMinimo.getId() + "/editar")).andExpect(MockMvcResultMatchers.redirectedUrl("/salarios"));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment