403. EPMO Open Source Coordination Office Redaction File Detail Report

Produced by Araxis Merge on 12/5/2017 12:06:50 PM Central Standard 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.

403.1 Files compared

# Location File Last Modified
1 IV-eHMP_CIF.zip\IMAG_Source\VISA\Java\VistaImagingDataSourceProvider\main\test\java\gov\va\med\imaging\protocol\vista AbstractVistaConnectionTest.java Mon Dec 4 21:35:14 2017 UTC
2 IV-eHMP_CIF.zip\IMAG_Source\VISA\Java\VistaImagingDataSourceProvider\main\test\java\gov\va\med\imaging\protocol\vista AbstractVistaConnectionTest.java Mon Dec 4 22:07:01 2017 UTC

403.2 Comparison summary

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

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

403.4 Active regular expressions

No regular expressions were active.

403.5 Comparison detail

  1   package go v.va.med.i maging.pro tocol.vist a;
  2  
  3   import gov .va.med.Pr otocolHand lerUtility ;
  4   import gov .va.med.im aging.data source.Dat aSourcePro vider;
  5   import gov .va.med.im aging.data source.Pro vider;
  6   import gov .va.med.im aging.exch ange.busin ess.Resolv edSite;
  7   import gov .va.med.im aging.exch ange.busin ess.Resolv edSiteImpl ;
  8   import gov .va.med.im aging.exch ange.busin ess.Site;
  9   import gov .va.med.im aging.exch ange.busin ess.SiteIm pl;
  10   import gov .va.med.im aging.tomc at.vistare alm.VistaR ealmRoles;
  11   import gov .va.med.im aging.tomc at.vistare alm.VistaR ealmPrinci pal.Authen ticationCr edentialsT ype;
  12   import gov .va.med.im aging.tran sactioncon text.Clien tPrincipal ;
  13   import gov .va.med.im aging.tran sactioncon text.Trans actionCont extFactory ;
  14  
  15   import jav a.net.Malf ormedURLEx ception;
  16   import jav a.net.URL;
  17   import jav a.util.Arr ayList;
  18   import jav a.util.Has hMap;
  19   import jav a.util.Lis t;
  20  
  21   import jun it.framewo rk.TestCas e;
  22  
  23   import org .apache.lo gging.log4 j.Level;
  24   import org .apache.lo gging.log4 j.LogManag er;
  25   import org .apache.lo gging.log4 j.Logger;
  26   import org .apache.lo gging.log4 j.core.con fig.Config urator;
  27  
  28   /**
  29    * An abst ract test  case for a ny test ca se that us es a "vist a" protoco l
  30    * 
  31    * @author         
BECKEC
  32    *
  33    */
  34   public cla ss Abstrac tVistaConn ectionTest  
  35   extends Te stCase
  36   {
  37           pr ivate stat ic final L ist<URL> m etadataUrl s = new Ar rayList<UR L>();
  38           pr ivate stat ic final L ist<URL> a rtifactUrl s = new Ar rayList<UR L>();
  39           
  40           st atic
  41           {
  42                    try
  43                    {
  44                             metada taUrls.add ( new URL( "vista://l ocahost:93 00") );
  45                             metada taUrls.add ( new URL( "vistaimag ing://loca lhost:8080 ") );
  46                             metada taUrls.add ( new URL( "vftp://lo calhost:80 80") );
  47                             
  48                             artifa ctUrls.add ( new URL( "vista://l ocahost:93 00") );
  49                             artifa ctUrls.add ( new URL( "vistaimag ing://loca lhost:9300 ") );
  50                             artifa ctUrls.add ( new URL( "vftp://lo cahost:808 0") );
  51                    }
  52                    catc h (Malform edURLExcep tion x)
  53                    {
  54                             x.prin tStackTrac e();
  55                    }
  56           }
  57           
  58           @O verride
  59           pr otected vo id setUp()  
  60           th rows Excep tion
  61           {
  62                    supe r.setUp();
  63                    
  64                    // t urn loggin g up to ma x
  65                Configur ator.setRo otLevel(Le vel.INFO);
  66                    
  67                
  68                Protocol HandlerUti lity.initi alize(true );
  69                    
  70                    List <String> r oles = new  ArrayList <String>() ;
  71                    role s.add(Vist aRealmRole s.VistaUse rRole.getR oleName()) ;
  72                    Clie ntPrincipa l principa l = new Cl ientPrinci pal(
  73                                      "660", t rue, Authe nticationC redentials Type.Passw ord, 
  74                                      "boating 1", "boati ng1.", 
  75                                      "126", " IMAGPROVID ERONETWOSI X,ONETWOSI X", "84392 4956", "66 0", "Salt  lake City"
  76                                      roles, 
  77                                      new Hash Map<String , Object>( )
  78                    );
  79                    Tran sactionCon textFactor y.createCl ientTransa ctionConte xt(princip al);
  80           }
  81           pr ivate Data SourceProv ider provi der;
  82           pr otected sy nchronized  DataSourc eProvider  getProvide r()
  83           {
  84                    if(p rovider ==  null)
  85                             provid er = new P rovider();
  86                    
  87                    retu rn provide r;
  88           }
  89  
  90           pr otected Si te getTest Site() 
  91           th rows Malfo rmedURLExc eption
  92           {
  93                    retu rn new Sit eImpl("660 ", "Salt L ake City",  "SLC", "l ocalhost",  9300, "lo calhost",  8080, "");
  94           }
  95           
  96           pr ivate Reso lvedSiteIm pl resolve dSite = nu ll;
  97           pr otected sy nchronized  ResolvedS ite getTes tResolvedS ite() 
  98           th rows Malfo rmedURLExc eption
  99           {
  100                    if(r esolvedSit e == null)
  101                    {
  102                             resolv edSite = R esolvedSit eImpl.crea te(
  103                                      getTestS ite(), 
  104                                      true, 
  105                                      false, 
  106                                      true,
  107                                      metadata Urls, 
  108                                      artifact Urls);
  109                    }                 
  110                    retu rn resolve dSite;
  111                    
  112           }
  113           
  114   }