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

14086.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 ChampVAExceptionTest.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 ChampVAExceptionTest.java Thu Jan 4 21:01:34 2018 UTC

14086.2 Comparison summary

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

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

14086.4 Active regular expressions

No regular expressions were active.

14086.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  
  11   import jav ax.naming. NamingExce ption;
  12   import jav ax.resourc e.Resource Exception;
  13  
  14   import org .junit.Tes t;
  15  
  16   import com .fasterxml .jackson.c ore.JsonGe nerationEx ception;
  17  
  18   import gov .va.med.ex ception.Fo undationsE xception;
  19   import gov .va.med.vi stalink.ad apter.reco rd.VistaLi nkFaultExc eption;
  20  
  21   /**
  22    * Unit Te sts for th e ChampVAE xception C lasses.
  23    * 
  24    * @author   PII
  25    * @versio n 1.0.0
  26    */
  27   public cla ss ChampVA ExceptionT est {
  28  
  29       /**
  30        * Tes t that a C hampVAVLFa ultExcepti on returns  the Error  Code 100.
  31        */
  32       @Test
  33       public  void test ChampVAVLF aultExcept ion() {
  34           Ch ampVAExcep tion champ VAExceptio n = new Ch ampVAVLFau ltExceptio n(new Vist aLinkFault Exception( "WOOT!"));
  35           as sertEquals (ChampVAEx ception.VI STALINK_FA ULT_EXCEPT ION, champ VAExceptio n.getError Code());
  36       }
  37  
  38       /**
  39        * Tes t that a C hampVAFoun dationsExc eption ret urns the E rror Code  200.
  40        */
  41       @Test
  42       public  void test ChampVAFou ndationsEx ception()  {
  43           Ch ampVAExcep tion champ VAExceptio n = new Ch ampVAFound ationsExce ption(new  Foundation sException ("WOOT!")) ;
  44           as sertEquals (ChampVAEx ception.FO UNDATIONS_ EXCEPTION,  champVAEx ception.ge tErrorCode ());
  45       }
  46  
  47       /**
  48        * Tes t that a C hampVANami ngExceptio n returns  the Error  Code 300.
  49        */
  50       @Test
  51       public  void test ChampVANam ingExcepti on() {
  52           Ch ampVAExcep tion champ VAExceptio n = new Ch ampVANamin gException (new Namin gException ("WOOT!")) ;
  53           as sertEquals (ChampVAEx ception.NA MING_EXCEP TION, cham pVAExcepti on.getErro rCode());
  54       }
  55  
  56       /**
  57        * Tes t that a C hampVAReso urceExcept ion return s the Erro r Code 400 .
  58        */
  59       @Test
  60       public  void test ChampVARes ourceExcep tion() {
  61           Ch ampVAExcep tion champ VAExceptio n = new Ch ampVAResou rceExcepti on(new Res ourceExcep tion("WOOT !"));
  62           as sertEquals (ChampVAEx ception.RE SOURCE_EXC EPTION, ch ampVAExcep tion.getEr rorCode()) ;
  63       }
  64  
  65       /**
  66        * Tes t that a C hampVAJson Exception  returns th e Error Co de 500.
  67        */
  68       @Test
  69       public  void test ChampVAJso nException () {
  70           Ch ampVAExcep tion champ VAExceptio n = new Ch ampVAJsonE xception(n ew JsonGen erationExc eption("WO OT!"));
  71           as sertEquals (ChampVAEx ception.JS ON_PROCESS ING_EXCEPT ION, champ VAExceptio n.getError Code());
  72       }
  73  
  74   }