Produced by Araxis Merge on 4/2/2019 1:06:57 PM 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.
# | Location | File | Last Modified |
---|---|---|---|
1 | C:\AraxisMergeCompare\Pri_un\ARS_Backend\ars_app\src\test\java\gov\va\med\ars\util | EmailTest.java | Wed Mar 27 19:21:16 2019 UTC |
2 | C:\AraxisMergeCompare\Pri_re\ARS_Backend\ars_app\src\test\java\gov\va\med\ars\util | EmailTest.java | Thu Mar 28 17:51:16 2019 UTC |
Description | Between Files 1 and 2 |
|
---|---|---|
Text Blocks | Lines | |
Unchanged | 3 | 100 |
Changed | 2 | 6 |
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.a rs.util; | |
2 | ||
3 | import sta tic org.ju nit.Assert .assertEqu als; | |
4 | ||
5 | import jav a.math.Big Integer; | |
6 | import jav a.util.Arr ayList; | |
7 | import jav a.util.Lis t; | |
8 | ||
9 | import jav ax.mail.in ternet.Int ernetAddre ss; | |
10 | ||
11 | import org .junit.Tes t; | |
12 | ||
13 | public cla ss EmailTe st { | |
14 | ||
15 | @T est | |
16 | pu blic void isValidEma ilTest() { | |
17 | String ema il = " PII "; | |
18 | bool ean isVali d = false; | |
19 | isVa lid = Emai l.isValidE mail(email ); | |
20 | asse rtEquals(t rue, isVal id); | |
21 | } | |
22 | ||
23 | @T est | |
24 | pu blic void getTemplat eNameTest( ) { | |
25 | Stri ng submitt ed = "SUBM ITTED"; | |
26 | Stri ng manuall yClosed = "MANUALLY CLOSED"; | |
27 | ||
28 | Stri ng tempNam e = Email. getTemplat eName(subm itted); | |
29 | Stri ng tempNam eManual = Email.getT emplateNam e(manually Closed); | |
30 | asse rtEquals(" submittedT emplate", tempName); | |
31 | asse rtEquals(" manuallyCl osedTempla te", tempN ameManual) ; | |
32 | } | |
33 | ||
34 | @T est | |
35 | pu blic void getAddress ToTest() { | |
36 | List <String> r ecipients = new Arra yList<>(); | |
37 | recipients .add(" PII "); | |
38 | recipients .add(" PII "); | |
39 | ||
40 | Inte rnetAddres s[] addres sTo = new InternetAd dress[2]; | |
41 | addr essTo = Em ail.getAdd ressTo(rec ipients); | |
42 | ||
43 | asse rtEquals(2 , addressT o.length); | |
44 | } | |
45 | ||
46 | @T est | |
47 | pu blic void buildEmail BodyTest() { | |
48 | Stri ng emailBo dy = ""; | |
49 | ||
50 | emai lBody = Em ail.buildE mailBody(" Header", " message", new BigInt eger("1000 0"), new B igInteger( "20000")); | |
51 | asse rtEquals(t rue, email Body.lengt h() > 0); | |
52 | } | |
53 | } |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.