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 TypeMethodDescriptionvoid
Basic test encoding and decoding of the basic types.void
Test decodeBoolean method.void
Test decodeByte method.void
Test decodeCharUtf16 method.void
Test decodeCharUtf8 method.void
Test decodeDouble method.void
Test errors for simple method.void
Test decodeFloat method.void
Test decodeInt method.void
Test decodeLong method.void
Test 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 public void testDecodeErrors()Test errors for simple method.
-