|
25 | 25 | public class TxtWorkAroundRegression { |
26 | 26 | final static private String ROOTFOLDER = "E:\\arduinoTxt-Backup-2021-08-19"; |
27 | 27 | private Path myPath; |
| 28 | + |
| 29 | + //this value should only be true for on, github |
| 30 | + //you can set it to false to test differences in outcome of you code changes |
| 31 | + //to do so make a copy of the original code od io.sloeber.core.txt.WorkAround |
| 32 | + // and name it io.sloeber.core.txt.WorkAroundOrg (do not check it in) |
| 33 | + //modify io.sloeber.core.txt.WorkAround |
| 34 | + //running the test will provide the differences between the 2 code sets |
| 35 | + // for all platform.txt files provided |
| 36 | + private boolean comparePlarformFiles = true; |
| 37 | + //following variables are only used when comparePlarformFiles is false |
28 | 38 | private Path myOutputPath = new Path( |
29 | 39 | "E:\\test\\workaround\\" + LocalDate.now().format(DateTimeFormatter.ofPattern("yyyy-MM-DD"))); |
30 | | - private boolean comparePlarformFiles = false; |
31 | 40 | static private int differenceCount = 0; |
32 | 41 |
|
33 | 42 | public TxtWorkAroundRegression(String pathName) { |
@@ -141,6 +150,7 @@ public void platformTxt() throws Exception { |
141 | 150 |
|
142 | 151 | if (!cleanedOldWorkAround.equals(cleanedCurrentWorkAround)) { |
143 | 152 | differenceCount += 1; |
| 153 | + @SuppressWarnings("boxing") |
144 | 154 | String prefix = String.format("%04d", differenceCount) + "_"; |
145 | 155 | System.err.println("ERROR for " + inputFile); |
146 | 156 | String difference = StringUtils.difference(cleanedCurrentWorkAround, cleanedOldWorkAround); |
|
0 commit comments