@Test public void testGetImagePath() { ImageController imageController = new ImageController(); String imagePath = imageController.getImagePath(); assertEquals("/product-image.png", imagePath); }
@RequestMapping(value = "/image-path", method = RequestMethod.GET) public String getImagePath() { return "/product-image.png"; }
ImageController { @RequestMapping(value = "/image-path", method = RequestMethod.GET) public String getImagePath() { return "/product-image.png"; } }
ImageController { @RequestMapping(value = "/image-path", method = RequestMethod.GET) public String getImagePath() { return "/product-image.png"; }  }
ImageController { @RequestMapping(value = "/image-path", method = RequestMethod.GET) public String getImagePath() { return "/product-image.png"; }  @RequestMapping(value = "/image-path", method = RequestMethod.GET) String getImagePath(); }
ImageController { @RequestMapping(value = "/image-path", method = RequestMethod.GET) public String getImagePath() { return "/product-image.png"; }  @RequestMapping(value = "/image-path", method = RequestMethod.GET) String getImagePath();  }