@Test public void shouldReturnViewWithBootstrapFlagSet() throws Exception { when(OsgiListener.isBootstrapPresent()).thenReturn(false); mockMvc.perform(MockMvcRequestBuilders.get("/bootstrap/")) .andExpect(MockMvcResultMatchers.status().isOk()) .andExpect(MockMvcResultMatchers.view().name("bootstrapconfig")).andReturn(); }
@RequestMapping(value = "/status", method = RequestMethod.GET) @ResponseBody public PlatformStatus status() { return OsgiListener.getOsgiService().getCurrentPlatformStatus(); }
BootstrapController { @RequestMapping(value = "/status", method = RequestMethod.GET) @ResponseBody public PlatformStatus status() { return OsgiListener.getOsgiService().getCurrentPlatformStatus(); } }
BootstrapController { @RequestMapping(value = "/status", method = RequestMethod.GET) @ResponseBody public PlatformStatus status() { return OsgiListener.getOsgiService().getCurrentPlatformStatus(); }  }
BootstrapController { @RequestMapping(value = "/status", method = RequestMethod.GET) @ResponseBody public PlatformStatus status() { return OsgiListener.getOsgiService().getCurrentPlatformStatus(); }  @RequestMapping(value = "/", method = RequestMethod.GET) ModelAndView bootstrapForm(); @RequestMapping(value = "/", method = RequestMethod.POST) ModelAndView submitForm(@ModelAttribute(BOOTSTRAP_CONFIG) @Valid BootstrapConfigForm form, BindingResult result,
                                   HttpServletRequest request); @RequestMapping(value = "/verifySql", method = RequestMethod.POST) @ResponseBody Map<String, ?> verifySqlConnection(@ModelAttribute(BOOTSTRAP_CONFIG) @Valid BootstrapConfigForm form,
                                              BindingResult result, HttpServletRequest request); @RequestMapping(value = "/verifyAmq", method = RequestMethod.POST) @ResponseBody Map<String, ?> verifyAmqConnection(@ModelAttribute(BOOTSTRAP_CONFIG) @Valid BootstrapConfigForm form,
                                              BindingResult result, HttpServletRequest request); @RequestMapping(value = "/status", method = RequestMethod.GET) @ResponseBody PlatformStatus status(); }
BootstrapController { @RequestMapping(value = "/status", method = RequestMethod.GET) @ResponseBody public PlatformStatus status() { return OsgiListener.getOsgiService().getCurrentPlatformStatus(); }  @RequestMapping(value = "/", method = RequestMethod.GET) ModelAndView bootstrapForm(); @RequestMapping(value = "/", method = RequestMethod.POST) ModelAndView submitForm(@ModelAttribute(BOOTSTRAP_CONFIG) @Valid BootstrapConfigForm form, BindingResult result,
                                   HttpServletRequest request); @RequestMapping(value = "/verifySql", method = RequestMethod.POST) @ResponseBody Map<String, ?> verifySqlConnection(@ModelAttribute(BOOTSTRAP_CONFIG) @Valid BootstrapConfigForm form,
                                              BindingResult result, HttpServletRequest request); @RequestMapping(value = "/verifyAmq", method = RequestMethod.POST) @ResponseBody Map<String, ?> verifyAmqConnection(@ModelAttribute(BOOTSTRAP_CONFIG) @Valid BootstrapConfigForm form,
                                              BindingResult result, HttpServletRequest request); @RequestMapping(value = "/status", method = RequestMethod.GET) @ResponseBody PlatformStatus status(); static final String BOOTSTRAP_CONFIG_VIEW; static final String REDIRECT_HOME; }