Package org.djutils.data
Class TestJsonTable
- java.lang.Object
-
- org.djutils.data.TestJsonTable
-
public class TestJsonTable extends Object
TestJsonData tests writing and reading of a JSON file, and checks that all data is read back correctly into the Table.Copyright (c) 2020-2023 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
Constructors Constructor Description TestJsonTable()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
testReadWriteCsvNulls()
test reading and writing of a JSON file with "missing values" coded as null values.void
testReadWriteCsvUnits()
test reading and writing of a JSON file with columns that treat units in different ways.void
testreadWriteJSON()
test reading and writing of a JSON file.
-
-
-
Method Detail
-
testreadWriteJSON
public void testreadWriteJSON() throws IOException, TextSerializationException
test reading and writing of a JSON file.- Throws:
IOException
- on errorTextSerializationException
- on unknown data type for (de)serialization
-
testReadWriteCsvNulls
public void testReadWriteCsvNulls() throws IOException, TextSerializationException
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
public void testReadWriteCsvUnits() throws IOException, TextSerializationException
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
-
-