14087. EPMO Open Source Coordination Office Redaction File Detail Report

Produced by Araxis Merge on 1/4/2018 4:54:41 PM Eastern 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.

14087.1 Files compared

# Location File Last Modified
1 CHAMPVA_Benefit_Eligibility_v1.0.0.zip\webservice\champvapay-service\src\test\java\gov\va\med\mbcp\champva\domain\impl CodeResultTest.java Thu Dec 21 19:52:28 2017 UTC
2 CHAMPVA_Benefit_Eligibility_v1.0.0.zip\webservice\champvapay-service\src\test\java\gov\va\med\mbcp\champva\domain\impl CodeResultTest.java Thu Jan 4 21:01:42 2018 UTC

14087.2 Comparison summary

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

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

14087.4 Active regular expressions

No regular expressions were active.

14087.5 Comparison detail

  1   /**
  2    * The pac kage gov.v a.med.mbcp .champva.d omain.impl  contains  the CodeRe sult class , which
  3    * represe nts a Code  Result Tr ansfer Obj ect in the  Service L ayer. The  abstract C hampVAExce ption,
  4    * along w ith its co ncrete imp lementatio ns, are al so defined  here. 
  5    * 
  6    */
  7   package go v.va.med.m bcp.champv a.domain.i mpl;
  8  
  9   import sta tic org.ju nit.Assert .assertEqu als;
  10   import sta tic org.ju nit.Assert .assertNot Equals;
  11   import sta tic org.ju nit.Assert .assertNot Null;
  12  
  13   import org .junit.Aft er;
  14   import org .junit.Bef ore;
  15   import org .junit.Tes t;
  16  
  17   import gov .va.med.vi stalink.ad apter.reco rd.VistaLi nkFaultExc eption;
  18  
  19   /**
  20    * Unit Te sts for th e CodeResu lt Class
  21    * 
  22    * @author   PII
  23    * @versio n 1.0.0
  24    */
  25   public cla ss CodeRes ultTest {
  26       
  27       privat e static f inal Strin g YES_RESU LT = "Yes" ;
  28       privat e static f inal Strin g NO_RESUL T = "No";
  29       privat e static f inal Strin g COND_RES ULT = "Yes ^You need  to say 'pr etty pleas e!'";
  30  
  31       privat e CodeResu lt mYesRes ult = null ;
  32       privat e CodeResu lt mNoResu lt = null;
  33       privat e CodeResu lt mCondRe sult = nul l;
  34       
  35       /**
  36        * The  setUp met hod, to be  executed  before eac h test and  initializ e the
  37        * Cod eResults u nder test.
  38        * 
  39        * @th rows java. lang.Excep tion - an  Exception  propagated  during se t up.
  40        */
  41       @Befor e
  42       public  void setU p() throws  Exception  {
  43           mY esResult =  new CodeR esult(YES_ RESULT);
  44           mN oResult =  new CodeRe sult(NO_RE SULT);
  45           mC ondResult  = new Code Result(CON D_RESULT);
  46       }
  47  
  48       /**
  49        * The  tearDown  method, to  be execut ed after e ach test a nd dispose  of the
  50        * Cod eResults u nder test.
  51        * 
  52        * @th rows java. lang.Excep tion - an  Exception  propagated  during te ar down.
  53        */
  54       @After
  55       public  void tear Down() thr ows Except ion {
  56           mY esResult =  null;
  57           mN oResult =  null;
  58           mC ondResult  = null;
  59       }
  60  
  61       /**
  62        * Tes t method f or {@link  gov.va.med .mbcp.cham pva.domain .impl.Code Result#Cod eResult()} .
  63        */
  64       @Test
  65       public  void test CodeResult () {
  66           Co deResult e mptyResult  = new Cod eResult();
  67           as sertNotNul l("Initial ization fa iled using  default c onstructor .", emptyR esult);
  68       }
  69  
  70       /**
  71        * Tes t method f or {@link  gov.va.med .mbcp.cham pva.domain .impl.Code Result#Cod eResult(ja va.lang.St ring)}.
  72        */
  73       @Test
  74       public  void test CodeResult String() {
  75           as sertNotNul l("Initial ization fa iled using  CodeResul t(YES_RESU LT).", mYe sResult);
  76           as sertNotNul l("Initial ization fa iled using  CodeResul t(NO_RESUL T).", mNoR esult);
  77           as sertNotNul l("Initial ization fa iled using  CodeResul t(COND_RES ULT).", mC ondResult) ;
  78       }
  79  
  80       /**
  81        * Tes t method f or {@link  gov.va.med .mbcp.cham pva.domain .impl.Code Result#get Result()}.
  82        */
  83       @Test
  84       public  void test GetResult( ) {
  85           St ring piece s[] = COND _RESULT.sp lit("\\^") ;
  86           as sertEquals (YES_RESUL T, mYesRes ult.getRes ult());
  87           as sertEquals (NO_RESULT , mNoResul t.getResul t());
  88           as sertEquals (pieces[0] , mCondRes ult.getRes ult());
  89       }
  90  
  91       /**
  92        * Tes t method f or {@link  gov.va.med .mbcp.cham pva.domain .impl.Code Result#get Message()} .
  93        */
  94       @Test
  95       public  void test GetMessage () {
  96           St ring piece s[] = COND _RESULT.sp lit("\\^") ;
  97           as sertEquals (null, mYe sResult.ge tMessage() );
  98           as sertEquals (null, mNo Result.get Message()) ;
  99           as sertEquals (pieces[1] , mCondRes ult.getMes sage());
  100       }
  101  
  102       /**
  103        * Tes t method f or {@link  gov.va.med .mbcp.cham pva.domain .impl.Code Result#has hCode()}.
  104        */
  105       @Test
  106       public  void test HashCode()  {
  107           Co deResult d Result = n ew CodeRes ult();
  108           as sertEquals (961, dRes ult.hashCo de());
  109           as sertEquals (89736, mY esResult.h ashCode()) ;
  110           as sertEquals (3490, mNo Result.has hCode());
  111           as sertEquals (107694515 6, mCondRe sult.hashC ode());
  112       }
  113  
  114       /**
  115        * Tes t method f or {@link  gov.va.med .mbcp.cham pva.domain .impl.Code Result#equ als(java.l ang.Object )}.
  116        */
  117       @Test
  118       public  void test EqualsObje ct() {
  119           Co deResult y esResult =  new CodeR esult(YES_ RESULT);
  120           Co deResult n oResult =  new CodeRe sult(NO_RE SULT);
  121           Co deResult c ondResult  = new Code Result(CON D_RESULT);
  122           Co deResult d Result = n ew CodeRes ult();
  123           Co deResult e Result = n ew CodeRes ult();
  124           Co deResult f ooResult =  new CodeR esult("Yes ^FUBAR");
  125           Ch ampVAExcep tion ce =  new ChampV AVLFaultEx ception(ne w VistaLin kFaultExce ption("Foo bah!"));
  126           as sertEquals (mYesResul t, yesResu lt);
  127           as sertEquals (mNoResult , noResult );
  128           as sertEquals (mCondResu lt, condRe sult);
  129           as sertEquals (mYesResul t, mYesRes ult);
  130           as sertEquals (dResult,  eResult);
  131           as sertNotEqu als(yesRes ult, null) ;
  132           as sertNotEqu als(noResu lt, ce);
  133           as sertNotEqu als(noResu lt, condRe sult);
  134           as sertNotEqu als(condRe sult, fooR esult);
  135           as sertNotEqu als(dResul t, noResul t);
  136           as sertNotEqu als(yesRes ult, noRes ult);
  137       }
  138  
  139   }