Package org.djutils.data
Class TestJsonTable
java.lang.Object
org.djutils.data.TestJsonTable
TestJsonData tests writing and reading of a JSON 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 JSON file with "missing values" coded as null values.void
test reading and writing of a JSON file with columns that treat units in different ways.void
test reading and writing of a JSON file.
-
Constructor Details
-
TestJsonTable
public TestJsonTable()
-
-
Method Details
-
testreadWriteJSON
test reading and writing of a JSON file.- Throws:
IOException
- on errorTextSerializationException
- on unknown data type for (de)serialization
-
testReadWriteCsvNulls
test reading and writing of a JSON 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 JSON file with columns that treat units in different ways.- Throws:
IOException
- on errorTextSerializationException
- on unknown data type for (de)serialization
-