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