Class SerializableTest
java.lang.Object
nl.tudelft.simulation.language.reflection.SerializableTest
SerializableTest.java.
Copyright (c) 2019-2024 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See DJUNITS License.
- Author:
- Alexander Verbraeck
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
a class to serialize.static class
a class to serialize. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Test the SerializableConstructor.void
Test the SerializableField.void
Test the SerializableField.void
Test the StateSaver class.
-
Constructor Details
-
SerializableTest
public SerializableTest()
-
-
Method Details
-
testSerializableConstructor
@Test public void testSerializableConstructor() throws NoSuchMethodException, SecurityException, IOException, ClassNotFoundExceptionTest the SerializableConstructor.- Throws:
SecurityException
- on errorNoSuchMethodException
- on errorIOException
- on errorClassNotFoundException
- on error
-
testSerializableField
@Test public void testSerializableField() throws NoSuchMethodException, SecurityException, IOException, ClassNotFoundException, NoSuchFieldExceptionTest the SerializableField.- Throws:
SecurityException
- on errorNoSuchMethodException
- on errorIOException
- on errorClassNotFoundException
- on errorNoSuchFieldException
- on error
-
testSerializableMethod
@Test public void testSerializableMethod() throws NoSuchMethodException, SecurityException, IOException, ClassNotFoundException, NoSuchMethodExceptionTest the SerializableField.- Throws:
SecurityException
- on errorNoSuchMethodException
- on errorIOException
- on errorClassNotFoundException
- on errorNoSuchMethodException
- on error
-
testStateSaver
Test the StateSaver class.- Throws:
DsolException
- on error
-