Package org.djutils.serialization
Class SimpleSerializationTest
java.lang.Object
org.djutils.serialization.SimpleSerializationTest
SimpleSerializationTest tests the decode methods for primitives, and compares the big-endian and little-endian results.
 
Copyright (c) 2025-2025 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
 
- 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionvoidBasic test encoding and decoding of the basic types.voidTest decodeBoolean method.voidTest decodeByte method.voidTest decodeCharUtf16 method.voidTest decodeCharUtf8 method.voidTest decodeDouble method.voidTest errors for simple method.voidTest decodeFloat method.voidTest decodeInt method.voidTest decodeLong method.voidTest decodeShort method. 
- 
Constructor Details
- 
SimpleSerializationTest
public SimpleSerializationTest() 
 - 
 - 
Method Details
- 
simpleTests
Basic test encoding and decoding of the basic types.- Throws:
 SerializationException- when that happens uncaught this test has failed
 - 
testDecodeInt
Test decodeInt method.- Throws:
 SerializationException- on error
 - 
testDecodeByte
Test decodeByte method.- Throws:
 SerializationException- on error
 - 
testDecodeShort
Test decodeShort method.- Throws:
 SerializationException- on error
 - 
testDecodeLong
Test decodeLong method.- Throws:
 SerializationException- on error
 - 
testDecodeFloat
Test decodeFloat method.- Throws:
 SerializationException- on error
 - 
testDecodeDouble
Test decodeDouble method.- Throws:
 SerializationException- on error
 - 
testDecodeBoolean
Test decodeBoolean method.- Throws:
 SerializationException- on error
 - 
testDecodeCharUtf8
Test decodeCharUtf8 method.- Throws:
 SerializationException- on error
 - 
testDecodeCharUtf16
Test decodeCharUtf16 method.- Throws:
 SerializationException- on error
 - 
testDecodeErrors
Test errors for simple method. 
 -