public class CommandLineUtilsTest extends Object
| Constructor and Description |
|---|
CommandLineUtilsTest() |
public void testGetSystemEnvVarsCaseInsensitive()
public void testEnsureCaseSensitivity()
throws Exception
Exceptionpublic void testGetSystemEnvVarsWindows()
throws Exception
Exceptionpublic void testTranslateCommandline()
throws Exception
Exceptionpublic void givenASingleQuoteMarkInArgument_whenExecutingCode_thenNoExceptionIsThrown()
throws Exception
Exceptionpublic void givenADoubleQuoteMarkInArgument_whenExecutingCode_thenCommandLineExceptionIsThrown()
throws Exception
Exceptionpublic void givenASingleQuoteMarkInArgument_whenExecutingCode_thenExitCode0Returned()
throws Exception
Exceptionpublic void givenASingleQuoteMarkInArgument_whenTranslatingToCmdLineArgs_thenTheQuotationMarkIsNotEscaped()
throws Exception
Exceptionpublic void givenAnEscapedDoubleQuoteMarkInArgument_whenTranslatingToCmdLineArgs_thenTheQuotationMarkRemainsEscaped()
throws Exception
Exceptionpublic void givenAnEscapedSingleQuoteMarkInArgument_whenTranslatingToCmdLineArgs_thenTheQuotationMarkRemainsEscaped()
throws Exception
Exceptionpublic void givenAnEscapedDoubleQuoteMarkInArgument_whenTranslatingToCmdLineArgs_thenNoExceptionIsThrown()
throws Exception
Exceptionpublic void environmentVariableWithNullShouldNotBeSet()
public void environmentVariableFromSystemIsCopied()
public void environmentVariableFromSystemIsRemoved()
Copyright © 2002–2021 The Apache Software Foundation. All rights reserved.