Package org.djutils.serialization
Class StringSerializationTest
java.lang.Object
org.djutils.serialization.AbstractSerializationTest
org.djutils.serialization.StringSerializationTest
StringSerializationTest tests the encoding and decoding of strings and string arrays/matrices.
Copyright (c) 2023-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
Test String array en/decoding.void
Test String matrix en/decoding.void
Test encoding and decoding of Strings with more exotic characters for UTF-8 and UTF-16.Methods inherited from class org.djutils.serialization.AbstractSerializationTest
compare, deepEquals0, makePrimitive
-
Constructor Details
-
StringSerializationTest
public StringSerializationTest()
-
-
Method Details
-
testStrings
Test encoding and decoding of Strings with more exotic characters for UTF-8 and UTF-16.- Throws:
SerializationException
- when that happens uncaught this test has failedUnsupportedEncodingException
- when UTF-8 en/decoding fails
-
testStringArray
Test String array en/decoding.- Throws:
SerializationException
- on error
-
testStringMatrix
Test String matrix en/decoding.- Throws:
SerializationException
- on error
-