Clients should use the appropriate setter methods to initialize the results.
The test invocation results provides information about the enumerated file system directories. This is in order for the build task to be able to track the expected file contents of a directory. Note that the class doesn't include information about the accessed files. The file accesses by the test case are tracked by the testing instrumentation on-the-fly.
public | For Externalizable. |
public | JavaTestInvocationResult( Creates a new instance and sets the result of the test. |
public NavigableSet< | Gets the class dependent classes that the test case uses. |
public Integer | Gets the exit code of the test case. |
public String | Gets the test failure information. |
public NavigableMap< | Gets the listed directories by the test case. |
public boolean | Gets if the test execution was successful. |
public void | The object implements the readExternal method to restore its
contents by calling the methods of DataInput for primitive
types and readObject for objects, strings and arrays. |
public void | setDependentClasses( Sets the class dependencies of the test case. |
public void | setExitCode( Sets the test exit code. |
public void | setFailureInformation( Sets the textual failure information of the test. |
public void | setListedDirectories( Sets the listed directories by the test case. |
public void | setSuccessful( Sets the test result. |
public void | The object implements the writeExternal method to save its contents
by calling the methods of DataOutput for its primitive values or
calling the writeObject method of ObjectOutput for objects, strings,
and arrays. |
true
if the testing was successful.The result contains the internal names of the classes.
null
if not set.
The exit code may be set to non-null
to signal that the test exited with an exit code. This is
usually done if the test runner calls System.exit(
If the test is set to failed, and the tester build task was configured to accept the test exit code, then the test fill be considered as successful.
null
if not none.The failure information contains arbitrary string contents about the test case that can be displayed to the user if the test failed. It's usually the standard out and error of the test case.
null
.The returned map contains the directory paths as keys mapped to the enumerated file names by the test case.
null
if not set.If the test case wasn't set as successful, it may be still considered as succeeded if the exit code is accepted by the test build task configuration.
true
if the test was successful.