Skip to content

Commit

Permalink
deleted empty lines
Browse files Browse the repository at this point in the history
  • Loading branch information
fedorovychh committed Nov 2, 2023
1 parent 2ae653f commit 5a358f4
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 8 deletions.
3 changes: 0 additions & 3 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,6 @@
<goal>check</goal>
</goals>
<configuration>
<excludes>
<exclude>**/Main*</exclude>
</excludes>
<rules>
<rule>
<element>BUNDLE</element>
Expand Down
3 changes: 3 additions & 0 deletions report.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
fruit,quantity
apple,90
banana,152
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ private String getFinalReport() {
.append(key.getProductName())
.append(SEPARATE_SYMBOL)
.append(value));
return reportBuilder + System.lineSeparator();
return reportBuilder.toString();
}

private void addProductTransaction(String productTransaction) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,11 @@ public void calculate_CorrectInputData_Ok() {
.append(System.lineSeparator()).append("r,apple,10")
.append(System.lineSeparator()).append("p,apple,20")
.append(System.lineSeparator()).append("p,banana,5")
.append(System.lineSeparator()).append("s,banana,50")
.append(System.lineSeparator());
.append(System.lineSeparator()).append("s,banana,50");
String inputString = inputStringBuilder.toString();
StringBuilder reportStringBuilder = new StringBuilder("fruit,quantity");
reportStringBuilder.append(System.lineSeparator()).append("apple,90")
.append(System.lineSeparator()).append("banana,152")
.append(System.lineSeparator());
.append(System.lineSeparator()).append("banana,152");
String expected = reportStringBuilder.toString();
Assertions.assertEquals(expected, dataHandlerService.calculateInputData(inputString));
}
Expand Down

0 comments on commit 5a358f4

Please sign in to comment.