10. EPMO Open Source Coordination Office Redaction File Detail Report

Produced by Araxis Merge on 10/4/2017 8:04:33 AM Central 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.

10.1 Files compared

# Location File Last Modified
1 rdk.zip\rdk\product\production\jbpm\FOBTLabService\src\test\java\gov\va FOBTLabServiceTest.java Mon Aug 21 12:51:00 2017 UTC
2 rdk.zip\rdk\product\production\jbpm\FOBTLabService\src\test\java\gov\va FOBTLabServiceTest.java Tue Oct 3 17:11:40 2017 UTC

10.2 Comparison summary

Description Between
Files 1 and 2
Text Blocks Lines
Unchanged 6 198
Changed 5 10
Inserted 0 0
Removed 0 0

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

10.4 Active regular expressions

No regular expressions were active.

10.5 Comparison detail

  1   package go v.va;
  2  
  3   import sta tic org.ju nit.Assert .*;
  4  
  5   import org .junit.Tes t;
  6   import org .springfra mework.web .client.Re stTemplate ;
  7  
  8   public cla ss FOBTLab ServiceTes t {
  9  
  10           FO BTServiceH andler fob tHandler =  new FOBTS erviceHand ler() {
  11  
  12           @O verride
  13           pu blic Strin g pollJDSR esults(Str ing pid, S tring orde rId) {
  14  
  15                if ((pid  == "1234" ) && (orde rId == "56 789")) {
  16                             return  "Found";
  17                    } el se {
  18                    retu rn "No Lab  Results";
  19                }
  20           }
  21       };
  22  
  23  
  24           //  This are  really int egration t ests, shou ldn't be n eeded to s uccessfull y
  25           //  build and  thus comm ented - se t methods  to static  to use
  26   //      @T est
  27   //      pu blic void  testEstabl ishSession () {
  28   //               Bool ean sessio nEstablish ed = FOBTS erviceHand ler.establ ishSession ();
  29   //               asse rtTrue(ses sionEstabl ished);
  30   //               asse rtNotNull( FOBTServic eHandler.g etSessionI d());
  31   //      }
  32   //
  33   //      @T est
  34   //      pu blic void  testGetRdk Response()  {
  35   //               Stri ng res = F OBTService Handler
  36   //                                 .getRdkR esponse(
  37   //                                                   "http:// IP                /resource/ fhir/patie nt/9E7A;12 9/diagnost icreport?d omain=lab& name=OCCUL T BLOOD&_s ort:desc=d ate&_count =1",
  38   //                                                  fa lse);
  39   //               asse rtNotNull( res);
  40   //
  41   //               // s hould have  a token n ow - try t o reuse it
  42   //               Stri ng res2 =  FOBTServic eHandler
  43   //                                 .getRdkR esponse(
  44   //                                                   "http:// IP                /resource/ fhir/patie nt/9E7A;12 9/diagnost icreport?d omain=lab& name=OCCUL T BLOOD&_s ort:desc=d ate&_count =1",
  45   //                                                  fa lse);
  46   //               asse rtNotNull( res2);
  47   //      }
  48   //
  49   //      @T est
  50   //      pu blic void  testGetRdk ResponseIn validToken () {
  51   //               Stri ng res = F OBTService Handler
  52   //                                 .getRdkR esponse(
  53   //                                                   "http:// IP                /resource/ fhir/patie nt/9E7A;12 9/diagnost icreport?d omain=lab& name=OCCUL T BLOOD&_s ort:desc=d ate&_count =1",
  54   //                                                  fa lse);
  55   //               asse rtNotNull( res);
  56   //
  57   //               // s abotage ou r own toke n - preten d like it  expired
  58   //               FOBT ServiceHan dler
  59   //                                 .setSess ionId("s%3 AbxwyKXXsr FGQAiKaooj oU6UphhYMt 7mR.LbOT5S Kw4UqPTIGi HLnoR3kCXZ mIPoyKUpsn OAA4Cp9");
  60   //
  61   //               Stri ng res2 =  FOBTServic eHandler
  62   //                                 .getRdkR esponse(
  63   //                                                   "http:// IP                /resource/ fhir/patie nt/9E7A;12 9/diagnost icreport?d omain=lab& name=OCCUL T BLOOD&_s ort:desc=d ate&_count =1",
  64   //                                                  fa lse);
  65   //               asse rtNotNull( res2);
  66   //      }
  67   //
  68   //      @T est
  69   //      pu blic void  testGetRdk ResponseNo Token() {
  70   //               FOBT ServiceHan dler.setSe ssionId(nu ll);
  71   //               Stri ng res = F OBTService Handler
  72   //                                 .getRdkR esponse(
  73   //                                                   "http:// IP                /resource/ fhir/patie nt/9E7A;12 9/diagnost icreport?d omain=lab& name=OCCUL T BLOOD&_s ort:desc=d ate&_count =1",
  74   //                                                  fa lse);
  75   //               asse rtNotNull( res);
  76   //      }
  77  
  78           @T est
  79           pu blic void  testgetRDK url() {
  80                    Stri ng rdkUrl  = FOBTServ iceHandler .getRDKurl ();
  81                    asse rtNotNull( rdkUrl);
  82           }
  83  
  84           @T est
  85           pu blic void  testgetRes tTemplate( ) {
  86                    Rest Template r estTemplat e = FOBTSe rviceHandl er.getRest Template() ;
  87                    asse rtNotNull( restTempla te);
  88           }
  89  
  90           @T est
  91           pu blic void  testpollJD SResultsFo und() {
  92                    Stri ng respons e = fobtHa ndler.poll JDSResults ("1234", " 56789");
  93                    asse rtNotNull( response);
  94                    asse rtEquals(" Found", re sponse);
  95           }
  96  
  97           @T est
  98           pu blic void  testpollJD SResultsNo tFound() {
  99                    Stri ng respons e = fobtHa ndler.poll JDSResults ("1212", " 5656");
  100                    asse rtNotNull( response);
  101                    asse rtEquals(" No Lab Res ults", res ponse);
  102           }
  103  
  104   }