Skip to content

Commit 955ed77

Browse files
committed
amend prev
1 parent faa56fc commit 955ed77

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

plugin-gradle/src/test/java/com/diffplug/gradle/spotless/PaddedCellTaskTest.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ public BuildServiceParameters.None getParameters() {
4949
}
5050
});
5151
File file;
52-
File cleanFile;
52+
File outputFile;
5353
SpotlessTaskImpl source;
5454
SpotlessCheck check;
5555
SpotlessApply apply;
@@ -61,7 +61,7 @@ public BuildServiceParameters.None getParameters() {
6161
source = createFormatTask(name, step);
6262
check = createCheckTask(name, source);
6363
apply = createApplyTask(name, source);
64-
cleanFile = new File(source.getCleanDirectory() + "/src", file.getName());
64+
outputFile = new File(source.getCleanDirectory() + "/src", file.getName());
6565
}
6666

6767
private SpotlessTaskImpl createFormatTask(String name, FormatterStep step) {
@@ -143,10 +143,10 @@ void paddedCellFormat() throws Exception {
143143
converge.format();
144144
diverge.format();
145145

146-
assertFile(wellbehaved.cleanFile).hasContent("42"); // cycle -> first element in cycle
147-
assertFile(cycle.cleanFile).hasContent("A"); // cycle -> first element in cycle
148-
assertFile(converge.cleanFile).hasContent(""); // converge -> converges
149-
assertThat(diverge.cleanFile).doesNotExist(); // diverge -> no change
146+
assertFile(wellbehaved.outputFile).hasContent("42"); // cycle -> first element in cycle
147+
assertFile(cycle.outputFile).hasContent("A"); // cycle -> first element in cycle
148+
assertFile(converge.outputFile).hasContent(""); // converge -> converges
149+
assertThat(diverge.outputFile).doesNotExist(); // diverge -> no change
150150
}
151151

152152
@Test

0 commit comments

Comments
 (0)