Package org.djutils.data
Class TestCsvTable
java.lang.Object
org.djutils.data.TestCsvTable
TestCsvData tests writing and reading of a CSV file, and checks that all data is read back correctly into the Table.
Copyright (c) 2020-2024 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See DJUTILS License.
- Author:
- Alexander Verbraeck, Peter Knoppers, Wouter Schakel
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
test reading and writing of a CSV file.void
test reading and writing of a CSV file with "missing values" coded as null values.void
test reading and writing of a CSV file with columns that treat units in different ways.void
test reading and writing of a zipped CSV file.void
test reading and writing of a zipped CSV file with different delimiters.
-
Constructor Details
-
TestCsvTable
public TestCsvTable()
-
-
Method Details
-
testReadWriteCsv
test reading and writing of a CSV file.- Throws:
IOException
- on errorTextSerializationException
- on unknown data type for (de)serialization
-
testReadWriteZippedCsv
test reading and writing of a zipped CSV file.- Throws:
IOException
- on errorTextSerializationException
- on unknown data type for (de)serialization
-
testrReadWriteZippedCsvDelimiters
@Test public void testrReadWriteZippedCsvDelimiters() throws IOException, TextSerializationExceptiontest reading and writing of a zipped CSV file with different delimiters.- Throws:
IOException
- on errorTextSerializationException
- on unknown data type for (de)serialization
-
testReadWriteCsvNulls
test reading and writing of a CSV file with "missing values" coded as null values.- Throws:
IOException
- on errorTextSerializationException
- on unknown data type for (de)serialization
-
testReadWriteCsvUnits
test reading and writing of a CSV file with columns that treat units in different ways.- Throws:
IOException
- on errorTextSerializationException
- on unknown data type for (de)serialization
-