Package org.djutils.data
Class TestTextSerializers
- java.lang.Object
-
- org.djutils.data.TestTextSerializers
-
public class TestTextSerializers extends Object
TestTextSerializers tests the (de)serialization of the different classes from/into text.
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 TestTextSerializers()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
testNullValueSerializers()
Test the serializers for correctly handling null values.void
testNumberSerializers()
Test the serializers of the Number types, Boolean and Character.void
testPrimitiveClassSerializersGeneric()
Test the serializers of the primitive types, using the generic (de)serializer from the textSerializer interface.void
testPrimitiveSerializersGeneric()
Test the serializers of the primitive types, using the generic (de)serializer from the textSerializer interface.void
testScalarSerializers()
Test the serializers of the DoubleScalar and FloatScalar types.void
testScalarSerializersColumnUnits()
Test the serializers of the DoubleScalar and FloatScalar types with a different unit in the Column.void
testSerializerErrors()
Test the errors for the serializers.void
testStringSerializer()
Test the serializer of the String type.
-
-
-
Method Detail
-
testPrimitiveSerializersGeneric
public void testPrimitiveSerializersGeneric() throws TextSerializationException
Test the serializers of the primitive types, using the generic (de)serializer from the textSerializer interface.- Throws:
TextSerializationException
- when serializer could not be found
-
testPrimitiveClassSerializersGeneric
public void testPrimitiveClassSerializersGeneric() throws TextSerializationException
Test the serializers of the primitive types, using the generic (de)serializer from the textSerializer interface.- Throws:
TextSerializationException
- when serializer could not be found
-
testNumberSerializers
public void testNumberSerializers() throws TextSerializationException
Test the serializers of the Number types, Boolean and Character.- Throws:
TextSerializationException
- when serializer could not be found
-
testNullValueSerializers
public void testNullValueSerializers() throws TextSerializationException
Test the serializers for correctly handling null values.- Throws:
TextSerializationException
- when serializer could not be found
-
testStringSerializer
public void testStringSerializer() throws TextSerializationException
Test the serializer of the String type.- Throws:
TextSerializationException
- when serializer could not be found
-
testSerializerErrors
public void testSerializerErrors() throws TextSerializationException
Test the errors for the serializers.- Throws:
TextSerializationException
- when serializer could not be found
-
testScalarSerializers
public void testScalarSerializers() throws TextSerializationException
Test the serializers of the DoubleScalar and FloatScalar types.- Throws:
TextSerializationException
- when serializer could not be found
-
testScalarSerializersColumnUnits
public void testScalarSerializersColumnUnits() throws TextSerializationException
Test the serializers of the DoubleScalar and FloatScalar types with a different unit in the Column.- Throws:
TextSerializationException
- when serializer could not be found
-
-