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 StatusScript. error_badExecuteArgsA status that may be used to indicate problems in the executeArgs field of a test description.protected static StatusScript. error_badTestClassDirA status that may be used to indicate a problem with a test's class directory.protected static StatusScript. error_compFailUnexpA status that may be used to indicate that a compilation failed unexpectedly.protected static StatusScript. error_noActionSpecifiedA status that may be used to indicate that no action was specified.protected static StatusScript. error_noExecuteClassA status that may be used to indicate that no execute class was specified in a test description.protected static StatusScript. error_noExtnInSourceA status that may be used to indicate that no extension was found in a source file.protected static StatusScript. error_noRMIClassesA status that may be used to indicate that no rmi classes were specified in a test description.protected static StatusScript. error_noSourceA status that may be used to indicate that no sources were specified in a test description.protected static StatusScript. fail_compFailUnexpA status that may be used to indicate the a compilation failed unexpectedly.protected static StatusScript. fail_compSuccUnexpA status that may be used to indicate that a compilation did not fail as was expected.protected static StatusScript. fail_execSuccUnexpA status that may be used to indicate that a test execution step did not fail as wqas expected.protected static StatusScript. noExtnInSourceA status that may be used to indicate that no extension was found in a source file.protected static StatusScript. noSourceA status that may be used to indicate that no source files were found in the test description.protected static StatusScript. pass_compFailExpA status that may be used to indicate that a compilation failed as expected.protected static StatusScript. pass_compSuccExpA status that may be used to indicate that a compilation succeeded as expected.protected static 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 Status Modifier and Type Method Description StatusStatus. augment(Status aux)Return a new Status object with a possibly augmented reason field.StatusStatus. augment(java.lang.String aux)Return a new Status object with a possibly augmented reason field.protected StatusScript. 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 StatusScript. 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 StatusScript. 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 StatusScript. 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 StatusScript. compileIndividually(java.io.File... srcs)Compile the given source files individually.protected StatusScript. compileIndividually(java.lang.String... srcs)Compile the given source files individually.protected StatusScript. compileIndividually(java.lang.String command, java.io.File... srcs)Compile the given source files individually.protected StatusScript. compileIndividually(java.lang.String command, java.lang.String... srcs)Compile the given source files individually.protected StatusScript. compileOne(java.io.File src)Compiles the given source file.protected StatusScript. compileOne(java.lang.String src)Compile the given source file.protected StatusScript. compileOne(java.lang.String command, java.io.File src)Compiles the given source file.protected StatusScript. compileOne(java.lang.String command, java.lang.String src)Compile the given source file.protected StatusScript. compileTogether(java.io.File... srcs)Compile the given source files together.protected StatusScript. compileTogether(java.lang.String... srcs)Compile the given source files together.protected StatusScript. compileTogether(java.lang.String command, java.io.File... srcs)Compile the given source files together.protected StatusScript. compileTogether(java.lang.String command, java.lang.String[] srcs)Compile the given source files together.static StatusStatus. error(java.lang.String reason)Create a Status to indicate that an error occurred while trying to run a test: i.e.protected StatusScript. 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 StatusScript. execute(java.lang.String executeClass, java.lang.String... executeArgs)Execute the given class with the given arguments.protected StatusScript. 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 StatusScript. execute(java.lang.String command, java.lang.String executeClass, java.lang.String... executeArgs)Execute the given class with the given arguments.static StatusStatus. failed(java.lang.String reason)Create a Status to indicate the unsuccessful outcome of a test: i.e.StatusTestResult. getStatus()Get the status for this test.StatusTestResult.Section. getStatus()Find out what the result of the execution of this section was.protected StatusScript. invokeCommand(java.lang.String key)Invoke a command in the environment identified by a given key.static StatusStatus. notApplicable(java.lang.String reason)Deprecated.static StatusStatus. parse(java.lang.String s)Parse a string-form of a Status.static StatusStatus. passed(java.lang.String reason)Create a Status to indicate the successful outcome of a test.protected StatusScript. rmiCompile(java.lang.String... classes)RMI Compile the given class files.protected StatusScript. rmiCompile(java.lang.String command, java.lang.String... classes)RMI Compile the given class files.abstract StatusCommand. run(java.lang.String[] args, java.io.PrintWriter out1, java.io.PrintWriter out2)The method that that does the work of the command.abstract StatusScript. run(java.lang.String[] args, TestDescription td, TestEnvironment env)The primary method to be provided by Scripts.StatusTest. 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 StatusStatus. augment(Status aux)Return a new Status object with a possibly augmented reason field.voidTestResult.Section. setStatus(Status result)Set the result of this section.voidTestResult. 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 StatusProcessCommand. 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 StatusExecStdTestOtherJVMCmd. 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().StatusMultiStatus. getStatus()Get the aggregate outcome of all the outcomes passed to "add".protected StatusProcessCommand. 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 StatusMultiTest. init(java.lang.String[] argv)Deprecated.Use decodeArg(String and init() instead.protected StatusMultiTest. invokeTestCase(java.lang.reflect.Method m)StatusTestCases. invokeTestCases()Invoke each of the selected test cases, based upon the select and exclude calls that have been made, if any.static StatusMultiStatus. overallStatus(java.lang.String[] testIDs, Status... status)Generates a Status object that reflects an array of Status objects.static StatusMultiStatus. overallStatus(java.lang.String[] testIDs, Status[] status, java.io.PrintWriter out)Generates a Status object that reflects an array of Status objects.StatusAPIScript. run(java.lang.String[] args, TestDescription td, TestEnvironment env)The method that interprets the tags provided in the test description and performs actions accordingly.StatusExecStdTestSameJVMCmd. run(java.lang.String[] args, java.io.PrintWriter log, java.io.PrintWriter ref)The method that that does the work of the command.StatusJavaCompileCommand. run(java.lang.String[] args, java.io.PrintWriter log, java.io.PrintWriter ref)Invoke a specified compiler, or the default, javac.StatusKeywordScript. run(java.lang.String[] args, TestDescription td, TestEnvironment env)StatusMultiTest. run(java.lang.String[] argv, java.io.PrintStream log, java.io.PrintStream ref)Run the test contained in this object.StatusMultiTest. run(java.lang.String[] argv, java.io.PrintWriter log, java.io.PrintWriter ref)Run the test contained in this object.StatusProcessCommand. run(java.lang.String[] args, java.io.PrintWriter log, java.io.PrintWriter ref)Run the given command.StatusReportScript. 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.StatusStdTestScript. 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 voidMultiStatus. add(java.lang.String testID, Status status)Add another test result into the set for consideration.protected StatusExecStdTestOtherJVMCmd. 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 StatusProcessCommand. 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 StatusMultiStatus. overallStatus(java.lang.String[] testIDs, Status... status)Generates a Status object that reflects an array of Status objects.static StatusMultiStatus. overallStatus(java.lang.String[] testIDs, Status[] status, java.io.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 Status Modifier and Type Method Description static java.lang.StringI18NUtils. getStatusMessage(Status status)Get localized version of the message string.
-