Skip to content

Commit 5573556

Browse files
committed
a reformat code
1 parent 395a61b commit 5573556

File tree

3 files changed

+14
-15
lines changed

3 files changed

+14
-15
lines changed

approvaltests-tests/src/test/java/org/approvaltests/InlineApprovalsTest.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,16 +63,15 @@ public void testyMctest(int foo) {
6363
Approvals.verifyAll("Substitution", inputs,
6464
i -> InlineComparator.createNewReceivedFileText(i, "1\n2", "testyMctest"));
6565
}
66-
6766
@Test
6867
@UseReporter(QuietReporter.class)
6968
public void testReportingCode()
7069
{
7170
Options inlineWithCode = new Options().inline("", true);
7271
Options inlineNoCode = new Options().inline("", false);
73-
7472
var resultWithCode = inlineWithCode.getReporter();
7573
assertEquals(InlineComparator.class, resultWithCode.getClass());
76-
assertEquals(QuietReporter.class, ((FirstWorkingReporter)inlineNoCode.getReporter()).getReporters()[1].getClass());
74+
assertEquals(QuietReporter.class,
75+
((FirstWorkingReporter) inlineNoCode.getReporter()).getReporters()[1].getClass());
7776
}
7877
}

approvaltests/src/main/java/org/approvaltests/core/Options.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919

2020
public class Options
2121
{
22-
2322
private enum Fields {
2423
SCRUBBER, REPORTER, FILE_OPTIONS_FILE_EXTENSION, FILE_OPTIONS_NAMER, WRITER, COMPARATOR;
2524
}
@@ -37,7 +36,7 @@ public Options inline(String expected)
3736
}
3837
public Options inline(String expected, boolean showCode)
3938
{
40-
InlineComparator inline = new InlineComparator(expected, showCode ? this.getReporter(): null);
39+
InlineComparator inline = new InlineComparator(expected, showCode ? this.getReporter() : null);
4140
return inline.setForOptions(this);
4241
}
4342
public Options(Scrubber scrubber)

approvaltests/src/main/java/org/approvaltests/inline/InlineComparator.java

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,14 @@ public class InlineComparator
2424
ApprovalWriterFactory,
2525
ApprovalFailureReporter
2626
{
27-
private final String sourceFilePath;
28-
private final StackTraceNamer stackTraceNamer;
29-
private String expected;
27+
private final String sourceFilePath;
28+
private final StackTraceNamer stackTraceNamer;
29+
private String expected;
3030
private final ApprovalFailureReporter reporter;
31-
private String actual;
32-
private File approvedFile;
33-
private File receivedFile;
34-
public int fileWrites = 0;
31+
private String actual;
32+
private File approvedFile;
33+
private File receivedFile;
34+
public int fileWrites = 0;
3535
public InlineComparator(String expected, ApprovalFailureReporter reporter)
3636
{
3737
this.expected = expected;
@@ -173,9 +173,10 @@ public static String indent(String actual)
173173
}
174174
return output;
175175
}
176-
177-
public Options setForOptions(Options options) {
178-
if (reporter != null) {
176+
public Options setForOptions(Options options)
177+
{
178+
if (reporter != null)
179+
{
179180
options = options.withReporter(this);
180181
}
181182
return options.withComparator(this) //

0 commit comments

Comments
 (0)