3989. EPMO Open Source Coordination Office Redaction File Detail Report

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

3989.1 Files compared

# Location File Last Modified
1 Fri Jun 9 19:51:10 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\endpoint\permission\sls SLSClientIT.java Fri Apr 21 20:15:58 2017 UTC

3989.2 Comparison summary

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

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

3989.4 Active regular expressions

No regular expressions were active.

3989.5 Comparison detail

        1   package go v.va.nvap. server.end point.perm ission.sls ;
        2  
        3   import gov .va.nvap.s vc.consent eval.commo n.XACMLCon textConsta nts;
        4   import jav a.io.ByteA rrayOutput Stream;
        5   import jav a.io.Input Stream;
        6   import org .apache.co mmons.io.I OUtils;
        7   import org .junit.Aft er;
        8   import org .junit.Aft erClass;
        9   import org .junit.Bef ore;
        10   import org .junit.Bef oreClass;
        11   import org .junit.Tes t;
        12   import sta tic org.ju nit.Assert .*;
        13   import org .junit.run ner.RunWit h;
        14   import org .springfra mework.bea ns.factory .annotatio n.Autowire d;
        15   import org .springfra mework.tes t.context. ContextCon figuration ;
        16   import org .springfra mework.tes t.context. junit4.Spr ingJUnit4C lassRunner ;
        17  
        18   /**
        19    * Integra tion test  for the SL SClient.
        20    * To make  this run,  copy
        21    * nvap-se rver/src/m ain/resour ces/gov/va /nvap/serv er/service /permissio n/sls/simu lator/slsS imulator.p roperties
        22    * to the  config sub directory  of the dep loyed doma in, then s tart the d omain with  VAP deplo yed.
        23    * 
        24    * The Spr ing config  loads cla sspath:ser ver.proper ties; see  the sls.se rviceLocat ion
        25    * propert y in there . You may  need to ad just the p ort number  depending  on which
        26    * port yo ur app ser ver is run ning on.
        27    * @author  cbarber
        28    */
        29   @RunWith(S pringJUnit 4ClassRunn er.class)
        30   @ContextCo nfiguratio n(location s = {"clas spath:gov/ va/nvap/se rver/test/ endpoint/p ermission/ sls/sls-en dpoint.xml "})
        31   public cla ss SLSClie ntIT
        32   {
        33       privat e static f inal Strin g SAMPLE_H EALTH_SUMM ARY = "/go v/va/nvap/ server/tes t/endpoint /permissio n/sls/samp le_C-CDA_C CD.xml";
        34  
        35       @Autow ired
        36       privat e SLSClien t slsClien t;
        37       
        38       public  SLSClient IT()
        39       {
        40       }
        41       
        42       @Befor eClass
        43       public  static vo id setUpCl ass()
        44       {
        45       }
        46       
        47       @After Class
        48       public  static vo id tearDow nClass()
        49       {
        50       }
        51       
        52       @Befor e
        53       public  void setU p()
        54       {
        55       }
        56       
        57       @After
        58       public  void tear Down()
        59       {
        60       }
        61  
        62       /**
        63        * Tes t of sendP atientCate gory metho d, of clas s SLSClien t.
        64        */
        65       @Test
        66       public  void test EvalConfid entialityC ode() thro ws Excepti on
        67       {
        68           In putStream  testInput  = getClass ().getReso urceAsStre am(SAMPLE_ HEALTH_SUM MARY);
        69           By teArrayOut putStream  tempBytes  = new Byte ArrayOutpu tStream();
        70           IO Utils.copy (testInput , tempByte s);
        71           St ring expRe sult = XAC MLContextC onstants.R ESOURCE_CO NF_CODE_VA L_RESTRICT ED;
        72           St ring resul t = slsCli ent.evalCo nfidential ityCode(te mpBytes.to ByteArray( ));
        73           as sertEquals (expResult , result);
        74       }
        75      
        76   }