Skip to content

Commit 86d2680

Browse files
committed
. r formatting
1 parent af96a79 commit 86d2680

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -114,10 +114,10 @@ public void testReportingCode()
114114
void testEmptyLineAtTheEnd()
115115
{
116116
var expected = """
117-
Jeff Jeffty Jeff
118-
born on Jeffteen of Jeff, Nineteen-eighty-Jeff
119-
120-
""";
117+
Jeff Jeffty Jeff
118+
born on Jeffteen of Jeff, Nineteen-eighty-Jeff
119+
120+
""";
121121
Approvals.verify(greet("Jeff"), new Options().inline(expected, InlineOptions.automatic()));
122122
}
123123
private String greet(String name)

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,7 @@ public class InlineJavaReporter implements ApprovalFailureReporter, ApprovalRepo
1515
private final String sourceFilePath;
1616
private final StackTraceNamer stackTraceNamer;
1717
private final ApprovalFailureReporter reporter;
18-
private final String additionalLines;
19-
18+
private final String additionalLines;
2019
public InlineJavaReporter(ApprovalFailureReporter reporter, boolean addApprovalLine)
2120
{
2221
this.reporter = reporter;
@@ -40,7 +39,8 @@ public String createReceived(String actual)
4039
String file = sourceFilePath + stackTraceNamer.getInfo().getClassName() + ".java";
4140
String received = getReceivedFileName();
4241
String text = FileUtils.readFile(file);
43-
String fullText = createNewReceivedFileText(text, actual + additionalLines, this.stackTraceNamer.getInfo().getMethodName());
42+
String fullText = createNewReceivedFileText(text, actual + additionalLines,
43+
this.stackTraceNamer.getInfo().getMethodName());
4444
FileUtils.writeFile(new File(received), fullText);
4545
return received;
4646
}

0 commit comments

Comments
 (0)