@Test public void testCreateAccoutBalance() throws Exception { ResultActions results = mockMvc .perform(MockMvcRequestBuilders.post("/settlementservice/agentservice/v1/createaccoutbalance") .param("accountRoleType", "1").param("code", "123")) .andExpect(status().isOk()); results.andDo(new ResultHandler() { @Override public void handle(MvcResult result) throws Exception { System.out.println("*********" + result.getResponse().getContentAsString()); } }); }
@PostMapping("/createaccoutbalance") public ResBodyData createAccoutBalance(@Validated EcmMzfAccount ecmMzfAccount) { depositService.createAccount(ecmMzfAccount); return SettlementUtil.success(null); }
AgentController { @PostMapping("/createaccoutbalance") public ResBodyData createAccoutBalance(@Validated EcmMzfAccount ecmMzfAccount) { depositService.createAccount(ecmMzfAccount); return SettlementUtil.success(null); } }
AgentController { @PostMapping("/createaccoutbalance") public ResBodyData createAccoutBalance(@Validated EcmMzfAccount ecmMzfAccount) { depositService.createAccount(ecmMzfAccount); return SettlementUtil.success(null); }  }
AgentController { @PostMapping("/createaccoutbalance") public ResBodyData createAccoutBalance(@Validated EcmMzfAccount ecmMzfAccount) { depositService.createAccount(ecmMzfAccount); return SettlementUtil.success(null); }  @PostMapping("/sharedeposit") ResBodyData shareDeposit(@Validated EcmAgent ecmAgent); @PostMapping("/sendscore") ResBodyData sendScore(@Validated EcmStore ecmStore); @PostMapping("/createaccoutbalance") ResBodyData createAccoutBalance(@Validated EcmMzfAccount ecmMzfAccount); }
AgentController { @PostMapping("/createaccoutbalance") public ResBodyData createAccoutBalance(@Validated EcmMzfAccount ecmMzfAccount) { depositService.createAccount(ecmMzfAccount); return SettlementUtil.success(null); }  @PostMapping("/sharedeposit") ResBodyData shareDeposit(@Validated EcmAgent ecmAgent); @PostMapping("/sendscore") ResBodyData sendScore(@Validated EcmStore ecmStore); @PostMapping("/createaccoutbalance") ResBodyData createAccoutBalance(@Validated EcmMzfAccount ecmMzfAccount);  }