Skip to content

Commit 2ba6f92

Browse files
committed
a reformat code
1 parent 0271799 commit 2ba6f92

File tree

2 files changed

+4
-12
lines changed

2 files changed

+4
-12
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ public class InlineApprovalsTest
1515
@UseReporter(DiffMergeReporter.class)
1616
public void testWithBuiltinReporter()
1717
{
18-
var expected = """
19-
Hello There***
20-
""";
18+
var expected = """
19+
Hello There***
20+
""";
2121
Options inline =
2222
// begin-snippet: inline_approvals
2323
new Options().inline(expected);

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

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,7 @@
1212
import static org.approvaltests.writers.Writer.approved;
1313
import static org.approvaltests.writers.Writer.received;
1414

15-
public class InlineComparator
16-
implements
17-
ApprovalNamer,
18-
ApprovalFailureReporter
15+
public class InlineComparator implements ApprovalNamer, ApprovalFailureReporter
1916
{
2017
private final String sourceFilePath;
2118
private final StackTraceNamer stackTraceNamer;
@@ -30,8 +27,6 @@ public InlineComparator(String expected, ApprovalFailureReporter reporter)
3027
stackTraceNamer = new StackTraceNamer();
3128
sourceFilePath = stackTraceNamer.getSourceFilePath();
3229
}
33-
34-
3530
@Override
3631
public File getApprovedFile(String extensionWithDot)
3732
{
@@ -40,7 +35,6 @@ public File getApprovedFile(String extensionWithDot)
4035
try
4136
{
4237
this.approvedFile = File.createTempFile("temp", approved + extensionWithDot);
43-
4438
FileUtils.writeFile(approvedFile, expected);
4539
}
4640
catch (IOException e)
@@ -81,8 +75,6 @@ public String getSourceFilePath()
8175
{
8276
return sourceFilePath;
8377
}
84-
85-
8678
@Override
8779
public boolean report(String received, String approved)
8880
{

0 commit comments

Comments
 (0)