4008. EPMO Open Source Coordination Office Redaction File Detail Report

Produced by Araxis Merge on 6/9/2017 3:51:12 PM Eastern Daylight Time. See www.araxis.com for information about Merge. This report uses XHTML and CSS2, and is best viewed with a modern standards-compliant browser. For optimum results when printing this report, use landscape orientation and enable printing of background images and colours in your browser.

4008.1 Files compared

# Location File Last Modified
1 Fri Jun 9 19:51:12 2017 UTC
2 eHealth_Exch (eHealth Exchange Enhancements) Build 3 docs & code_May_2017.zip\VAP_CIF_CODE0502.zip\VAP_CIF_CODE0502\VAP_CIF_CODE0502\nvap-server\src\test\java\gov\va\nvap\server\test\endpoint\mvi SocketTransceiverLive.java Fri Apr 21 20:03:28 2017 UTC

4008.2 Comparison summary

Description Between
Files 1 and 2
Text Blocks Lines
Unchanged 0 0
Changed 0 0
Inserted 1 68
Removed 0 0

4008.3 Comparison options

Whitespace
Character case Differences in character case are significant
Line endings Differences in line endings (CR and LF characters) are ignored
CR/LF characters Not shown in the comparison detail

4008.4 Active regular expressions

No regular expressions were active.

4008.5 Comparison detail

        1   package go v.va.nvap. server.tes t.endpoint .mvi;
        2  
        3   import gov .va.nvap.c ommon.jaxb .JaxbUtil;
        4   import gov .va.nvap.c ommon.tran sceiver.cl ient.Trans ceiver;
        5   import gov .va.nvap.c ommon.tran sformer.Tr ansformer;
        6   import gov .va.nvap.c ommon.tran sformer.Tr ansformerE xception;
        7   import gov .va.nvap.c ommon.tran sformer.hl 7.ER7ToXML ;
        8   import gov .va.nvap.c ommon.tran sformer.xs l.XMLtoXML ;
        9   import gov .va.nvap.c ommon.xpat h.XPathExc eption;
        10   import gov .va.nvap.c ommon.xpat h.XPathUti l;
        11   import gov .va.nvap.s erver.test .common.Ab stractTest Case;
        12   import gov .va.nvap.s ervice.pdq .PatientMa tchQuery;
        13   import gov .va.nvap.s ervice.pdq .PatientPr ofile;
        14  
        15   import jav a.io.IOExc eption;
        16  
        17   import jav ax.annotat ion.Resour ce;
        18   import jav ax.xml.bin d.JAXBExce ption;
        19  
        20   import jun it.framewo rk.Assert;
        21  
        22   import org .springfra mework.tes t.context. ContextCon figuration ;
        23   import org .w3c.dom.D ocument;
        24  
        25   @ContextCo nfiguratio n(location s = {
        26                    "cla sspath:gov /va/nvap/s erver/serv er-common. xml",
        27                    "cla sspath:gov /va/nvap/s erver/endp oint/pdq/p dq-endpoin t.xml",
        28                    "cla sspath:gov /va/nvap/s erver/endp oint/mvi/m vi-endpoin t.xml",
        29                    "cla sspath:gov /va/nvap/s erver/endp oint/vista /vista-end point.xml"  })
        30   public cla ss SocketT ransceiver Live exten ds Abstrac tTestCase  {
        31  
        32           @R esource(na me = "pdqJ axbHelper" )
        33           pr ivate Jaxb Util jaxbH elper;
        34  
        35           @R esource(na me = "pati entMatchQu eryToQBPQ2 2Transform er")
        36           pr ivate XMLt oXML patie ntMatchQue ryToQBPQ22 Transforme r;
        37  
        38           @R esource(na me = "mpiS ocketTrans ceiver")
        39           Tr ansceiver< String> so cketTransc eiver;
        40  
        41           @R esource(na me = "xmlT oEr7Transf ormer")
        42           Tr ansformer< Document,  String> xm lToEr7Tran sformer;
        43  
        44           pu blic void  liveMPIQBP Q22SingleM atch() thr ows IOExce ption,
        45                             Transf ormerExcep tion, JAXB Exception,  XPathExce ption {
        46  
        47                    fina l PatientP rofile pat ient = new  PatientPr ofile();
        48                    pati ent.setFir stName("CH DRONE");
        49                    pati ent.setLas tName("CHD RZZZTESTPA TIENT");
        50                    pati ent.setSsn ("66600000 1");
        51                    fina l PatientM atchQuery  patientSea rchRequest  = new Pat ientMatchQ uery();
        52                    pati entSearchR equest.set PatientPro file(patie nt);
        53  
        54                    fina l Document  patientSe archReques tDocument  = this.jax bHelper
        55                                      .marshal (patientSe archReques t);
        56                    fina l Document  qbpQ22Doc ument = th is.patient MatchQuery ToQBPQ22Tr ansformer
        57                                      .transfo rm(patient SearchRequ estDocumen t);
        58                    fina l String q bpQ222ER7  = this.xml ToEr7Trans former
        59                                      .transfo rm(qbpQ22D ocument);
        60                    fina l String r spK22Respo nse = this .socketTra nsceiver
        61                                      .transce ive(qbpQ22 2ER7);
        62                    fina l Document  rspK22Res ponseDocum ent = new  ER7ToXML()
        63                                      .transfo rm(rspK22R esponse);
        64                    Asse rt.assertE quals(
        65                                      XPathUti l.getField ByPath(rsp K22Respons eDocument,  "//QAK.4" ),
        66                                      "1");
        67           }
        68   }