Package org.gbif.utils.file.csv
Class CSVReaderTest
java.lang.Object
org.gbif.utils.file.csv.CSVReaderTest
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidTest extracting a CSV file containing embedded JSON, which itself contains escaped quotes.voidcsv file with optional quotes generated by excel.voidvoidtests the csv reader with different number of header rows on the same file and compares the 4th line in the text file for each of themvoidTest if skip header rows is working with larger settings.voidvoidtestTab()Testing classic non quoted tab files with escaped \t tabs.
-
Constructor Details
-
CSVReaderTest
public CSVReaderTest()
-
-
Method Details
-
testCsvAlwaysQuotes
- Throws:
IOException
-
testCsvQuotedDelimiter
- Throws:
IOException
-
testCsvOptionalQuotes
csv file with optional quotes generated by excel. single, double quotes and comma within a field are tested.- Throws:
IOException
-
testHeaderRows
tests the csv reader with different number of header rows on the same file and compares the 4th line in the text file for each of them- Throws:
IOException
-
testHeaderRows2
Test if skip header rows is working with larger settings.- Throws:
IOException
-
testIgnoreEmptyLines
- Throws:
IOException
-
testTab
Testing classic non quoted tab files with escaped \t tabs.- Throws:
IOException
-
testCsvJsonEscapedQuotes
Test extracting a CSV file containing embedded JSON, which itself contains escaped quotes. JSON value like: { "test": "value, \"like\" this" } Would become in CSV: "{ ""test"": ""value, \""like\"" this"" }"- Throws:
IOException
-