Skip to content

Commit

Permalink
Controller/view testing.
Browse files Browse the repository at this point in the history
  • Loading branch information
Mike Chandler committed Mar 20, 2012
1 parent ef091ee commit e3ad969
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
@@ -1,7 +1,6 @@
package com.rmwebfx.citygridsearch.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

Expand All @@ -12,7 +11,7 @@
public class Test {

@RequestMapping(value = "/")
public ModelAndView home(Model model) {
public ModelAndView home() {
PlacesSearch search = new PlacesSearch("Restaurant", Constants.SITEWIDE_CITY_STATE);

ModelAndView view = new ModelAndView();
Expand Down
1 change: 0 additions & 1 deletion src/main/webapp/WEB-INF/views/home.jsp
Expand Up @@ -9,7 +9,6 @@
</head>
<body>
<h1>Search Results</h1>

<%
ArrayList<PlacesSearchMatch> matches = (ArrayList<PlacesSearchMatch>) request.getAttribute("matches");
for (int i = 0; i < matches.size(); i++) {
Expand Down

0 comments on commit e3ad969

Please sign in to comment.