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 StatusScript.error_badExecuteArgsA status that may be used to indicate problems in the executeArgs field of a test description.protected static final StatusScript.error_badTestClassDirA status that may be used to indicate a problem with a test's class directory.protected static final StatusScript.error_compFailUnexpA status that may be used to indicate that a compilation failed unexpectedly.protected static final StatusScript.error_noActionSpecifiedA status that may be used to indicate that no action was specified.protected static final StatusScript.error_noExecuteClassA status that may be used to indicate that no execute class was specified in a test description.protected static final StatusScript.error_noExtnInSourceA status that may be used to indicate that no extension was found in a source file.protected static final StatusScript.error_noRMIClassesA status that may be used to indicate that no rmi classes were specified in a test description.protected static final StatusScript.error_noSourceA status that may be used to indicate that no sources were specified in a test description.protected static final StatusScript.fail_compFailUnexpA status that may be used to indicate the a compilation failed unexpectedly.protected static final StatusScript.fail_compSuccUnexpA status that may be used to indicate that a compilation did not fail as was expected.protected static final StatusScript.fail_execSuccUnexpA status that may be used to indicate that a test execution step did not fail as wqas expected.protected static final StatusScript.noExtnInSourceA status that may be used to indicate that no extension was found in a source file.protected static final StatusScript.noSourceA status that may be used to indicate that no source files were found in the test description.protected static final StatusScript.pass_compFailExpA status that may be used to indicate that a compilation failed as expected.protected static final StatusScript.pass_compSuccExpA status that may be used to indicate that a compilation succeeded as expected.protected static final StatusScript.pass_execFailExpA 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 StatusScript.compileIfNecessary(File[] srcs, String classDir) Compile those source files for which the corresponding class file appears to be out of date.protected StatusScript.compileIfNecessary(String[] srcs, String classDir) Compile those source files for which the corresponding class file appears to be out of date.protected StatusScript.compileIfNecessary(String command, File[] srcs, String classDir) Compile those source files for which the corresponding class file appears to be out of date.protected StatusScript.compileIfNecessary(String command, String[] srcs, String classDir) Compile those source files for which the corresponding class file appears to be out of date.protected StatusScript.compileIndividually(File... srcs) Compile the given source files individually.protected StatusScript.compileIndividually(String... srcs) Compile the given source files individually.protected StatusScript.compileIndividually(String command, File... srcs) Compile the given source files individually.protected StatusScript.compileIndividually(String command, String... srcs) Compile the given source files individually.protected StatusScript.compileOne(File src) Compiles the given source file.protected StatusScript.compileOne(String src) Compile the given source file.protected StatusScript.compileOne(String command, File src) Compiles the given source file.protected StatusScript.compileOne(String command, String src) Compile the given source file.protected StatusScript.compileTogether(File... srcs) Compile the given source files together.protected StatusScript.compileTogether(String... srcs) Compile the given source files together.protected StatusScript.compileTogether(String command, File... srcs) Compile the given source files together.protected StatusScript.compileTogether(String command, String[] srcs) Compile the given source files together.static StatusCreate a Status to indicate that an error occurred while trying to run a test: i.e.protected StatusExecute the given class with the given arguments, which need to be passed to the environment for $ substitution and for splitting into separate strings.protected StatusExecute the given class with the given arguments.protected StatusExecute the given class with the given arguments, which need to be passed to the environment for $ substitution and for splitting into separate strings.protected StatusExecute the given class with the given arguments.static StatusCreate 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 StatusScript.invokeCommand(String key) Invoke a command in the environment identified by a given key.static StatusStatus.notApplicable(String reason) Deprecated.static StatusParse a string-form of a Status.static StatusCreate a Status to indicate the successful outcome of a test.protected StatusScript.rmiCompile(String... classes) RMI Compile the given class files.protected StatusScript.rmiCompile(String command, String... classes) RMI Compile the given class files.abstract StatusCommand.run(String[] args, PrintWriter out1, PrintWriter out2) The method that that does the work of the command.abstract StatusScript.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.voidSet the result of this section.voidSet 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 StatusGenerate 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 StatusGenerate 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 StatusDeprecated.Use decodeArg(String and init() instead.protected StatusMultiTest.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 StatusMultiStatus.overallStatus(String[] testIDs, Status... status) Generates a Status object that reflects an array of Status objects.static StatusMultiStatus.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 StatusMultiTest.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 TypeMethodDescriptionvoidAdd another test result into the set for consideration.protected StatusGenerate 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 StatusGenerate 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 StatusMultiStatus.overallStatus(String[] testIDs, Status... status) Generates a Status object that reflects an array of Status objects.static StatusMultiStatus.overallStatus(String[] testIDs, Status[] status, PrintWriter out) Generates a Status object that reflects an array of Status objects.voidProcessCommand.setDefaultStatus(Status status) Set the default status to be returned for all exit codes.voidProcessCommand.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 StringI18NUtils.getStatusMessage(Status status) Get localized version of the message string.