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