Produced by Araxis Merge on 7/20/2018 12:56:39 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 | CTT_Release_8_June_2018.zip\CTT_ISAAC\db-config-builder\src\test\java\test | TestConversionConfiguration.java | Tue Jul 17 16:27:35 2018 UTC |
| 2 | CTT_Release_8_June_2018.zip\CTT_ISAAC\db-config-builder\src\test\java\test | TestConversionConfiguration.java | Wed Jul 18 19:03:16 2018 UTC |
| Description | Between Files 1 and 2 |
|
|---|---|---|
| Text Blocks | Lines | |
| Unchanged | 3 | 234 |
| 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 te st; | |
| 2 | ||
| 3 | import jav a.util.Arr ays; | |
| 4 | import jav a.util.Has hMap; | |
| 5 | import jav a.util.Has hSet; | |
| 6 | import jav a.util.Set ; | |
| 7 | import gov .vha.isaac .ochre.pom builder.Gi tPublish; | |
| 8 | import gov .vha.isaac .ochre.pom builder.ar tifacts.Co nverter; | |
| 9 | import gov .vha.isaac .ochre.pom builder.ar tifacts.IB DFFile; | |
| 10 | import gov .vha.isaac .ochre.pom builder.ar tifacts.SD OSourceCon tent; | |
| 11 | import gov .vha.isaac .ochre.pom builder.co nverter.Co ntentConve rterCreato r; | |
| 12 | import gov .vha.isaac .ochre.pom builder.co nverter.Co nverterOpt ionParam; | |
| 13 | import jav afx.applic ation.Plat form; | |
| 14 | ||
| 15 | public cla ss TestCon versionCon figuration | |
| 16 | { | |
| 17 | ||
| 18 | pu blic stati c void mai n(String[] args) thr ows Except ion | |
| 19 | { | |
| 20 | String git TestURL = "https:// DNS : PORT /git/"; | |
| 21 | Stri ng gitUser name = ""; | |
| 22 | char [] gitPass word = "". toCharArra y(); | |
| 23 | ||
| 24 | String nex usUrl = "h ttps:// DNS : PORT /nexus/con tent/group s/public/" ; | |
| 25 | Stri ng nexusUs ername = " "; | |
| 26 | Stri ng nexusPa ssword = " "; | |
| 27 | ||
| 28 | Syst em.setProp erty("java .awt.headl ess", "tru e"); | |
| 29 | ||
| 30 | Syst em.out.pri ntln(GitPu blish.read Tags(gitTe stURL, git Username, gitPasswor d)); | |
| 31 | //vh at | |
| 32 | // Syst em.out.pri ntln(Conte ntConverte rCreator.c reateConte ntConverte r(new SDOS ourceConte nt("gov.vh a.isaac.te rminology. source.vha t", "vhat- src-data", "2016.01. 07"), | |
| 33 | // "4.1-S NAPSHOT", new SDOSou rceContent [0], new I BDFFile[0] , null, gi tTestURL, gitUsernam e, gitPass word)); | |
| 34 | ||
| 35 | //lo inc | |
| 36 | // Syst em.out.pri ntln(Conte ntConverte rCreator.c reateConte ntConverte r(new SDOS ourceConte nt("gov.vh a.isaac.te rminology. source.loi nc", "loin c-src-data ", "2.54") , | |
| 37 | // "5.1-S NAPSHOT", new SDOSou rceContent [0], new I BDFFile[0] , null, gi tTestURL, gitUsernam e, gitPass word)); | |
| 38 | ||
| 39 | //lo inc-tech-p review | |
| 40 | // Syst em.out.pri ntln(Conte ntConverte rCreator.c reateConte ntConverte r(new SDOS ourceConte nt("gov.vh a.isaac.te rminology. source.loi nc", "loin c-src-data -tech-prev iew", "201 5.08.01"), | |
| 41 | // "5.1-S NAPSHOT", | |
| 42 | // new SD OSourceCon tent[] {ne w SDOSourc eContent(" gov.vha.is aac.termin ology.sour ce.loinc", "loinc-sr c-data", " 2.54")}, | |
| 43 | // new IB DFFile[] { new IBDFFi le("gov.vh a.isaac.te rminology. converted" , "rf2-ibd f-sct", "2 0150731-lo ader-3.1-S NAPSHOT", "Snapshot" )}, | |
| 44 | // null, gitTestURL , gitUsern ame, gitPa ssword)); | |
| 45 | ||
| 46 | // //sc t | |
| 47 | // Syst em.out.pri ntln(Conte ntConverte rCreator.c reateConte ntConverte r(new SDOS ourceConte nt("gov.vh a.isaac.te rminology. source.rf2 ", "rf2-sr c-data-sct ", "201507 31"), | |
| 48 | // "3.1-S NAPSHOT", new SDOSou rceContent [0], new I BDFFile[0] , null, gi tTestURL, gitUsernam e, gitPass word)); | |
| 49 | ||
| 50 | //sc t-us-ext | |
| 51 | ||
| 52 | Conv erterOptio nParam[] o ptionTypes = Content ConverterC reator.get ConverterO ptions(new Converter ("gov.vha. isaac.term inology.co nverters", "rf2-mojo ", "3.7-SN APSHOT"), | |
| 53 | nexusUrl , nexusUse rname, nex usPassword ); | |
| 54 | ||
| 55 | Hash Map<Conver terOptionP aram, Set< String>> o ptions = n ew HashMap <>(); | |
| 56 | for (Converter OptionPara m x : opti onTypes) | |
| 57 | { | |
| 58 | if (x. getInterna lName().eq uals("modu leUUID")) | |
| 59 | { | |
| 60 | options. put(x, new HashSet<S tring>(Arr ays.asList (new Strin g[] {"c82e fad7-f4bf- 5e81-b223- b5b0305f66 52"}))); | |
| 61 | } | |
| 62 | } | |
| 63 | ||
| 64 | Plat form.runLa ter(() -> | |
| 65 | { | |
| 66 | try | |
| 67 | { | |
| 68 | System.o ut.println (ContentCo nverterCre ator.creat eContentCo nverter(ne w SDOSourc eContent(" gov.vha.is aac.termin ology.sour ce.rf2", " rf2-src-da ta-us-exte nsion", "a abbCcdd"), | |
| 69 | "3 .3-SNAPSHO T", | |
| 70 | ne w SDOSourc eContent[0 ], | |
| 71 | ne w IBDFFile [] {new IB DFFile("go v.vha.isaa c.terminol ogy.conver ted", "rf2 -ibdf-sct" , "2015073 1-loader-3 .3-SNAPSHO T", "Snaps hot")}, | |
| 72 | opti ons, gitTe stURL, git Username, gitPasswor d)); | |
| 73 | } | |
| 74 | catch (Exception e) | |
| 75 | { | |
| 76 | // TODO Auto-gener ated catch block | |
| 77 | e.printS tackTrace( ); | |
| 78 | } | |
| 79 | }); | |
| 80 | Syst em.out.pri ntln(Conte ntConverte rCreator.c reateConte ntConverte r(new SDOS ourceConte nt("gov.vh a.isaac.te rminology. source.rf2 ", "rf2-sr c-data-us- extension" , "aabbCcd d"), | |
| 81 | "3.3-S NAPSHOT", | |
| 82 | new SD OSourceCon tent[0], | |
| 83 | new IB DFFile[] { new IBDFFi le("gov.vh a.isaac.te rminology. converted" , "rf2-ibd f-sct", "2 0150731-lo ader-3.3-S NAPSHOT", "Snapshot" )}, | |
| 84 | options, gitTestUR L, gitUser name, gitP assword)); | |
| 85 | ||
| 86 | Syst em.out.pri ntln(Conte ntConverte rCreator.c reateConte ntConverte r(new SDOS ourceConte nt("gov.vh a.isaac.te rminology. source.rf2 ", "rf2-sr c-data-us- extension" , "aabbCcd d"), | |
| 87 | "3.3-SNA PSHOT", | |
| 88 | new SDOS ourceConte nt[0], | |
| 89 | new IBDF File[] {ne w IBDFFile ("gov.vha. isaac.term inology.co nverted", "rf2-ibdf- sct", "201 50731-load er-3.3-SNA PSHOT", "S napshot")} , | |
| 90 | options, g itTestURL, gitUserna me, gitPas sword)); | |
| 91 | ||
| 92 | ||
| 93 | ||
| 94 | //rx norm | |
| 95 | ||
| 96 | // Conv erterOptio nParam[] o ptionTypes = Content ConverterC reator.get ConverterO ptions(new Converter ("gov.vha. isaac.term inology.co nverters", "rxnorm-m ojo", "5.1 -SNAPSHOT" ), | |
| 97 | // nexusUrl , nexusUse rname, nex usPassword ); | |
| 98 | // | |
| 99 | // Hash Map<Conver terOptionP aram, Set< String>> o ptions = n ew HashMap <>(); | |
| 100 | // for (Converter OptionPara m x : opti onTypes) | |
| 101 | // { | |
| 102 | // if (x. getInterna lName().eq uals("ttyR estriction ")) | |
| 103 | // { | |
| 104 | // options. put(x, new HashSet<S tring>(Arr ays.asList (new Strin g[] {"IN", "SCD"}))) ; | |
| 105 | // } | |
| 106 | // else i f (x.getIn ternalName ().equals( "sabsToInc lude")) | |
| 107 | // { | |
| 108 | // options. put(x, new HashSet<S tring>(Arr ays.asList (new Strin g[] {"ATC" }))); | |
| 109 | // } | |
| 110 | // } | |
| 111 | // | |
| 112 | // Syst em.out.pri ntln(Conte ntConverte rCreator.c reateConte ntConverte r(new SDOS ourceConte nt("gov.vh a.isaac.te rminology. source.rxn orm", "rxn orm-src-da ta", "2016 .05.02"), | |
| 113 | // "5.1 -SNAPSHOT" , | |
| 114 | // new SDOSourceC ontent[0], | |
| 115 | // new IBDFFile[] {new IBDF File("gov. vha.isaac. terminolog y.converte d", "rf2-i bdf-sct", "20150731- loader-3.1 -SNAPSHOT" , "Snapsho t")}, | |
| 116 | // option s, | |
| 117 | // gitTes tURL, gitU sername, g itPassword )); | |
| 118 | } | |
| 119 | } |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.