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-2024 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 Details

    • TestTextSerializers

      public TestTextSerializers()
  • Method Details

    • testPrimitiveSerializersGeneric

      @Test public void testPrimitiveSerializersGeneric() throws org.djutils.data.serialization.TextSerializationException
      Test the serializers of the primitive types, using the generic (de)serializer from the textSerializer interface.
      Throws:
      org.djutils.data.serialization.TextSerializationException - when serializer could not be found
    • testPrimitiveClassSerializersGeneric

      @Test public void testPrimitiveClassSerializersGeneric() throws org.djutils.data.serialization.TextSerializationException
      Test the serializers of the primitive types, using the generic (de)serializer from the textSerializer interface.
      Throws:
      org.djutils.data.serialization.TextSerializationException - when serializer could not be found
    • testNumberSerializers

      @Test public void testNumberSerializers() throws org.djutils.data.serialization.TextSerializationException
      Test the serializers of the Number types, Boolean and Character.
      Throws:
      org.djutils.data.serialization.TextSerializationException - when serializer could not be found
    • testNullValueSerializers

      @Test public void testNullValueSerializers() throws org.djutils.data.serialization.TextSerializationException
      Test the serializers for correctly handling null values.
      Throws:
      org.djutils.data.serialization.TextSerializationException - when serializer could not be found
    • testStringSerializer

      @Test public void testStringSerializer() throws org.djutils.data.serialization.TextSerializationException
      Test the serializer of the String type.
      Throws:
      org.djutils.data.serialization.TextSerializationException - when serializer could not be found
    • testSerializerErrors

      @Test public void testSerializerErrors() throws org.djutils.data.serialization.TextSerializationException
      Test the errors for the serializers.
      Throws:
      org.djutils.data.serialization.TextSerializationException - when serializer could not be found
    • testScalarSerializers

      @Test public void testScalarSerializers() throws org.djutils.data.serialization.TextSerializationException
      Test the serializers of the DoubleScalar and FloatScalar types.
      Throws:
      org.djutils.data.serialization.TextSerializationException - when serializer could not be found
    • testScalarSerializersColumnUnits

      @Test public void testScalarSerializersColumnUnits() throws org.djutils.data.serialization.TextSerializationException
      Test the serializers of the DoubleScalar and FloatScalar types with a different unit in the Column.
      Throws:
      org.djutils.data.serialization.TextSerializationException - when serializer could not be found