4012. EPMO Open Source Coordination Office Redaction File Detail Report

Produced by Araxis Merge on 6/9/2017 3:51:13 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.

4012.1 Files compared

# Location File Last Modified
1 Fri Jun 9 19:51:13 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 TestSocketTransceiver.java Fri Apr 21 20:03:28 2017 UTC

4012.2 Comparison summary

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

4012.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

4012.4 Active regular expressions

No regular expressions were active.

4012.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 .junit.Tes t;
        23   import org .w3c.dom.D ocument;
        24  
        25   public cla ss TestSoc ketTransce iver exten ds Abstrac tTestCase  {
        26  
        27           @R esource(na me = "pdqJ axbHelper" )
        28           pr ivate Jaxb Util jaxbH elper;
        29  
        30           @R esource(na me = "pati entMatchQu eryToQBPQ2 2Transform er")
        31           pr ivate XMLt oXML patie ntMatchQue ryToQBPQ22 Transforme r;
        32  
        33           @R esource(na me = "mpiS ocketTrans ceiver")
        34           Tr ansceiver< String> so cketTransc eiver;
        35  
        36           @R esource(na me = "xmlT oEr7Transf ormer")
        37           Tr ansformer< Document,  String> xm lToEr7Tran sformer;
        38  
        39           @T est
        40           pu blic void  testMPIQBP Q22Multipl eMatches()  throws IO Exception,
        41                             Transf ormerExcep tion, JAXB Exception,  XPathExce ption {
        42  
        43                    fina l PatientP rofile pat ient = new  PatientPr ofile();
        44                    pati ent.setFir stName("CH DRTWO");
        45                    pati ent.setLas tName("CHD RZZZTESTPA TIENT");
        46                    pati ent.setSsn ("66600000 2");
        47                    fina l PatientM atchQuery  patientMat chQuery =  new Patien tMatchQuer y();
        48                    pati entMatchQu ery.setPat ientProfil e(patient) ;
        49  
        50                    fina l Document  patientMa tchQueryDo cument = t his.jaxbHe lper
        51                                      .marshal (patientMa tchQuery);
        52                    fina l Document  qbpQ22Doc ument = th is.patient MatchQuery ToQBPQ22Tr ansformer
        53                                      .transfo rm(patient MatchQuery Document);
        54                    fina l String q bpQ222ER7  = this.xml ToEr7Trans former
        55                                      .transfo rm(qbpQ22D ocument);
        56                    fina l String r spK22Respo nse = this .socketTra nsceiver
        57                                      .transce ive(qbpQ22 2ER7);
        58                    fina l Document  rspK22Res ponseDocum ent = new  ER7ToXML()
        59                                      .transfo rm(rspK22R esponse);
        60                    Asse rt.assertE quals(
        61                                      XPathUti l.getField ByPath(rsp K22Respons eDocument,  "//QAK.4" ),
        62                                      "4");
        63           }
        64  
        65           @T est
        66           pu blic void  testMPIQBP Q22SingleM atch() thr ows IOExce ption,
        67                             Transf ormerExcep tion, JAXB Exception,  XPathExce ption {
        68  
        69                    fina l PatientP rofile pat ient = new  PatientPr ofile();
        70                    pati ent.setFir stName("CH DRONE");
        71                    pati ent.setLas tName("CHD RZZZTESTPA TIENT");
        72                    pati ent.setSsn ("66600000 1");
        73                    fina l PatientM atchQuery  patientMat chQuery =  new Patien tMatchQuer y();
        74                    pati entMatchQu ery.setPat ientProfil e(patient) ;
        75  
        76                    fina l Document  patientMa tchQueryDo cument = t his.jaxbHe lper
        77                                      .marshal (patientMa tchQuery);
        78                    fina l Document  qbpQ22Doc ument = th is.patient MatchQuery ToQBPQ22Tr ansformer
        79                                      .transfo rm(patient MatchQuery Document);
        80                    fina l String q bpQ222ER7  = this.xml ToEr7Trans former
        81                                      .transfo rm(qbpQ22D ocument);
        82                    fina l String r spK22Respo nse = this .socketTra nsceiver
        83                                      .transce ive(qbpQ22 2ER7);
        84                    fina l Document  rspK22Res ponseDocum ent = new  ER7ToXML()
        85                                      .transfo rm(rspK22R esponse);
        86                    Asse rt.assertE quals(
        87                                      XPathUti l.getField ByPath(rsp K22Respons eDocument,  "//QAK.4" ),
        88                                      "1");
        89           }
        90   }