C D E G L M O P R S T _ 

C

classSetUp() - Static method in class org.apache.commons.exec.DefaultExecutorTest
 
classSetUp() - Static method in class org.apache.commons.exec.LogOutputStreamTest
 
classSetUp() - Static method in class org.apache.commons.exec.StandAloneTest
 
CommandLineTest - Class in org.apache.commons.exec
 
CommandLineTest() - Constructor for class org.apache.commons.exec.CommandLineTest
 

D

DefaultExecutorTest - Class in org.apache.commons.exec
 
DefaultExecutorTest() - Constructor for class org.apache.commons.exec.DefaultExecutorTest
 

E

EnvironmentUtilsTest - Class in org.apache.commons.exec.environment
 
EnvironmentUtilsTest() - Constructor for class org.apache.commons.exec.environment.EnvironmentUtilsTest
 
Exec33Test - Class in org.apache.commons.exec.issues
Test the patch for EXEC-33 (https://issues.apache.org/jira/browse/EXEC-33) PumpStreamHandler hangs if System.in is redirect to process input stream .
Exec33Test() - Constructor for class org.apache.commons.exec.issues.Exec33Test
 
Exec34Test - Class in org.apache.commons.exec.issues
EXEC-34 https://issues.apache.org/jira/browse/EXEC-34
Exec34Test() - Constructor for class org.apache.commons.exec.issues.Exec34Test
 
Exec36Test - Class in org.apache.commons.exec.issues
Test EXEC-36 see https://issues.apache.org/jira/browse/EXEC-36
Exec36Test() - Constructor for class org.apache.commons.exec.issues.Exec36Test
 
Exec41Test - Class in org.apache.commons.exec.issues
Test the patch for EXEC-41 (https://issues.apache.org/jira/browse/EXEC-41).
Exec41Test() - Constructor for class org.apache.commons.exec.issues.Exec41Test
 
Exec44Test - Class in org.apache.commons.exec.issues
Test EXEC-44 (https://issues.apache.org/jira/browse/EXEC-44).
Exec44Test() - Constructor for class org.apache.commons.exec.issues.Exec44Test
 
Exec49Test - Class in org.apache.commons.exec.issues
Test EXEC-44 (https://issues.apache.org/jira/browse/EXEC-44).
Exec49Test() - Constructor for class org.apache.commons.exec.issues.Exec49Test
 
Exec57Test - Class in org.apache.commons.exec.issues
Test EXEC-57 (https://issues.apache.org/jira/browse/EXEC-57).
Exec57Test() - Constructor for class org.apache.commons.exec.issues.Exec57Test
 
Exec60Test - Class in org.apache.commons.exec.issues
Test EXEC-60 (https://issues.apache.org/jira/browse/EXEC-60).
Exec60Test() - Constructor for class org.apache.commons.exec.issues.Exec60Test
 

G

getTestScriptCodesForOS() - Static method in class org.apache.commons.exec.TestUtil
Get success and fail return codes used by the test scripts

L

LogOutputStreamTest - Class in org.apache.commons.exec
Test the LogOutputStream.
LogOutputStreamTest() - Constructor for class org.apache.commons.exec.LogOutputStreamTest
 

M

MapUtilTest - Class in org.apache.commons.exec.util
 
MapUtilTest() - Constructor for class org.apache.commons.exec.util.MapUtilTest
 

O

org.apache.commons.exec - package org.apache.commons.exec
 
org.apache.commons.exec.environment - package org.apache.commons.exec.environment
 
org.apache.commons.exec.issues - package org.apache.commons.exec.issues
 
org.apache.commons.exec.util - package org.apache.commons.exec.util
 

P

print(File, long, boolean) - Method in class org.apache.commons.exec.TutorialTest
Simulate printing a PDF document.

R

resolveScriptForOS(String) - Static method in class org.apache.commons.exec.TestUtil
 

S

setUp() - Method in class org.apache.commons.exec.DefaultExecutorTest
 
setUp() - Method in class org.apache.commons.exec.issues.Exec36Test
 
setUp() - Method in class org.apache.commons.exec.LogOutputStreamTest
 
StandAloneTest - Class in org.apache.commons.exec
Placeholder for mailing list question - provided a minimal test case to answer the question as sel-contained regression test.
StandAloneTest() - Constructor for class org.apache.commons.exec.StandAloneTest
 
StringUtilTest - Class in org.apache.commons.exec.util
 
StringUtilTest() - Constructor for class org.apache.commons.exec.util.StringUtilTest
 

T

tearDown() - Method in class org.apache.commons.exec.DefaultExecutorTest
 
tearDown() - Method in class org.apache.commons.exec.issues.Exec36Test
 
tearDown() - Method in class org.apache.commons.exec.LogOutputStreamTest
 
testAddArgument() - Method in class org.apache.commons.exec.CommandLineTest
 
testAddArguments() - Method in class org.apache.commons.exec.CommandLineTest
 
testAddArgumentsArray() - Method in class org.apache.commons.exec.CommandLineTest
 
testAddArgumentsArrayNull() - Method in class org.apache.commons.exec.CommandLineTest
 
testAddArgumentsWithQuotes() - Method in class org.apache.commons.exec.CommandLineTest
 
testAddArgumentsWithQuotesAndSpaces() - Method in class org.apache.commons.exec.CommandLineTest
 
testAddArgumentWithBothQuotes() - Method in class org.apache.commons.exec.CommandLineTest
 
testAddArgumentWithQuote() - Method in class org.apache.commons.exec.CommandLineTest
 
testAddArgumentWithQuotesAround() - Method in class org.apache.commons.exec.CommandLineTest
 
testAddArgumentWithSingleQuote() - Method in class org.apache.commons.exec.CommandLineTest
 
testAddArgumentWithSpace() - Method in class org.apache.commons.exec.CommandLineTest
 
testAddEnvironmentVariableEmbeddedQuote() - Method in class org.apache.commons.exec.DefaultExecutorTest
 
testAddEnvironmentVariables() - Method in class org.apache.commons.exec.DefaultExecutorTest
Call a script to dump the environment variables of the subprocess after adding a custom environment variable.
testAddNullArgument() - Method in class org.apache.commons.exec.CommandLineTest
 
testAddTwoArguments() - Method in class org.apache.commons.exec.CommandLineTest
A little example how to add two command line arguments in one line, e.g. to make commenting out some options less error prone.
testCaseInsensitiveVariableLookup() - Method in class org.apache.commons.exec.environment.EnvironmentUtilsTest
Accessing environment variables is case-sensitive or not depending on the operating system but the values of the environment variable are always case-sensitive.
testCommandLineParsingWithExpansion1() - Method in class org.apache.commons.exec.CommandLineTest
Test expanding the command line based on a user-supplied map.
testCommandLineParsingWithExpansion2() - Method in class org.apache.commons.exec.CommandLineTest
Test expanding the command line based on a user-supplied map.
testCommandLineParsingWithExpansion3() - Method in class org.apache.commons.exec.CommandLineTest
 
testComplexAddArgument() - Method in class org.apache.commons.exec.CommandLineTest
Create a command line with pre-quoted strings to test SANDBOX-192, e.g.
testComplexAddArguments1() - Method in class org.apache.commons.exec.CommandLineTest
Create a command line with pre-quoted strings to test SANDBOX-192, e.g.
testComplexAddArguments2() - Method in class org.apache.commons.exec.CommandLineTest
Create a command line with pre-quoted strings to test SANDBOX-192, e.g.
testCopyConstructor() - Method in class org.apache.commons.exec.CommandLineTest
 
testCopyMap() - Method in class org.apache.commons.exec.util.MapUtilTest
Test copying of map
testDefaultStringSubstitution() - Method in class org.apache.commons.exec.util.StringUtilTest
Test a default string substitution, e.g. all placeholders are expanded.
testEnvironmentVariables() - Method in class org.apache.commons.exec.DefaultExecutorTest
Call a script to dump the environment variables of the subprocess.
testErroneousTemplate() - Method in class org.apache.commons.exec.util.StringUtilTest
Test a erroneous template.
testExec33() - Method in class org.apache.commons.exec.issues.Exec33Test
 
testExec34_1() - Method in class org.apache.commons.exec.issues.Exec34Test
Race condition prevent watchdog working using ExecuteStreamHandler.
testExec34_2() - Method in class org.apache.commons.exec.issues.Exec34Test
Some user waited for an asynchronous process using watchdog.isWatching() which is now properly implemented using DefaultExecuteResultHandler.
testExec36_1() - Method in class org.apache.commons.exec.issues.Exec36Test
Original example from Kai Hu which only can be tested on Unix
testExec36_2() - Method in class org.apache.commons.exec.issues.Exec36Test
Test a complex real example found at http://blogs.msdn.com/b/astebner/archive/2005/12/13/503471.aspx The command line is so weird that it even falls apart under Windows
testExec41WithoutStreams() - Method in class org.apache.commons.exec.issues.Exec41Test
Test EXEC-41 with a disabled PumpStreamHandler to check if we could return immediately after killing the process (no streams implies no blocking stream pumper threads).
testExec41WithStreams() - Method in class org.apache.commons.exec.issues.Exec41Test
When a process runs longer than allowed by a configured watchdog's timeout, the watchdog tries to destroy it and then DefaultExecutor tries to clean up by joining with all installed pump stream threads.
testExec44() - Method in class org.apache.commons.exec.issues.Exec44Test
Because the ExecuteWatchdog is the only way to destroy asynchronous processes, it should be possible to set it to an infinite timeout, for processes which should not timeout, but manually destroyed under some circumstances.
testExec49_1() - Method in class org.apache.commons.exec.issues.Exec49Test
The issue was detected when trying to capture stdout/stderr with a PipedOutputStream and then pass that to a PipedInputStream.
testExec49_2() - Method in class org.apache.commons.exec.issues.Exec49Test
The issue was detected when trying to capture stdout with a PipedOutputStream and then pass that to a PipedInputStream.
testExec_57() - Method in class org.apache.commons.exec.issues.Exec57Test
DefaultExecutor.execute() does not return even if child process terminated - in this case the child process hangs because the grand children is connected to stdout & stderr and is still running.
testExec_60() - Method in class org.apache.commons.exec.issues.Exec60Test
Possible deadlock when a process is terminating at the same time its timing out.
testExecutable() - Method in class org.apache.commons.exec.CommandLineTest
 
testExecutableWhitespaceString() - Method in class org.apache.commons.exec.CommandLineTest
 
testExecutableZeroLengthString() - Method in class org.apache.commons.exec.CommandLineTest
 
testExecute() - Method in class org.apache.commons.exec.DefaultExecutorTest
The simplest possible test - start a script and check that the output was pumped into our ByteArrayOutputStream.
testExecuteAsync() - Method in class org.apache.commons.exec.DefaultExecutorTest
Start a asynchronous process which returns an success exit value.
testExecuteAsyncWithError() - Method in class org.apache.commons.exec.DefaultExecutorTest
Start a asynchronous process which returns an error exit value.
testExecuteAsyncWithNonExistingApplication() - Method in class org.apache.commons.exec.DefaultExecutorTest
Try to start an non-existing application asynchronously which should result in an exception.
testExecuteAsyncWithProcessDestroyer() - Method in class org.apache.commons.exec.DefaultExecutorTest
Test the proper handling of ProcessDestroyer for an asynchronous process.
testExecuteAsyncWithTimelyUserTermination() - Method in class org.apache.commons.exec.DefaultExecutorTest
Start a asynchronous process and terminate it manually before the watchdog timeout occurs.
testExecuteAsyncWithTooLateUserTermination() - Method in class org.apache.commons.exec.DefaultExecutorTest
Start a asynchronous process and try to terminate it manually but the process was already terminated by the watchdog.
testExecuteNonExistingApplication() - Method in class org.apache.commons.exec.DefaultExecutorTest
Try to start an non-existing application which should result in an exception.
testExecuteWatchdogAsync() - Method in class org.apache.commons.exec.DefaultExecutorTest
Start a script looping forever (asynchronously) and check if the ExecuteWatchdog kicks in killing the run away process.
testExecuteWatchdogSync() - Method in class org.apache.commons.exec.DefaultExecutorTest
Start a script looping forever (synchronously) and check if the ExecuteWatchdog kicks in killing the run away process.
testExecuteWatchdogVeryLongTimeout() - Method in class org.apache.commons.exec.DefaultExecutorTest
[EXEC-68] Synchronously starts a short script with a Watchdog attached with an extremely large timeout.
testExecuteWithArg() - Method in class org.apache.commons.exec.DefaultExecutorTest
 
testExecuteWithComplexArguments() - Method in class org.apache.commons.exec.DefaultExecutorTest
A generic test case to print the command line arguments to 'printargs' script to solve even more command line puzzles.
testExecuteWithCustomExitValue1() - Method in class org.apache.commons.exec.DefaultExecutorTest
Invoke the error script but define that the ERROR_STATUS is a good exit value and therefore no exception should be thrown.
testExecuteWithCustomExitValue2() - Method in class org.apache.commons.exec.DefaultExecutorTest
Invoke the error script but define that SUCCESS_STATUS is a bad exit value and therefore an exception should be thrown.
testExecuteWithError() - Method in class org.apache.commons.exec.DefaultExecutorTest
 
testExecuteWithFancyArg() - Method in class org.apache.commons.exec.DefaultExecutorTest
Invoke the test using some fancy arguments.
testExecuteWithInvalidWorkingDirectory() - Method in class org.apache.commons.exec.DefaultExecutorTest
 
testExecuteWithNullOutErr() - Method in class org.apache.commons.exec.DefaultExecutorTest
Start a process and connect it to no stream.
testExecuteWithProcessDestroyer() - Method in class org.apache.commons.exec.DefaultExecutorTest
Test the proper handling of ProcessDestroyer for an synchronous process.
testExecuteWithRedirectedStreams() - Method in class org.apache.commons.exec.DefaultExecutorTest
Start a process with redirected streams - stdin of the newly created process is connected to a FileInputStream whereas the "redirect" script reads all lines from stdin and prints them on stdout.
testExecuteWithRedirectOutErr() - Method in class org.apache.commons.exec.DefaultExecutorTest
Start a process and connect out and err to a file.
testExecuteWithSingleEnvironmentVariable() - Method in class org.apache.commons.exec.DefaultExecutorTest
Execute the test script and pass a environment containing 'TEST_ENV_VAR'.
testExecuteWithStdOutErr() - Method in class org.apache.commons.exec.DefaultExecutorTest
Start a process and connect stdout and stderr.
testExecuteWithWorkingDirectory() - Method in class org.apache.commons.exec.DefaultExecutorTest
 
testGetProcEnvironment() - Method in class org.apache.commons.exec.environment.EnvironmentUtilsTest
Test to access the environment variables of the current process.
testGetProcEnvironmentCaseInsensitiveLookup() - Method in class org.apache.commons.exec.environment.EnvironmentUtilsTest
On Windows platforms test that accessing environment variables can be done in a case-insensitive way, e.g.
testIncompleteSubstitution() - Method in class org.apache.commons.exec.util.StringUtilTest
Test an incomplete string substitution where not all placeholders are expanded.
testMe() - Method in class org.apache.commons.exec.StandAloneTest
 
testMergeMap() - Method in class org.apache.commons.exec.util.MapUtilTest
Test merging of maps
testNoStringSubstitution() - Method in class org.apache.commons.exec.util.StringUtilTest
Test no string substitution
testNullExecutable() - Method in class org.apache.commons.exec.CommandLineTest
 
testParseCommandLine() - Method in class org.apache.commons.exec.CommandLineTest
 
testParseCommandLineWithNull() - Method in class org.apache.commons.exec.CommandLineTest
 
testParseCommandLineWithOnlyWhitespace() - Method in class org.apache.commons.exec.CommandLineTest
 
testParseCommandLineWithQuotes() - Method in class org.apache.commons.exec.CommandLineTest
 
testParseCommandLineWithUnevenQuotes() - Method in class org.apache.commons.exec.CommandLineTest
 
testParseComplexCommandLine1() - Method in class org.apache.commons.exec.CommandLineTest
A command line parsing puzzle from Tino Schoellhorn - ImageMagix expects a "500x>" parameter (including quotes) and it is simply not possible to do that without adding a space, e.g. "500x> ".
testParseComplexCommandLine2() - Method in class org.apache.commons.exec.CommandLineTest
Another command line parsing puzzle from Kai Hu - as far as I understand it there is no way to express that in a one-line command string.
testParseRealLifeCommandLine_1() - Method in class org.apache.commons.exec.CommandLineTest
Test the following command line cmd.exe /C c:\was51\Web Sphere\AppServer\bin\versionInfo.bat
testPrefixMap() - Method in class org.apache.commons.exec.util.MapUtilTest
Test prefixing of map
testStdInHandling() - Method in class org.apache.commons.exec.DefaultExecutorTest
The test script reads an argument from stdin and prints the result to stdout.
testStdout() - Method in class org.apache.commons.exec.LogOutputStreamTest
 
testToString() - Method in class org.apache.commons.exec.CommandLineTest
Test the toString() method.
testToStrings() - Method in class org.apache.commons.exec.environment.EnvironmentUtilsTest
Tests the behaviour of the EnvironmentUtils.toStrings() when using a null environment.
testToStringTroubleshooting() - Method in class org.apache.commons.exec.CommandLineTest
Test that toString() produces output that is useful for troubleshooting.
testToStringWithNullKey() - Method in class org.apache.commons.exec.environment.EnvironmentUtilsTest
Tests the behavior of the EnvironmentUtils.toStrings() when using a null key given to the map.
testToStringWithNullValue() - Method in class org.apache.commons.exec.environment.EnvironmentUtilsTest
Tests the behavior of the EnvironmentUtils.toStrings() when using a null value given to the map.
testTutorialExample() - Method in class org.apache.commons.exec.TutorialTest
 
TestUtil - Class in org.apache.commons.exec
 
TutorialTest - Class in org.apache.commons.exec
An example based on the tutorial where the user can can safely play with blocking or non-blocking print jobs with print job timeouts to trigger the ExecuteWatchdog with the exitValue returned from the print script
TutorialTest() - Constructor for class org.apache.commons.exec.TutorialTest
 

_

_testExec36_4() - Method in class org.apache.commons.exec.issues.Exec36Test
Some complex real-life command line from http://blogs.msdn.com/b/astebner/archive/2005/12/13/503471.aspx
_testExec36_5() - Method in class org.apache.commons.exec.issues.Exec36Test
Some complex real-life command line from http://blogs.msdn.com/b/astebner/archive/2005/12/13/503471.aspx
_testExec36_6() - Method in class org.apache.commons.exec.issues.Exec36Test
Test the following command line C:\CVS_DB\WeightsEngine /f WeightsEngine.mak CFG="WeightsEngine - Win32Release"
_testExecuteStability() - Method in class org.apache.commons.exec.DefaultExecutorTest
Start any processes in a loop to make sure that we do not leave any handles/resources open.
C D E G L M O P R S T _ 

Copyright © 2014 The Apache Software Foundation. All rights reserved.