Package org.djutils.cli
Class TestCliHelpVersion
java.lang.Object
org.djutils.cli.TestCliHelpVersion
Program to test the CLI.
Copyright (c) 2003-2018 Delft University of Technology, Jaffalaan 5, 2628 BX Delft, the Netherlands. All rights reserved. See for project information www.simulation.tudelft.nl. The source code and binary code of this software is proprietary information of Delft University of Technology.
Copyright (c) 2003-2018 Delft University of Technology, Jaffalaan 5, 2628 BX Delft, the Netherlands. All rights reserved. See for project information www.simulation.tudelft.nl. The source code and binary code of this software is proprietary information of Delft University of Technology.
- Author:
- Alexander Verbraeck
-
Nested Class Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Test the CliUtil "--help" option (that calls System.exit).void
Test the CliUtil "-V" option (that calls System.exit).void
Test the CliUtil methods with a wrong option.void
Test the CliUtil methods with a wrong port.
-
Constructor Details
-
TestCliHelpVersion
public TestCliHelpVersion()
-
-
Method Details
-
testCliHelp
@Test public void testCliHelp() throws NoSuchFieldException, IllegalArgumentException, IllegalAccessException, CliExceptionTest the CliUtil "--help" option (that calls System.exit).- Throws:
CliException
- on errorIllegalAccessException
- on errorIllegalArgumentException
- on errorNoSuchFieldException
- on error
-
testCliVersion
@Test public void testCliVersion() throws NoSuchFieldException, IllegalArgumentException, IllegalAccessException, CliExceptionTest the CliUtil "-V" option (that calls System.exit).- Throws:
CliException
- on errorIllegalAccessException
- on errorIllegalArgumentException
- on errorNoSuchFieldException
- on error
-
testCliWrongValue
@Test public void testCliWrongValue()Test the CliUtil methods with a wrong port. -
testCliWrongOption
@Test public void testCliWrongOption()Test the CliUtil methods with a wrong option.
-