Uses of Class
com.sun.javatest.Status
Packages that use Status
Package
Description
This package provides facilities for reading, executing
and monitoring tests.
This package contains miscellaneous library code
that may be used by tests and frameworks.
The JT Harness Tool API provides the command-line and GUI
infrastructure for the main JT Harness test harness.
-
Uses of Status in com.sun.javatest
Fields in com.sun.javatest declared as StatusModifier and TypeFieldDescriptionprotected static final Status
Script.error_badExecuteArgs
A status that may be used to indicate problems in the executeArgs field of a test description.protected static final Status
Script.error_badTestClassDir
A status that may be used to indicate a problem with a test's class directory.protected static final Status
Script.error_compFailUnexp
A status that may be used to indicate that a compilation failed unexpectedly.protected static final Status
Script.error_noActionSpecified
A status that may be used to indicate that no action was specified.protected static final Status
Script.error_noExecuteClass
A status that may be used to indicate that no execute class was specified in a test description.protected static final Status
Script.error_noExtnInSource
A status that may be used to indicate that no extension was found in a source file.protected static final Status
Script.error_noRMIClasses
A status that may be used to indicate that no rmi classes were specified in a test description.protected static final Status
Script.error_noSource
A status that may be used to indicate that no sources were specified in a test description.protected static final Status
Script.fail_compFailUnexp
A status that may be used to indicate the a compilation failed unexpectedly.protected static final Status
Script.fail_compSuccUnexp
A status that may be used to indicate that a compilation did not fail as was expected.protected static final Status
Script.fail_execSuccUnexp
A status that may be used to indicate that a test execution step did not fail as wqas expected.protected static final Status
Script.noExtnInSource
A status that may be used to indicate that no extension was found in a source file.protected static final Status
Script.noSource
A status that may be used to indicate that no source files were found in the test description.protected static final Status
Script.pass_compFailExp
A status that may be used to indicate that a compilation failed as expected.protected static final Status
Script.pass_compSuccExp
A status that may be used to indicate that a compilation succeeded as expected.protected static final Status
Script.pass_execFailExp
A status that may be used to indicate that an execution step failed, as was expected.Methods in com.sun.javatest that return StatusModifier and TypeMethodDescriptionReturn a new Status object with a possibly augmented reason field.Return a new Status object with a possibly augmented reason field.protected Status
Script.compileIfNecessary
(File[] srcs, String classDir) Compile those source files for which the corresponding class file appears to be out of date.protected Status
Script.compileIfNecessary
(String[] srcs, String classDir) Compile those source files for which the corresponding class file appears to be out of date.protected Status
Script.compileIfNecessary
(String command, File[] srcs, String classDir) Compile those source files for which the corresponding class file appears to be out of date.protected Status
Script.compileIfNecessary
(String command, String[] srcs, String classDir) Compile those source files for which the corresponding class file appears to be out of date.protected Status
Script.compileIndividually
(File... srcs) Compile the given source files individually.protected Status
Script.compileIndividually
(String... srcs) Compile the given source files individually.protected Status
Script.compileIndividually
(String command, File... srcs) Compile the given source files individually.protected Status
Script.compileIndividually
(String command, String... srcs) Compile the given source files individually.protected Status
Script.compileOne
(File src) Compiles the given source file.protected Status
Script.compileOne
(String src) Compile the given source file.protected Status
Script.compileOne
(String command, File src) Compiles the given source file.protected Status
Script.compileOne
(String command, String src) Compile the given source file.protected Status
Script.compileTogether
(File... srcs) Compile the given source files together.protected Status
Script.compileTogether
(String... srcs) Compile the given source files together.protected Status
Script.compileTogether
(String command, File... srcs) Compile the given source files together.protected Status
Script.compileTogether
(String command, String[] srcs) Compile the given source files together.static Status
Create a Status to indicate that an error occurred while trying to run a test: i.e.protected Status
Execute the given class with the given arguments, which need to be passed to the environment for $ substitution and for splitting into separate strings.protected Status
Execute the given class with the given arguments.protected Status
Execute the given class with the given arguments, which need to be passed to the environment for $ substitution and for splitting into separate strings.protected Status
Execute the given class with the given arguments.static Status
Create a Status to indicate the unsuccessful outcome of a test: i.e.TestResult.getStatus()
Get the status for this test.TestResult.Section.getStatus()
Find out what the result of the execution of this section was.protected Status
Script.invokeCommand
(String key) Invoke a command in the environment identified by a given key.static Status
Status.notApplicable
(String reason) Deprecated.static Status
Parse a string-form of a Status.static Status
Create a Status to indicate the successful outcome of a test.protected Status
Script.rmiCompile
(String... classes) RMI Compile the given class files.protected Status
Script.rmiCompile
(String command, String... classes) RMI Compile the given class files.abstract Status
Command.run
(String[] args, PrintWriter out1, PrintWriter out2) The method that that does the work of the command.abstract Status
Script.run
(String[] args, TestDescription td, TestEnvironment env) The primary method to be provided by Scripts.Test.run
(String[] args, PrintWriter out1, PrintWriter out2) Runs the test embodied by the implementation.Methods in com.sun.javatest with parameters of type StatusModifier and TypeMethodDescriptionReturn a new Status object with a possibly augmented reason field.void
Set the result of this section.void
Set the result of this test.Constructors in com.sun.javatest with parameters of type StatusModifierConstructorDescriptionTestResult
(TestDescription td, Status s) Create a temporary test result for which can be handed around in situations where a reasonable test result can't be created. -
Uses of Status in com.sun.javatest.lib
Methods in com.sun.javatest.lib that return StatusModifier and TypeMethodDescriptionProcessCommand.exec
(String[] cmd, String[] cmdEnv, PrintWriter log, PrintWriter ref) Execute a command, bypassing the standard argument decoding of 'run'.protected Status
Generate a status for the command, based upon the command's exit code and a status that may have been passed from the command by usingstatus.exit()
.MultiStatus.getStatus()
Get the aggregate outcome of all the outcomes passed to "add".protected Status
Generate a status for the command, based upon the command's exit code and a status that may have been passed from the command by usingstatus.exit()
.protected Status
Deprecated.Use decodeArg(String and init() instead.protected Status
MultiTest.invokeTestCase
(Method m) TestCases.invokeTestCases()
Invoke each of the selected test cases, based upon the select and exclude calls that have been made, if any.static Status
MultiStatus.overallStatus
(String[] testIDs, Status... status) Generates a Status object that reflects an array of Status objects.static Status
MultiStatus.overallStatus
(String[] testIDs, Status[] status, PrintWriter out) Generates a Status object that reflects an array of Status objects.APIScript.run
(String[] args, TestDescription td, TestEnvironment env) The method that interprets the tags provided in the test description and performs actions accordingly.ExecStdTestSameJVMCmd.run
(String[] args, PrintWriter log, PrintWriter ref) The method that that does the work of the command.JavaCompileCommand.run
(String[] args, PrintWriter log, PrintWriter ref) Invoke a specified compiler, or the default, javac.KeywordScript.run
(String[] args, TestDescription td, TestEnvironment env) final Status
MultiTest.run
(String[] argv, PrintStream log, PrintStream ref) Run the test contained in this object.MultiTest.run
(String[] argv, PrintWriter log, PrintWriter ref) Run the test contained in this object.ProcessCommand.run
(String[] args, PrintWriter log, PrintWriter ref) Run the given command.ReportScript.run
(String[] args, TestDescription td, TestEnvironment env) This method should not be called; for this class, its identity is significant, not its implementation.StdTestScript.run
(String[] args, TestDescription td, TestEnvironment env) Methods in com.sun.javatest.lib with parameters of type StatusModifier and TypeMethodDescriptionvoid
Add another test result into the set for consideration.protected Status
Generate a status for the command, based upon the command's exit code and a status that may have been passed from the command by usingstatus.exit()
.protected Status
Generate a status for the command, based upon the command's exit code and a status that may have been passed from the command by usingstatus.exit()
.static Status
MultiStatus.overallStatus
(String[] testIDs, Status... status) Generates a Status object that reflects an array of Status objects.static Status
MultiStatus.overallStatus
(String[] testIDs, Status[] status, PrintWriter out) Generates a Status object that reflects an array of Status objects.void
ProcessCommand.setDefaultStatus
(Status status) Set the default status to be returned for all exit codes.void
ProcessCommand.setStatusForExit
(int exitCode, Status status) Set a status to be returned for a specific exit code, overwriting any previous setting for this exit code. -
Uses of Status in com.sun.javatest.tool
Methods in com.sun.javatest.tool with parameters of type StatusModifier and TypeMethodDescriptionstatic String
I18NUtils.getStatusMessage
(Status status) Get localized version of the message string.