@Test public void versionSvg() throws Exception { mockMvc.perform(get(CONTEXT_PATH + "/version.svg")).andExpect(status().is3xxRedirection()).andExpect( redirectedUrl(String.format(SVG_URL_FORMAT, VERSION))); }
@GetMapping(path = "version.svg") public RedirectView versionSvg() { return new RedirectView(String.format(SVG_URL_FORMAT, VERSION)); }
VersionController { @GetMapping(path = "version.svg") public RedirectView versionSvg() { return new RedirectView(String.format(SVG_URL_FORMAT, VERSION)); } }
VersionController { @GetMapping(path = "version.svg") public RedirectView versionSvg() { return new RedirectView(String.format(SVG_URL_FORMAT, VERSION)); }  }
VersionController { @GetMapping(path = "version.svg") public RedirectView versionSvg() { return new RedirectView(String.format(SVG_URL_FORMAT, VERSION)); }  @GetMapping(path = "version.txt") String versionTxt(); @GetMapping(path = "version.svg") RedirectView versionSvg(); @GetMapping(path = "version.png") RedirectView versionPng(); }
VersionController { @GetMapping(path = "version.svg") public RedirectView versionSvg() { return new RedirectView(String.format(SVG_URL_FORMAT, VERSION)); }  @GetMapping(path = "version.txt") String versionTxt(); @GetMapping(path = "version.svg") RedirectView versionSvg(); @GetMapping(path = "version.png") RedirectView versionPng();  }