129. EPMO Open Source Coordination Office Redaction File Detail Report

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

129.1 Files compared

# Location File Last Modified
1 IV-eHMP_CIF.zip\IMAG_Source\VISA\Java\CoreValueObjects\main\test\java\gov\va\med\imaging\exchange\business LoadDictionaryContentsTest.java Mon Dec 4 21:35:00 2017 UTC
2 IV-eHMP_CIF.zip\IMAG_Source\VISA\Java\CoreValueObjects\main\test\java\gov\va\med\imaging\exchange\business LoadDictionaryContentsTest.java Mon Dec 4 21:59:02 2017 UTC

129.2 Comparison summary

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

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

129.4 Active regular expressions

No regular expressions were active.

129.5 Comparison detail

  1   /**
  2    * 
  3     Package:  MAG - Vis tA Imaging
  4     WARNING:  Per VHA D irective 2 004-038, t his routin e should n ot be modi fied.
  5     Date Cre ated: Augu st 24, 200 6
  6     Site Nam e:  Washin gton OI Fi eld Office , Silver S pring, MD
  7       Developer:          
PETRB
  8     Descript ion: 
  9  
  10           ;;  +-------- ---------- ---------- ---------- ---------- ---------- ---------- +
  11           ;;  Property  of the US  Government .
  12           ;;  No permis sion to co py or redi stribute t his softwa re is give n.
  13           ;;  Use of un released v ersions of  this soft ware requi res the us er
  14           ;;   to execu te a writt en test ag reement wi th the Vis tA Imaging
  15           ;;   Developm ent Office  of the De partment o f Veterans  Affairs,
  16           ;;   telephon e (301) 73 4-0100.
  17           ;;
  18           ;;  The Food  and Drug A dministrat ion classi fies this  software a s
  19           ;;  a Class I I medical  device.  A s such, it  may not b e changed
  20           ;;  in any wa y.  Modifi cations to  this soft ware may r esult in a n
  21           ;;  adulterat ed medical  device un der 21CFR8 20, the us e of which
  22           ;;  is consid ered to be  a violati on of US F ederal Sta tutes.
  23           ;;  +-------- ---------- ---------- ---------- ---------- ---------- ---------- +
  24    */
  25   package go v.va.med.i maging.exc hange.busi ness;
  26  
  27   import gov .va.med.im aging.exch ange.busin ess.dicom. DicomGatew ayConfigur ation;
  28   import gov .va.med.im aging.exch ange.busin ess.dicom. GatewayDic tionaryCon tents;
  29   import gov .va.med.im aging.exch ange.busin ess.dicom. ModalityDi cInfo;
  30   import gov .va.med.im aging.exch ange.busin ess.dicom. ParameterD eviceInfo;
  31   import gov .va.med.im aging.exch ange.busin ess.dicom. exceptions .DicomDict ionaryExce ption;
  32  
  33   import jav a.io.File;
  34   import jav a.util.Vec tor;
  35  
  36   /**
  37    *
  38    * @author  William P eterson
  39    *
  40    */
  41   public cla ss LoadDic tionaryCon tentsTest  extends Di comCommonT estBase {
  42  
  43           pr ivate Stri ng getRela tiveDictio naryFilena me(String  filename)
  44           {
  45                    Stri ng dicFile name = fil ename; 
  46                    File  dicFile =  new File( dicFilenam e);
  47                    if ( !dicFile.e xists())
  48                    {
  49                             // we  are runnin g from Ima gingExchan ge project 's buildal lspi.cmd f ile
  50                             dicFil ename = ". ./ImagingD icomCommon /" + filen ame; 
  51                             dicFil e = new Fi le(dicFile name);
  52                    }
  53                    retu rn dicFile name;
  54           }
  55  
  56       /*
  57        * @se e DicomCom monTestBas e#setUp()
  58        */
  59       protec ted void s etUp() thr ows Except ion {
  60           su per.setUp( );
  61       }
  62  
  63       /*
  64        * @se e DicomCom monTestBas e#tearDown ()
  65        */
  66       protec ted void t earDown()  throws Exc eption {
  67           su per.tearDo wn();
  68       }
  69  
  70       /**
  71        * Con structor f or LoadDic tionaryCon tentsTest.
  72        * @pa ram arg0
  73        */
  74       public  LoadDicti onaryConte ntsTest(St ring arg0)  {
  75           su per(arg0);
  76       }
  77       
  78       public  void test LoadingMod alityDICFi le() throw s Exceptio n{
  79           
  80           St ring filen ame = getR elativeDic tionaryFil ename("Mod ality_test .dic");
  81           
  82           tr y{
  83                GatewayD ictionaryC ontents.ge tInstance( ).loadModa lityDictio naryList(f ilename);
  84                Vector<M odalityDic Info> moda lityList =  GatewayDi ctionaryCo ntents.get Instance() .getModali tyDictiona ryEntries( );
  85                //Iterat or i = mod alityList. iterator() ;
  86                //while( i.hasNext( )){
  87                //    Mo dalityDicI nfo lineEn try;
  88                //    li neEntry =  (ModalityD icInfo)i.n ext();
  89                //    TE STLOGGER.i nfo("Mfg:  "+lineEntr y.getManuf acturer()) ;
  90                //    TE STLOGGER.i nfo("Model : "+ lineE ntry.getMo del());
  91                //    TE STLOGGER.i nfo("Modal ity Code:  "+ lineEnt ry.getModa lityCode() +"\n");
  92                //}
  93                
  94                if(modal ityList.is Empty()){
  95                    fail ("Modality _test.dic  file is em pty.");
  96                }
  97                TESTLOGG ER.info("M odality_te st.dic con tains "+mo dalityList .size()+"  entries.") ;
  98           }
  99           ca tch (Dicom Dictionary Exception  dde){
  100                TESTLOGG ER.info("E xception t hrown.");
  101                TESTLOGG ER.info("F ailed load ing modali ty.dic fil e.");
  102                dde.prin tStackTrac e();
  103                fail("Fa iled loadi ng Modalit y_test.dic  file.\n") ;
  104           }
  105           TE STLOGGER.i nfo("Succe ssfully lo aded Modal ity_test.d ic file.\n ");
  106       }
  107       
  108       public  void test LoadingCTP armsDICFil e(){
  109           St ring filen ame = getR elativeDic tionaryFil ename("CT_ Param_test .dic");
  110           Di comGateway Configurat ion.getIns tance().se tLocation( "660");
  111           tr y{
  112                GatewayD ictionaryC ontents.ge tInstance( ).loadCTPa rameterLis t(filename );
  113                Vector<P arameterDe viceInfo>  parameterL ist = Gate wayDiction aryContent s.getInsta nce().getC TParameter sList();
  114                //Iterat or i = par ameterList .iterator( );
  115                //while( i.hasNext( )){
  116                //    Pa rameterDev iceInfo li neEntry;
  117                //    li neEntry =  (Parameter DeviceInfo )i.next();
  118                //    TE STLOGGER.i nfo("Site:  "+lineEnt ry.getSite ID());
  119                //    TE STLOGGER.i nfo("Mfg:  "+lineEntr y.getManuf acturer()) ;
  120                //    TE STLOGGER.i nfo("Model : "+ lineE ntry.getMo del());
  121                //    TE STLOGGER.i nfo("Date:  "+lineEnt ry.getChan geDate().t oString()+ "\n");
  122                //}
  123                
  124                if(param eterList.i sEmpty()){
  125                    fail ("CT_Param _test.dic  file is em pty.");
  126                }
  127                TESTLOGG ER.info("C T_Param_te st.dic con tains "+pa rameterLis t.size()+"  entries." );             
  128           }
  129           ca tch (Dicom Dictionary Exception  dde){
  130                TESTLOGG ER.info("E xception t hrown.");
  131                TESTLOGG ER.info("F ailed load ing CT_Par am_test.di c file.");
  132                dde.prin tStackTrac e();
  133                fail("Fa iled loadi ng CT_Para m_test.dic  file.\n") ;
  134           }
  135           TE STLOGGER.i nfo("Succe sfully loa ded CT_Par am_test.di c file.\n" );
  136       }    
  137   }