public class ParametersTest extends Object implements ConstraintInterface
Copyright (c) 2013-2018 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.
ATLEASTONE, NEGATIVE, NEGATIVEZERO, NONZERO, POSITIVE, POSITIVEZERO, UNITINTERVAL
Constructor and Description |
---|
ParametersTest() |
Modifier and Type | Method and Description |
---|---|
void |
checkDefaultValues()
Checks whether default values are properly set, or not in case not given.
|
void |
constructorTest()
Constructor tests.
|
void |
customConstraintTest()
Parameter value custom constraint tests.
|
void |
defaultRangeTest()
Parameter value default range tests.
|
void |
defaultsTest()
Defaults tests.
|
void |
equalizeTest()
Tests equalizations.
|
void |
mergeTest()
Tests the merging of parameter sets using setAll.
|
void |
setResetTest()
Tests the set/reset mechanism.
|
void |
testNullNotAllowed()
Test that exceptions are thrown when trying to use null values.
|
public final void defaultsTest()
public final void constructorTest()
public final void defaultRangeTest()
public final void customConstraintTest()
public final void setResetTest() throws ParameterException
ParameterException
- Should not be thrown, is for untested methods (in this test) that throw the exception.public final void equalizeTest() throws ParameterException
ParameterException
- Should not be thrown, is for untested methods (in this test) that throw the exception.public final void testNullNotAllowed()
public final void checkDefaultValues() throws InstantiationException, IllegalAccessException, IllegalArgumentException, InvocationTargetException, NoSuchMethodException, SecurityException
SecurityException
- Reflection.NoSuchMethodException
- Reflection.InvocationTargetException
- Reflection.IllegalArgumentException
- Reflection.IllegalAccessException
- Reflection.InstantiationException
- Reflection.public final void mergeTest() throws ParameterException
ParameterException
- parameter exceptionCopyright © 2014–2018 Delft University of Technology. All rights reserved.