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
Nested ClassesModifier and TypeClassDescriptionstatic classa class to serialize.static classa class to serialize. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidTest the SerializableConstructor.voidTest the SerializableField.voidTest the SerializableField.voidTest 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 public void testStateSaver() throws nl.tudelft.simulation.language.DsolExceptionTest the StateSaver class.- Throws:
nl.tudelft.simulation.language.DsolException- on error
-