Package org.djutils.data
Class TestCSVData
java.lang.Object
org.djutils.data.TestCSVData
public class TestCSVData extends Object
TestCSVData tests writing and reading of a CSV file, and checks that all data is read back correctly into the DataTable.
Copyright (c) 2020-2020 Delft University of Technology, Jaffalaan 5, 2628 BX Delft, the Netherlands. All rights reserved. See for project information https://djutils.org. The DJUTILS project is distributed under a three-clause BSD-style license, which can be found at https://djutils.org/docs/license.html.
Copyright (c) 2020-2020 Delft University of Technology, Jaffalaan 5, 2628 BX Delft, the Netherlands. All rights reserved. See for project information https://djutils.org. The DJUTILS project is distributed under a three-clause BSD-style license, which can be found at https://djutils.org/docs/license.html.
- Author:
- Alexander Verbraeck, Peter Knoppers, Wouter Schakel
-
Constructor Summary
Constructors Constructor Description TestCSVData()
-
Method Summary
Modifier and Type Method Description void
testreadWriteCSV()
test reading and writing of a CSV file.
-
Constructor Details
-
TestCSVData
public TestCSVData()
-
-
Method Details
-
testreadWriteCSV
public void testreadWriteCSV() throws IOException, com.opencsv.exceptions.CsvValidationException, org.djutils.data.serialization.TextSerializationExceptiontest reading and writing of a CSV file.- Throws:
IOException
- on errorcom.opencsv.exceptions.CsvValidationException
- on CSV errororg.djutils.data.serialization.TextSerializationException
- on unknown data type for (de)serialization
-