Skip to content

Commit c4b54b1

Browse files
author
jantje
committed
#1476 fix regression test issue
1 parent 7903672 commit c4b54b1

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

io.sloeber.tests/src/io/sloeber/junit/TxtWorkAroundRegression.java

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,18 @@
2525
public class TxtWorkAroundRegression {
2626
final static private String ROOTFOLDER = "E:\\arduinoTxt-Backup-2021-08-19";
2727
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
2838
private Path myOutputPath = new Path(
2939
"E:\\test\\workaround\\" + LocalDate.now().format(DateTimeFormatter.ofPattern("yyyy-MM-DD")));
30-
private boolean comparePlarformFiles = false;
3140
static private int differenceCount = 0;
3241

3342
public TxtWorkAroundRegression(String pathName) {
@@ -141,6 +150,7 @@ public void platformTxt() throws Exception {
141150

142151
if (!cleanedOldWorkAround.equals(cleanedCurrentWorkAround)) {
143152
differenceCount += 1;
153+
@SuppressWarnings("boxing")
144154
String prefix = String.format("%04d", differenceCount) + "_";
145155
System.err.println("ERROR for " + inputFile);
146156
String difference = StringUtils.difference(cleanedCurrentWorkAround, cleanedOldWorkAround);

0 commit comments

Comments
 (0)