WebActionController { @RequestMapping(value = {"/login/*"}, method = RequestMethod.GET) public ResponseEntity<?> login(){ return ResponseEntity.status(HttpStatus.OK).body(null); }  @RequestMapping(value=URI_PATTERN_P+"/clear", produces="application/json", method=RequestMethod.GET) void clear(); @RequestMapping(value=URI_PATTERN_P+"/loglevel", produces="application/json", method=RequestMethod.GET) Output<String> updateLogLevel(@RequestParam(value="level") String level, @RequestParam(value="package") String packageName); @RequestMapping(value=URI_PATTERN_P_OPEN, produces="application/json", method=RequestMethod.GET) Object handleGet(HttpServletRequest req, @RequestParam(required=false) String a); @RequestMapping(value=URI_PATTERN_P_OPEN, produces="application/json", method=RequestMethod.DELETE) Object handleDelete(HttpServletRequest req, @RequestParam String v); @RequestMapping(value=URI_PATTERN_P_OPEN, produces="application/json", method=RequestMethod.POST) Object handlePost(HttpServletRequest req, @RequestBody String json); @RequestMapping(value=URI_PATTERN_P_OPEN, produces="application/json", method=RequestMethod.PUT) Object handlePut(HttpServletRequest req, @RequestParam String v, @RequestBody String json); @RequestMapping(value=URI_PATTERN_P_OPEN, produces="application/json", method=RequestMethod.PATCH) Object handlePatch(HttpServletRequest req, @RequestParam String v, @RequestBody String json); @RequestMapping(value=URI_PATTERN_P+"/event/notify", produces="application/json", method=RequestMethod.POST) Object handleEventNotify(HttpServletRequest req, @RequestBody ModelEvent<String> event); @RequestMapping(value = {"/login/*"}, method = RequestMethod.GET) ResponseEntity<?> login(); static final String URI_PATTERN_P; static final String URI_PATTERN_P_OPEN; }
@Test public void testLogin() { final ResponseEntity<?> response = this.testee.login(); Assert.assertEquals(HttpStatus.OK, response.getStatusCode()); Assert.assertEquals(null, response.getBody()); }