Package org.opentrafficsim.xml.bindings
Class LengthAdapterTest
java.lang.Object
org.opentrafficsim.xml.bindings.LengthAdapterTest
LengthAdapterTest for Length and SignedLength.
Copyright (c) 2013-2024 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.
- Author:
- Alexander Verbraeck
-
Field Summary
Modifier and TypeFieldDescription(package private) org.djunits.unit.LengthUnit[]
the allowed units.(package private) String[]
the corresponding strings. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Test the LengthAdaptervoid
Test the SignedLengthAdapter
-
Field Details
-
units
org.djunits.unit.LengthUnit[] unitsthe allowed units. -
unitStrings
String[] unitStringsthe corresponding strings.
-
-
Constructor Details
-
LengthAdapterTest
public LengthAdapterTest()
-
-
Method Details
-
testSignedLengthAdapter
@Test public void testSignedLengthAdapter() throws javax.xml.bind.JAXBExceptionTest the SignedLengthAdapter- Throws:
javax.xml.bind.JAXBException
-
testLengthAdapter
public void testLengthAdapter() throws javax.xml.bind.JAXBExceptionTest the LengthAdapter- Throws:
javax.xml.bind.JAXBException
-