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 classClass used to test serialization of classes that implement SerializableObject. - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionvoidTest the Pointer class.final voidTest all constructors for SerializationException.final voidTest all constructors for SerializationRuntimeException.voidTest the toString and dataClassName methods of the BasicSerializer.voidTest the compound array encoder and decoder.voidTest the remainder of the EndianUtil class.voidTest 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 that the encoder throws a SerializationException when given something that it does not know how to serialize. - 
pointerTest
Test the Pointer class. - 
serializationExceptionTest
Test all constructors for SerializationException. - 
serializationRuntimeExceptionTest
Test all constructors for SerializationRuntimeException. - 
testEndianUtil
Test the remainder of the EndianUtil class. - 
testBasicSerializer
Test the toString and dataClassName methods of the BasicSerializer. 
 -