AppController { @RequestMapping(method = RequestMethod.GET) public List<AppEntity> getAll() { logger.info("/v1/apps"); String dockerIp = configManager.getDockerIp(); logger.info("dockerIp is " + dockerIp); return appControllerService.findAllApp(); }  @RequestMapping(method = RequestMethod.GET) List<AppEntity> getAll(); @RequestMapping(value = "/init", method = RequestMethod.POST) @ResponseBody AsyncOperationResponse initApp(@RequestBody AppInitRequest appInitRequest); static final Logger logger; }
@Test public void testGetAll() throws Exception { logger.info("start test getAll.."); List<AppEntity> appEntityList = getResponseAsBean("/v1/apps"); Assert.assertTrue(appEntityList.size() > 0); logger.info("end test getAll!"); }