Produced by Araxis Merge on 10/18/2018 3:19:34 PM Eastern 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.
# | Location | File | Last Modified |
---|---|---|---|
1 | ampl_gui_cif_0.1.0-143.zip\ampl_api_src\src\test\java\gov\va\med\pbm\ampl\utility | ESAPIValidatorTest.java | Tue Sep 25 12:03:18 2018 UTC |
2 | ampl_gui_cif_0.1.0-143.zip\ampl_api_src\src\test\java\gov\va\med\pbm\ampl\utility | ESAPIValidatorTest.java | Thu Oct 18 17:51:55 2018 UTC |
Description | Between Files 1 and 2 |
|
---|---|---|
Text Blocks | Lines | |
Unchanged | 3 | 76 |
Changed | 2 | 4 |
Inserted | 0 | 0 |
Removed | 0 | 0 |
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 |
No regular expressions were active.
1 | package go v.va.med.p bm.ampl.ut ility; | |
2 | ||
3 | ||
4 | import sta tic org.ju nit.Assert .*; | |
5 | ||
6 | import org .junit.Tes t; | |
7 | import org .junit.run ner.RunWit h; | |
8 | import org .springfra mework.boo t.test.con text.Sprin gBootTest; | |
9 | import org .springfra mework.tes t.context. junit4.Spr ingRunner; | |
10 | ||
11 | ||
12 | import gov .va.med.pb m.ampl.uti lity.ESAPI Validator; | |
13 | import gov .va.med.pb m.ampl.uti lity.ESAPI Validation Type; | |
14 | ||
15 | ||
16 | ||
17 | @RunWith(S pringRunne r.class) | |
18 | @SpringBoo tTest | |
19 | public cla ss ESAPIVa lidatorTes t { | |
20 | ||
21 | @T est | |
22 | pu blic void urlValidti on() { | |
23 | String url = "http:/ / DNS . URL "; | |
24 | asse rtEquals(E SAPIValida tor.valida teStringIn put(url, | |
25 | ESAPIVa lidationTy pe.URL), u rl); | |
26 | ||
27 | url = "htt ps:// DNS . URL "; | |
28 | asse rtEquals(E SAPIValida tor.valida teStringIn put(url, | |
29 | ESAPIVa lidationTy pe.URL), u rl); | |
30 | } | |
31 | ||
32 | @Test | |
33 | pu blic void pathManipu lationVali dation() { | |
34 | Stri ng path = "/csp/heal thshare/hs fhir2/fhir access/"; | |
35 | asse rtEquals(E SAPIValida tor.valida teStringIn put(path, | |
36 | ESAPIVa lidationTy pe.PATH_MA NIPULATION ), path); | |
37 | } | |
38 | ||
39 | ||
40 | } |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.