@Test public void getProjects() { ProjectsController projectsController = new ProjectsController(); String view = projectsController.getProjects(); assertEquals("/project/index", view); }
@RequestMapping(method=RequestMethod.GET) @PreAuthorize("hasAnyProjectPermission(VIEW)") public String getProjects() { return "/project/index"; }
ProjectsController { @RequestMapping(method=RequestMethod.GET) @PreAuthorize("hasAnyProjectPermission(VIEW)") public String getProjects() { return "/project/index"; } }
ProjectsController { @RequestMapping(method=RequestMethod.GET) @PreAuthorize("hasAnyProjectPermission(VIEW)") public String getProjects() { return "/project/index"; }  }
ProjectsController { @RequestMapping(method=RequestMethod.GET) @PreAuthorize("hasAnyProjectPermission(VIEW)") public String getProjects() { return "/project/index"; }  @RequestMapping(method=RequestMethod.GET) @PreAuthorize("hasAnyProjectPermission(VIEW)") String getProjects(); }
ProjectsController { @RequestMapping(method=RequestMethod.GET) @PreAuthorize("hasAnyProjectPermission(VIEW)") public String getProjects() { return "/project/index"; }  @RequestMapping(method=RequestMethod.GET) @PreAuthorize("hasAnyProjectPermission(VIEW)") String getProjects();  }