@Test public void shouldGetProductTitle() { InformationController infoController = new InformationController(); String title = infoController.getProductTitle(); assertEquals("The Product Title.", title); }
@RequestMapping(value = "/information", method = RequestMethod.GET) public String getProductTitle() { return "The Product Title."; }
InformationController { @RequestMapping(value = "/information", method = RequestMethod.GET) public String getProductTitle() { return "The Product Title."; } }
InformationController { @RequestMapping(value = "/information", method = RequestMethod.GET) public String getProductTitle() { return "The Product Title."; }  }
InformationController { @RequestMapping(value = "/information", method = RequestMethod.GET) public String getProductTitle() { return "The Product Title."; }  @RequestMapping(value = "/information", method = RequestMethod.GET) String getProductTitle(); }
InformationController { @RequestMapping(value = "/information", method = RequestMethod.GET) public String getProductTitle() { return "The Product Title."; }  @RequestMapping(value = "/information", method = RequestMethod.GET) String getProductTitle();  }