|
30 | 30 |
|
31 | 31 | import static io.restassured.RestAssured.given; |
32 | 32 | import static io.restassured.http.ContentType.JSON; |
| 33 | +import static java.nio.charset.StandardCharsets.UTF_8; |
33 | 34 | import static java.time.ZoneOffset.UTC; |
34 | 35 | import static org.apache.commons.csv.CSVFormat.DEFAULT; |
35 | 36 | import static org.apache.commons.csv.CSVFormat.RFC4180; |
@@ -717,7 +718,7 @@ public void shouldGetAllTransactionsAsCSVWithAcceptType() throws IOException { |
717 | 718 | .contentType("text/csv") |
718 | 719 | .extract().asInputStream(); |
719 | 720 |
|
720 | | - List<CSVRecord> csvRecords = CSVParser.parse(csvResponseStream, Charset.defaultCharset(), RFC4180.withFirstRecordAsHeader()).getRecords(); |
| 721 | + List<CSVRecord> csvRecords = CSVParser.parse(csvResponseStream, UTF_8, RFC4180.withFirstRecordAsHeader()).getRecords(); |
721 | 722 |
|
722 | 723 | assertThat(csvRecords.size(), is(2)); |
723 | 724 |
|
@@ -778,7 +779,7 @@ public void shouldGetAllTransactionsAsCSVWithAcceptTypeWithFeeHeaders() throws I |
778 | 779 | .contentType("text/csv") |
779 | 780 | .extract().asInputStream(); |
780 | 781 |
|
781 | | - List<CSVRecord> csvRecords = CSVParser.parse(csvResponseStream, Charset.defaultCharset(), RFC4180.withFirstRecordAsHeader()).getRecords(); |
| 782 | + List<CSVRecord> csvRecords = CSVParser.parse(csvResponseStream, UTF_8, RFC4180.withFirstRecordAsHeader()).getRecords(); |
782 | 783 |
|
783 | 784 | assertThat(csvRecords.size(), is(1)); |
784 | 785 |
|
@@ -811,7 +812,7 @@ public void shouldGetAllTransactionsAsCSVWithAcceptTypeWithMotoHeader() throws I |
811 | 812 | .contentType("text/csv") |
812 | 813 | .extract().asInputStream(); |
813 | 814 |
|
814 | | - List<CSVRecord> csvRecords = CSVParser.parse(csvResponseStream, Charset.defaultCharset(), RFC4180.withFirstRecordAsHeader()).getRecords(); |
| 815 | + List<CSVRecord> csvRecords = CSVParser.parse(csvResponseStream, UTF_8, RFC4180.withFirstRecordAsHeader()).getRecords(); |
815 | 816 |
|
816 | 817 | assertThat(csvRecords.size(), is(1)); |
817 | 818 |
|
@@ -877,7 +878,7 @@ public void shouldReturnCSVHeadersInCorrectOrder() throws IOException { |
877 | 878 | .contentType("text/csv") |
878 | 879 | .extract().asInputStream(); |
879 | 880 |
|
880 | | - List<CSVRecord> csvRecords = CSVParser.parse(csvResponseStream, Charset.defaultCharset(), DEFAULT).getRecords(); |
| 881 | + List<CSVRecord> csvRecords = CSVParser.parse(csvResponseStream, UTF_8, DEFAULT).getRecords(); |
881 | 882 |
|
882 | 883 | CSVRecord header = csvRecords.get(0); |
883 | 884 | assertThat(header.size(), is(25)); |
|
0 commit comments