Uses of Class
com.sun.javatest.Status
-
Packages that use Status Package Description com.sun.javatest This package provides facilities for reading, executing and monitoring tests.com.sun.javatest.lib This package contains miscellaneous library code that may be used by tests and frameworks.com.sun.javatest.tool 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 Status Modifier and Type Field Description protected static Status
Script. error_badExecuteArgs
A status that may be used to indicate problems in the executeArgs field of a test description.protected static Status
Script. error_badTestClassDir
A status that may be used to indicate a problem with a test's class directory.protected static Status
Script. error_compFailUnexp
A status that may be used to indicate that a compilation failed unexpectedly.protected static Status
Script. error_noActionSpecified
A status that may be used to indicate that no action was specified.protected static Status
Script. error_noExecuteClass
A status that may be used to indicate that no execute class was specified in a test description.protected static Status
Script. error_noExtnInSource
A status that may be used to indicate that no extension was found in a source file.protected static Status
Script. error_noRMIClasses
A status that may be used to indicate that no rmi classes were specified in a test description.protected static Status
Script. error_noSource
A status that may be used to indicate that no sources were specified in a test description.protected static Status
Script. fail_compFailUnexp
A status that may be used to indicate the a compilation failed unexpectedly.protected static Status
Script. fail_compSuccUnexp
A status that may be used to indicate that a compilation did not fail as was expected.protected static 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 Status
Script. noExtnInSource
A status that may be used to indicate that no extension was found in a source file.protected static Status
Script. noSource
A status that may be used to indicate that no source files were found in the test description.protected static Status
Script. pass_compFailExp
A status that may be used to indicate that a compilation failed as expected.protected static Status
Script. pass_compSuccExp
A status that may be used to indicate that a compilation succeeded as expected.protected static 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 Status Modifier and Type Method Description Status
Status. augment(Status aux)
Return a new Status object with a possibly augmented reason field.Status
Status. augment(java.lang.String aux)
Return a new Status object with a possibly augmented reason field.protected Status
Script. compileIfNecessary(java.io.File[] srcs, java.lang.String classDir)
Compile those source files for which the corresponding class file appears to be out of date.protected Status
Script. compileIfNecessary(java.lang.String[] srcs, java.lang.String classDir)
Compile those source files for which the corresponding class file appears to be out of date.protected Status
Script. compileIfNecessary(java.lang.String command, java.io.File[] srcs, java.lang.String classDir)
Compile those source files for which the corresponding class file appears to be out of date.protected Status
Script. compileIfNecessary(java.lang.String command, java.lang.String[] srcs, java.lang.String classDir)
Compile those source files for which the corresponding class file appears to be out of date.protected Status
Script. compileIndividually(java.io.File... srcs)
Compile the given source files individually.protected Status
Script. compileIndividually(java.lang.String... srcs)
Compile the given source files individually.protected Status
Script. compileIndividually(java.lang.String command, java.io.File... srcs)
Compile the given source files individually.protected Status
Script. compileIndividually(java.lang.String command, java.lang.String... srcs)
Compile the given source files individually.protected Status
Script. compileOne(java.io.File src)
Compiles the given source file.protected Status
Script. compileOne(java.lang.String src)
Compile the given source file.protected Status
Script. compileOne(java.lang.String command, java.io.File src)
Compiles the given source file.protected Status
Script. compileOne(java.lang.String command, java.lang.String src)
Compile the given source file.protected Status
Script. compileTogether(java.io.File... srcs)
Compile the given source files together.protected Status
Script. compileTogether(java.lang.String... srcs)
Compile the given source files together.protected Status
Script. compileTogether(java.lang.String command, java.io.File... srcs)
Compile the given source files together.protected Status
Script. compileTogether(java.lang.String command, java.lang.String[] srcs)
Compile the given source files together.static Status
Status. error(java.lang.String reason)
Create a Status to indicate that an error occurred while trying to run a test: i.e.protected Status
Script. execute(java.lang.String executeClass, java.lang.String executeArgs)
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
Script. execute(java.lang.String executeClass, java.lang.String... executeArgs)
Execute the given class with the given arguments.protected Status
Script. execute(java.lang.String command, java.lang.String executeClass, java.lang.String executeArgs)
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
Script. execute(java.lang.String command, java.lang.String executeClass, java.lang.String... executeArgs)
Execute the given class with the given arguments.static Status
Status. failed(java.lang.String reason)
Create a Status to indicate the unsuccessful outcome of a test: i.e.Status
TestResult. getStatus()
Get the status for this test.Status
TestResult.Section. getStatus()
Find out what the result of the execution of this section was.protected Status
Script. invokeCommand(java.lang.String key)
Invoke a command in the environment identified by a given key.static Status
Status. notApplicable(java.lang.String reason)
Deprecated.static Status
Status. parse(java.lang.String s)
Parse a string-form of a Status.static Status
Status. passed(java.lang.String reason)
Create a Status to indicate the successful outcome of a test.protected Status
Script. rmiCompile(java.lang.String... classes)
RMI Compile the given class files.protected Status
Script. rmiCompile(java.lang.String command, java.lang.String... classes)
RMI Compile the given class files.abstract Status
Command. run(java.lang.String[] args, java.io.PrintWriter out1, java.io.PrintWriter out2)
The method that that does the work of the command.abstract Status
Script. run(java.lang.String[] args, TestDescription td, TestEnvironment env)
The primary method to be provided by Scripts.Status
Test. run(java.lang.String[] args, java.io.PrintWriter out1, java.io.PrintWriter out2)
Runs the test embodied by the implementation.Methods in com.sun.javatest with parameters of type Status Modifier and Type Method Description Status
Status. augment(Status aux)
Return a new Status object with a possibly augmented reason field.void
TestResult.Section. setStatus(Status result)
Set the result of this section.void
TestResult. setStatus(Status stat)
Set the result of this test.Constructors in com.sun.javatest with parameters of type Status Constructor Description TestResult(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 Status Modifier and Type Method Description Status
ProcessCommand. exec(java.lang.String[] cmd, java.lang.String[] cmdEnv, java.io.PrintWriter log, java.io.PrintWriter ref)
Execute a command, bypassing the standard argument decoding of 'run'.protected Status
ExecStdTestOtherJVMCmd. getStatus(int exitCode, Status logStatus)
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()
.Status
MultiStatus. getStatus()
Get the aggregate outcome of all the outcomes passed to "add".protected Status
ProcessCommand. getStatus(int exitCode, Status logStatus)
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
MultiTest. init(java.lang.String[] argv)
Deprecated.Use decodeArg(String and init() instead.protected Status
MultiTest. invokeTestCase(java.lang.reflect.Method m)
Status
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(java.lang.String[] testIDs, Status... status)
Generates a Status object that reflects an array of Status objects.static Status
MultiStatus. overallStatus(java.lang.String[] testIDs, Status[] status, java.io.PrintWriter out)
Generates a Status object that reflects an array of Status objects.Status
APIScript. run(java.lang.String[] args, TestDescription td, TestEnvironment env)
The method that interprets the tags provided in the test description and performs actions accordingly.Status
ExecStdTestSameJVMCmd. run(java.lang.String[] args, java.io.PrintWriter log, java.io.PrintWriter ref)
The method that that does the work of the command.Status
JavaCompileCommand. run(java.lang.String[] args, java.io.PrintWriter log, java.io.PrintWriter ref)
Invoke a specified compiler, or the default, javac.Status
KeywordScript. run(java.lang.String[] args, TestDescription td, TestEnvironment env)
Status
MultiTest. run(java.lang.String[] argv, java.io.PrintStream log, java.io.PrintStream ref)
Run the test contained in this object.Status
MultiTest. run(java.lang.String[] argv, java.io.PrintWriter log, java.io.PrintWriter ref)
Run the test contained in this object.Status
ProcessCommand. run(java.lang.String[] args, java.io.PrintWriter log, java.io.PrintWriter ref)
Run the given command.Status
ReportScript. run(java.lang.String[] args, TestDescription td, TestEnvironment env)
This method should not be called; for this class, its identity is significant, not its implementation.Status
StdTestScript. run(java.lang.String[] args, TestDescription td, TestEnvironment env)
Methods in com.sun.javatest.lib with parameters of type Status Modifier and Type Method Description void
MultiStatus. add(java.lang.String testID, Status status)
Add another test result into the set for consideration.protected Status
ExecStdTestOtherJVMCmd. getStatus(int exitCode, Status logStatus)
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
ProcessCommand. getStatus(int exitCode, Status logStatus)
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(java.lang.String[] testIDs, Status... status)
Generates a Status object that reflects an array of Status objects.static Status
MultiStatus. overallStatus(java.lang.String[] testIDs, Status[] status, java.io.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 Status Modifier and Type Method Description static java.lang.String
I18NUtils. getStatusMessage(Status status)
Get localized version of the message string.
-