@Test public void testGetProductInventories() throws Exception { InventoryController inventoryController = new InventoryController(); int numberOfInventories = inventoryController.getProductInventories(); assertEquals(5, numberOfInventories); }
@RequestMapping(value = "/inventories", method = RequestMethod.GET) public int getProductInventories() { return 5; }
InventoryController { @RequestMapping(value = "/inventories", method = RequestMethod.GET) public int getProductInventories() { return 5; } }
InventoryController { @RequestMapping(value = "/inventories", method = RequestMethod.GET) public int getProductInventories() { return 5; }  }
InventoryController { @RequestMapping(value = "/inventories", method = RequestMethod.GET) public int getProductInventories() { return 5; }  @RequestMapping(value = "/inventories", method = RequestMethod.GET) int getProductInventories(); }
InventoryController { @RequestMapping(value = "/inventories", method = RequestMethod.GET) public int getProductInventories() { return 5; }  @RequestMapping(value = "/inventories", method = RequestMethod.GET) int getProductInventories();  }