Class SerializationTest

java.lang.Object
org.djutils.serialization.AbstractSerializationTest
org.djutils.serialization.SerializationTest

public class SerializationTest extends AbstractSerializationTest
Test compound objects and the basic classes of the serialization project such as Pointer and exceptions.

Copyright (c) 2019-2025 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.

Author:
Alexander Verbraeck, Peter Knoppers
  • Constructor Details

    • SerializationTest

      public SerializationTest()
  • Method Details

    • testCompoundArrays

      @Test public void testCompoundArrays() throws SerializationException
      Test the compound array encoder and decoder.
      Throws:
      SerializationException - when that happens uncaught, this test has failed
    • testUnhandledObject

      @Test public void testUnhandledObject()
      Test that the encoder throws a SerializationException when given something that it does not know how to serialize.
    • pointerTest

      @Test public void pointerTest()
      Test the Pointer class.
    • serializationExceptionTest

      @Test public final void serializationExceptionTest()
      Test all constructors for SerializationException.
    • serializationRuntimeExceptionTest

      @Test public final void serializationRuntimeExceptionTest()
      Test all constructors for SerializationRuntimeException.
    • testEndianUtil

      @Test public void testEndianUtil()
      Test the remainder of the EndianUtil class.
    • testBasicSerializer

      @Test public void testBasicSerializer()
      Test the toString and dataClassName methods of the BasicSerializer.