Produced by Araxis Merge on 4/14/2017 1:54:26 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 | VSS_5_2_2800.zip\VSS_5_2_2800\trunk\web\src\test\java\gov\va\vss\service\email | TestEmailService.java | Thu Apr 13 14:23:52 2017 UTC |
2 | VSS_5_2_2800.zip\VSS_5_2_2800\trunk\web\src\test\java\gov\va\vss\service\email | TestEmailService.java | Thu Apr 13 20:20:53 2017 UTC |
Description | Between Files 1 and 2 |
|
---|---|---|
Text Blocks | Lines | |
Unchanged | 2 | 90 |
Changed | 1 | 2 |
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.vss.s ervice.ema il; | |
2 | ||
3 | import jav a.time.Zon edDateTime ; | |
4 | import jav a.util.Arr ays; | |
5 | import jav a.util.Has hMap; | |
6 | import jav a.util.Map ; | |
7 | ||
8 | import org .junit.Ign ore; | |
9 | import org .junit.Tes t; | |
10 | import org .springfra mework.bea ns.factory .annotatio n.Autowire d; | |
11 | import org .springfra mework.ste reotype.Co mponent; | |
12 | import org .springfra mework.uti l.concurre nt.Listena bleFuture; | |
13 | ||
14 | import gov .va.vss.Ab stractWebA ppTest; | |
15 | import gov .va.vss.se rvice.emai l.impl.Tes tEmailServ iceImpl; | |
16 | import gov .va.vss.ut il.DateUti l; | |
17 | ||
18 | @Component | |
19 | @Ignore | |
20 | public cla ss TestEma ilService extends Ab stractWebA ppTest { | |
21 | ||
22 | @A utowired | |
23 | pr ivate Emai lService e mailServic e; | |
24 | ||
25 | @T est | |
26 | pu blic void testSendEm ail() thro ws Excepti on { | |
27 | bool ean previo usSendEmai lVal = Tes tEmailServ iceImpl.se ndEmail; | |
28 | Test EmailServi ceImpl.sen dEmail = t rue; | |
29 | ||
30 | try { | |
31 | Map<St ring, Obje ct> params = new Has hMap<>(); | |
32 | params .put("succ essfulStat ions", Arr ays.asList ("442")); | |
33 | params .put("unsu ccessfulSt ations", A rrays.asLi st("552")) ; | |
34 | params .put("star tTime", Zo nedDateTim e.of(2012, 1, 1, 0, 0, 0, 0, D ateUtil.UT C)); | |
35 | params .put("comp letionTime ", ZonedDa teTime.of( 2012, 1, 1 , 3, 45, 0 , 0, DateU til.UTC)); | |
36 | ||
37 | Listen ableFuture <Object> r esult = em ailService .sendEmail ( | |
38 | EmailType. BATCH_PROC ESS_COMPLE TION_APP_U SERS_UPDAT ED, new St ring[] { " PII " }, null, | |
39 | params); | |
40 | result .get(); | |
41 | } fi nally { | |
42 | TestEm ailService Impl.sendE mail = pre viousSendE mailVal; | |
43 | } | |
44 | } | |
45 | ||
46 | } |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.