@Test @Transactional public void testGetEdit_existingMessageFormat() throws Exception { final MessageFormat format = messageFormatTestTools.createMessageFormat("MyMessageFormat" + System.currentTimeMillis()); format.setOptionParameters("{\"myOption1\":\"myValue1\",\"myOption2\":\"myValue2\"}"); messageFormatRepository.save(format); mockMvc .perform(get("/configuration/messageFormat/edit/" + format.getId()) .with(user(adminUserDetails))) .andExpect(status().isOk()) .andExpect(content().string(containsString(format.getName()))) .andExpect(content().string(containsString(format.getClasspath()))) .andExpect(content().string(containsString("value=\"" + format.getId() + "\""))) .andExpect(content().string(containsString("myValue1"))) .andExpect(content().string(containsString("myValue2"))) .andExpect(content().string(containsString("myOption1"))) .andExpect(content().string(containsString("myOption2"))); }
@RequestMapping(path = "/create", method = RequestMethod.GET) public String createMessageFormat(final MessageFormatForm messageFormatForm, final Model model) { setupBreadCrumbs(model, "Create", null); return "configuration/messageFormat/create"; }
MessageFormatController extends BaseController { @RequestMapping(path = "/create", method = RequestMethod.GET) public String createMessageFormat(final MessageFormatForm messageFormatForm, final Model model) { setupBreadCrumbs(model, "Create", null); return "configuration/messageFormat/create"; } }
MessageFormatController extends BaseController { @RequestMapping(path = "/create", method = RequestMethod.GET) public String createMessageFormat(final MessageFormatForm messageFormatForm, final Model model) { setupBreadCrumbs(model, "Create", null); return "configuration/messageFormat/create"; }  }
MessageFormatController extends BaseController { @RequestMapping(path = "/create", method = RequestMethod.GET) public String createMessageFormat(final MessageFormatForm messageFormatForm, final Model model) { setupBreadCrumbs(model, "Create", null); return "configuration/messageFormat/create"; }  @RequestMapping(path = "", method = RequestMethod.GET) String index(final Model model); @RequestMapping(path = "/create", method = RequestMethod.GET) String createMessageFormat(final MessageFormatForm messageFormatForm, final Model model); @RequestMapping(path = "/edit/{id}", method = RequestMethod.GET) String editMessageFormat(
        @PathVariable final Long id,
        final MessageFormatForm messageFormatForm,
        final Model model,
        final RedirectAttributes redirectAttributes); @RequestMapping(path = "/update", method = RequestMethod.POST) String create(
        @Valid final MessageFormatForm messageFormatForm,
        final BindingResult bindingResult,
        final RedirectAttributes redirectAttributes,
        @RequestParam final Map<String, String> allRequestParams); @RequestMapping(path = "/delete/{id}", method = RequestMethod.POST) String deleteCluster(@PathVariable final Long id, final RedirectAttributes redirectAttributes); }
MessageFormatController extends BaseController { @RequestMapping(path = "/create", method = RequestMethod.GET) public String createMessageFormat(final MessageFormatForm messageFormatForm, final Model model) { setupBreadCrumbs(model, "Create", null); return "configuration/messageFormat/create"; }  @RequestMapping(path = "", method = RequestMethod.GET) String index(final Model model); @RequestMapping(path = "/create", method = RequestMethod.GET) String createMessageFormat(final MessageFormatForm messageFormatForm, final Model model); @RequestMapping(path = "/edit/{id}", method = RequestMethod.GET) String editMessageFormat(
        @PathVariable final Long id,
        final MessageFormatForm messageFormatForm,
        final Model model,
        final RedirectAttributes redirectAttributes); @RequestMapping(path = "/update", method = RequestMethod.POST) String create(
        @Valid final MessageFormatForm messageFormatForm,
        final BindingResult bindingResult,
        final RedirectAttributes redirectAttributes,
        @RequestParam final Map<String, String> allRequestParams); @RequestMapping(path = "/delete/{id}", method = RequestMethod.POST) String deleteCluster(@PathVariable final Long id, final RedirectAttributes redirectAttributes);  }