@Test public void testReqToPixUpdate() throws C32ParserException, Hl7v3TransformerException { String c32XmlMock = "c32XmlMock"; String hl7v3XmlMock = "hl7v3XmlMock"; String pixUpdateMessageMock = "pixUpdateMessageMock"; when(pixManagerTransformServiceMock.getPixUpdateXml(c32XmlMock)).thenReturn(hl7v3XmlMock); when(pixOperationsServiceMock.updatePerson(hl7v3XmlMock)).thenReturn(pixUpdateMessageMock); String actualRet = sut.reqToPixUpdate(c32XmlMock); assertEquals(pixUpdateMessageMock, actualRet); }
@RequestMapping(value = "/pixUpdate", method = RequestMethod.POST) public @ResponseBody String reqToPixUpdate(@RequestParam("c32Xml") String c32xml) throws C32ParserException, Hl7v3TransformerException { String hl7v3Xml = pixManagerTransformService.getPixUpdateXml(c32xml); String pixUpdateMessage = pixOperationsService.updatePerson(hl7v3Xml); return pixUpdateMessage; }
PixMgrController { @RequestMapping(value = "/pixUpdate", method = RequestMethod.POST) public @ResponseBody String reqToPixUpdate(@RequestParam("c32Xml") String c32xml) throws C32ParserException, Hl7v3TransformerException { String hl7v3Xml = pixManagerTransformService.getPixUpdateXml(c32xml); String pixUpdateMessage = pixOperationsService.updatePerson(hl7v3Xml); return pixUpdateMessage; } }
PixMgrController { @RequestMapping(value = "/pixUpdate", method = RequestMethod.POST) public @ResponseBody String reqToPixUpdate(@RequestParam("c32Xml") String c32xml) throws C32ParserException, Hl7v3TransformerException { String hl7v3Xml = pixManagerTransformService.getPixUpdateXml(c32xml); String pixUpdateMessage = pixOperationsService.updatePerson(hl7v3Xml); return pixUpdateMessage; }  }
PixMgrController { @RequestMapping(value = "/pixUpdate", method = RequestMethod.POST) public @ResponseBody String reqToPixUpdate(@RequestParam("c32Xml") String c32xml) throws C32ParserException, Hl7v3TransformerException { String hl7v3Xml = pixManagerTransformService.getPixUpdateXml(c32xml); String pixUpdateMessage = pixOperationsService.updatePerson(hl7v3Xml); return pixUpdateMessage; }  @RequestMapping(value = "/tansformHl7Add", method = RequestMethod.POST) @ResponseBody String transformC32ToPixAdd(@RequestParam("c32Xml") String c32xml); @RequestMapping(value = "/tansformHl7Update", method = RequestMethod.POST) @ResponseBody String transformC32ToPixUpdate(@RequestParam("c32Xml") String c32xml); @RequestMapping(value = "/tansformHl7Query", method = RequestMethod.POST) @ResponseBody String transformC32ToPixQuery(@RequestParam("c32Xml") String c32xml); @RequestMapping(value = "/pixAdd", method = RequestMethod.POST) @ResponseBody String reqToPixAdd(@RequestParam("c32Xml") String c32xml); @RequestMapping(value = "/pixUpdate", method = RequestMethod.POST) @ResponseBody String reqToPixUpdate(@RequestParam("c32Xml") String c32xml); @RequestMapping(value = "/pixQuery", method = RequestMethod.POST) @ResponseBody PixManagerBean reqToPixQuery(@RequestParam("c32Xml") String c32xml); void setPixOperationsService(PixOperationsService pixOperationsService); void setPixManagerTransformService(
			PixManagerTransformService pixManagerTransformService); }
PixMgrController { @RequestMapping(value = "/pixUpdate", method = RequestMethod.POST) public @ResponseBody String reqToPixUpdate(@RequestParam("c32Xml") String c32xml) throws C32ParserException, Hl7v3TransformerException { String hl7v3Xml = pixManagerTransformService.getPixUpdateXml(c32xml); String pixUpdateMessage = pixOperationsService.updatePerson(hl7v3Xml); return pixUpdateMessage; }  @RequestMapping(value = "/tansformHl7Add", method = RequestMethod.POST) @ResponseBody String transformC32ToPixAdd(@RequestParam("c32Xml") String c32xml); @RequestMapping(value = "/tansformHl7Update", method = RequestMethod.POST) @ResponseBody String transformC32ToPixUpdate(@RequestParam("c32Xml") String c32xml); @RequestMapping(value = "/tansformHl7Query", method = RequestMethod.POST) @ResponseBody String transformC32ToPixQuery(@RequestParam("c32Xml") String c32xml); @RequestMapping(value = "/pixAdd", method = RequestMethod.POST) @ResponseBody String reqToPixAdd(@RequestParam("c32Xml") String c32xml); @RequestMapping(value = "/pixUpdate", method = RequestMethod.POST) @ResponseBody String reqToPixUpdate(@RequestParam("c32Xml") String c32xml); @RequestMapping(value = "/pixQuery", method = RequestMethod.POST) @ResponseBody PixManagerBean reqToPixQuery(@RequestParam("c32Xml") String c32xml); void setPixOperationsService(PixOperationsService pixOperationsService); void setPixManagerTransformService(
			PixManagerTransformService pixManagerTransformService);  }