@Test public void tableConsistentCheck() throws Exception { mockMvc.perform(MockMvcRequestBuilders.post("/setupDb/tableConsistentCheck") .contentType(MediaType.APPLICATION_JSON_UTF8) .content(requestJson) .accept(MediaType.APPLICATION_JSON_UTF8)) .andExpect(MockMvcResultMatchers.status().isOk()) .andDo(MockMvcResultHandlers.print()); }
@RequestMapping(value = "tableConsistentCheck", method = RequestMethod.POST) public ServiceResult tableConsistentCheck(@RequestBody ConnectionRequest connectionRequest) { try { boolean result = setupDBService.tableConsistent(connectionRequest.getDb_catalog()); if (result) { return ServiceResult.success(); } return ServiceResult.fail(); } catch (Exception e) { log.error("SetupDBController.tableConsistentCheck : {}", StringUtil.getMessage(e)); return ServiceResult.fail(StringUtil.getMessage(e)); } }
SetupDataBaseController { @RequestMapping(value = "tableConsistentCheck", method = RequestMethod.POST) public ServiceResult tableConsistentCheck(@RequestBody ConnectionRequest connectionRequest) { try { boolean result = setupDBService.tableConsistent(connectionRequest.getDb_catalog()); if (result) { return ServiceResult.success(); } return ServiceResult.fail(); } catch (Exception e) { log.error("SetupDBController.tableConsistentCheck : {}", StringUtil.getMessage(e)); return ServiceResult.fail(StringUtil.getMessage(e)); } } }
SetupDataBaseController { @RequestMapping(value = "tableConsistentCheck", method = RequestMethod.POST) public ServiceResult tableConsistentCheck(@RequestBody ConnectionRequest connectionRequest) { try { boolean result = setupDBService.tableConsistent(connectionRequest.getDb_catalog()); if (result) { return ServiceResult.success(); } return ServiceResult.fail(); } catch (Exception e) { log.error("SetupDBController.tableConsistentCheck : {}", StringUtil.getMessage(e)); return ServiceResult.fail(StringUtil.getMessage(e)); } }  }
SetupDataBaseController { @RequestMapping(value = "tableConsistentCheck", method = RequestMethod.POST) public ServiceResult tableConsistentCheck(@RequestBody ConnectionRequest connectionRequest) { try { boolean result = setupDBService.tableConsistent(connectionRequest.getDb_catalog()); if (result) { return ServiceResult.success(); } return ServiceResult.fail(); } catch (Exception e) { log.error("SetupDBController.tableConsistentCheck : {}", StringUtil.getMessage(e)); return ServiceResult.fail(StringUtil.getMessage(e)); } }  @RequestMapping(value = "/setupDbCheck") ServiceResult setupDbCheck(); @RequestMapping(value = "/connectionTest", method = RequestMethod.POST) ServiceResult connectionTest(@RequestBody ConnectionRequest connectionRequest); @RequestMapping(value = "tableConsistentCheck", method = RequestMethod.POST) ServiceResult tableConsistentCheck(@RequestBody ConnectionRequest connectionRequest); @RequestMapping(value = "initializeDb", method = RequestMethod.POST) ServiceResult initializeDb(@RequestBody InitDbUserRequset initDbUserRequset); }
SetupDataBaseController { @RequestMapping(value = "tableConsistentCheck", method = RequestMethod.POST) public ServiceResult tableConsistentCheck(@RequestBody ConnectionRequest connectionRequest) { try { boolean result = setupDBService.tableConsistent(connectionRequest.getDb_catalog()); if (result) { return ServiceResult.success(); } return ServiceResult.fail(); } catch (Exception e) { log.error("SetupDBController.tableConsistentCheck : {}", StringUtil.getMessage(e)); return ServiceResult.fail(StringUtil.getMessage(e)); } }  @RequestMapping(value = "/setupDbCheck") ServiceResult setupDbCheck(); @RequestMapping(value = "/connectionTest", method = RequestMethod.POST) ServiceResult connectionTest(@RequestBody ConnectionRequest connectionRequest); @RequestMapping(value = "tableConsistentCheck", method = RequestMethod.POST) ServiceResult tableConsistentCheck(@RequestBody ConnectionRequest connectionRequest); @RequestMapping(value = "initializeDb", method = RequestMethod.POST) ServiceResult initializeDb(@RequestBody InitDbUserRequset initDbUserRequset);  }