Package org.djutils.serialization
Class SerializationTest
java.lang.Object
org.djutils.serialization.AbstractSerializationTest
org.djutils.serialization.SerializationTest
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
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) static class
Class used to test serialization of classes that implement SerializableObject. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Test the Pointer class.final void
Test all constructors for SerializationException.final void
Test all constructors for SerializationRuntimeException.void
Test the toString and dataClassName methods of the BasicSerializer.void
Test the compound array encoder and decoder.void
Test the remainder of the EndianUtil class.void
Test that the encoder throws a SerializationException when given something that it does not know how to serialize.Methods inherited from class org.djutils.serialization.AbstractSerializationTest
compare, deepEquals0, makePrimitive
-
Constructor Details
-
SerializationTest
public SerializationTest()
-
-
Method Details
-
testCompoundArrays
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.
-