Produced by Araxis Merge on 12/5/2017 12:06:38 PM Central 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.
| # | Location | File | Last Modified |
|---|---|---|---|
| 1 | IV-eHMP_CIF.zip\IMAG_Source\VISA\Java\CoreValueObjects\main\test\java\gov\va\med\imaging\exchange\business | DicomCommonTestBase.java | Mon Dec 4 21:35:00 2017 UTC |
| 2 | IV-eHMP_CIF.zip\IMAG_Source\VISA\Java\CoreValueObjects\main\test\java\gov\va\med\imaging\exchange\business | DicomCommonTestBase.java | Mon Dec 4 21:59:02 2017 UTC |
| Description | Between Files 1 and 2 |
|
|---|---|---|
| Text Blocks | Lines | |
| Unchanged | 2 | 248 |
| 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 | /** | |
| 2 | * | |
| 3 | Package: MAG - Vis tA Imaging | |
| 4 | WARNING: Per VHA D irective 2 004-038, t his routin e should n ot be modi fied. | |
| 5 | Date Cre ated: Augu st 24, 200 6 | |
| 6 | Site Nam e: Washin gton OI Fi eld Office , Silver S pring, MD | |
| 7 | Developer:
|
|
| 8 | Descript ion: | |
| 9 | ||
| 10 | ;; +-------- ---------- ---------- ---------- ---------- ---------- ---------- + | |
| 11 | ;; Property of the US Government . | |
| 12 | ;; No permis sion to co py or redi stribute t his softwa re is give n. | |
| 13 | ;; Use of un released v ersions of this soft ware requi res the us er | |
| 14 | ;; to execu te a writt en test ag reement wi th the Vis tA Imaging | |
| 15 | ;; Developm ent Office of the De partment o f Veterans Affairs, | |
| 16 | ;; telephon e (301) 73 4-0100. | |
| 17 | ;; | |
| 18 | ;; The Food and Drug A dministrat ion classi fies this software a s | |
| 19 | ;; a Class I I medical device. A s such, it may not b e changed | |
| 20 | ;; in any wa y. Modifi cations to this soft ware may r esult in a n | |
| 21 | ;; adulterat ed medical device un der 21CFR8 20, the us e of which | |
| 22 | ;; is consid ered to be a violati on of US F ederal Sta tutes. | |
| 23 | ;; +-------- ---------- ---------- ---------- ---------- ---------- ---------- + | |
| 24 | */ | |
| 25 | package go v.va.med.i maging.exc hange.busi ness; | |
| 26 | ||
| 27 | import jun it.framewo rk.TestCas e; | |
| 28 | ||
| 29 | import jav a.nio.char set.Charse t; | |
| 30 | ||
| 31 | import org .apache.lo gging.log4 j.Level; | |
| 32 | import org .apache.lo gging.log4 j.LogManag er; | |
| 33 | import org .apache.lo gging.log4 j.Logger; | |
| 34 | import org .apache.lo gging.log4 j.core.Log gerContext ; | |
| 35 | import org .apache.lo gging.log4 j.core.app ender.Cons oleAppende r; | |
| 36 | import org .apache.lo gging.log4 j.core.con fig.Append erRef; | |
| 37 | import org .apache.lo gging.log4 j.core.con fig.Config uration; | |
| 38 | import org .apache.lo gging.log4 j.core.con fig.Config urator; | |
| 39 | import org .apache.lo gging.log4 j.core.con fig.Logger Config; | |
| 40 | import org .apache.lo gging.log4 j.core.lay out.Patter nLayout; | |
| 41 | ||
| 42 | /** | |
| 43 | * | |
| 44 | * @author William P eterson | |
| 45 | * | |
| 46 | */ | |
| 47 | public cla ss DicomCo mmonTestBa se extends TestCase { | |
| 48 | ||
| 49 | public static Lo gger TESTL OGGER = nu ll; //LogM anager.get Logger("JU NIT_TEST") ; | |
| 50 | public static Lo gger logge r = null; //LogManag er.getLogg er(DicomCo mmonTestBa se.class); | |
| 51 | public static Co nsoleAppen der append er; | |
| 52 | ||
| 53 | ||
| 54 | /* | |
| 55 | * @se e TestCase #setUp() | |
| 56 | */ | |
| 57 | @Suppr essWarning s("depreca tion") | |
| 58 | protec ted void s etUp() thr ows Except ion { | |
| 59 | su per.setUp( ); | |
| 60 | // appender = new Conso leAppender (new Patte rnLayout() ); | |
| 61 | // TESTLOGGER .addAppend er(appende r); | |
| 62 | // TESTLOGGER .setLevel( Level.INFO ); | |
| 63 | // logger.add Appender(a ppender); | |
| 64 | // logger.set Level(Leve l.ERROR); | |
| 65 | ||
| 66 | ||
| 67 | Lo ggerContex t context= (LoggerCo ntext) Log Manager.ge tContext() ; | |
| 68 | Co nfiguratio n config= context.ge tConfigura tion(); | |
| 69 | ||
| 70 | Patt ernLayout layout = P atternLayo ut.createL ayout( | |
| 71 | "%d{DATE } %5p [%t] (%F:%L) - %m%n", | |
| 72 | null, | |
| 73 | null, | |
| 74 | null, | |
| 75 | Charset. defaultCha rset(), | |
| 76 | false, | |
| 77 | false, | |
| 78 | null, | |
| 79 | null); | |
| 80 | ||
| 81 | ap pender=Con soleAppend er.createA ppender(la yout, null , null, "C ONSOLE_APP ENDER", nu ll, null); | |
| 82 | appender .start(); | |
| 83 | ||
| 84 | Appender Ref ref= A ppenderRef .createApp enderRef(" CONSOLE_AP PENDER",nu ll,null); | |
| 85 | Ap penderRef[ ] refs = n ew Appende rRef[] {re f}; | |
| 86 | Lo ggerConfig loggerCon fig= Logge rConfig.cr eateLogger ( | |
| 87 | "false ", Level.I NFO,"CONSO LE_LOGGER" ,"true", | |
| 88 | refs,n ull,config ,null); | |
| 89 | lo ggerConfig .addAppend er(appende r,null,nul l); | |
| 90 | ||
| 91 | conf ig.addAppe nder(appen der); | |
| 92 | co nfig.addLo gger("Dico mCommonTes tBase", lo ggerConfig ); | |
| 93 | co ntext.upda teLoggers( config); | |
| 94 | ||
| 95 | lo gger=LogMa nager.getC ontext().g etLogger(" DicomCommo nTestBase" ); | |
| 96 | Co nfigurator .setLevel( "DicomComm onTestBase ", Level.E RROR); | |
| 97 | ||
| 98 | conf ig.addAppe nder(appen der); | |
| 99 | co nfig.addLo gger("JUNI T_TEST", l oggerConfi g); | |
| 100 | co ntext.upda teLoggers( config); | |
| 101 | ||
| 102 | TE STLOGGER=L ogManager. getContext ().getLogg er("JUNIT_ TEST"); | |
| 103 | Co nfigurator .setLevel( "JUNIT_TES T", Level. INFO); | |
| 104 | ||
| 105 | } | |
| 106 | ||
| 107 | /* | |
| 108 | * @se e TestCase #tearDown( ) | |
| 109 | */ | |
| 110 | protec ted void t earDown() throws Exc eption { | |
| 111 | su per.tearDo wn(); | |
| 112 | // TESTLOGGER .removeAll Appenders( ); | |
| 113 | Lo gManager.s hutdown(); | |
| 114 | ||
| 115 | } | |
| 116 | ||
| 117 | /** | |
| 118 | * Con structor f or DicomCo mmonTestBa se. | |
| 119 | * @pa ram arg0 | |
| 120 | */ | |
| 121 | public DicomComm onTestBase (String ar g0) { | |
| 122 | su per(arg0); | |
| 123 | } | |
| 124 | ||
| 125 | } |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.