Execution encapsulates metadata for the execution of a single
TestDescriptor.
| Modifier and Type | Field and Description |
|---|---|
| private final Duration | |
| private final Instant | |
| private final Instant | |
| private final TerminationInfo | |
| private final TestDescriptor |
| Access | Constructor and Description |
|---|---|
| private | Execution(TestDescriptor testDescriptor, Instant startInstant, Instant endInstant, TerminationInfo terminationInfo)
|
| Modifier and Type | Method and Description |
|---|---|
| public static Execution | Returns: the newly createdExecution instance; never nullthe testDescriptor, Instant TestDescriptor that finished;
never nullthe startInstant, Instant Instant that the Execution started;
never nullthe endInstant, TestExecutionResult Instant that the Execution completed;
never nullthe executionResult)TestExecutionResult of the finished
TestDescriptor; never nullCreate a new instance of an |
| public Duration | |
| public Instant | |
| public Instant | Returns: the startInstant of this ExecutionGet the start |
| public TerminationInfo | Returns: theTerminationInfo for this ExecutionGet the |
| public TestDescriptor | Returns: theTestDescriptor for this ExecutionGet the |
| public static Execution | Returns: the newly createdExecution instance; never nullthe testDescriptor, Instant TestDescriptor that finished;
never nullthe startInstant, Instant Instant that the Execution started;
never nullthe endInstant, String Instant that the Execution completed;
never nullthe reason the skipReason)TestDescriptor was skipped;
may be nullCreate a new instance of an |
| public String |
| duration | back to summary |
|---|---|
| private final Duration duration | |
| endInstant | back to summary |
|---|---|
| private final Instant endInstant | |
| startInstant | back to summary |
|---|---|
| private final Instant startInstant | |
| terminationInfo | back to summary |
|---|---|
| private final TerminationInfo terminationInfo | |
| testDescriptor | back to summary |
|---|---|
| private final TestDescriptor testDescriptor | |
| Execution | back to summary |
|---|---|
| private Execution(TestDescriptor testDescriptor, Instant startInstant, Instant endInstant, TerminationInfo terminationInfo) | |
| finished | back to summary |
|---|---|
| public static Execution finished(TestDescriptor testDescriptor, Instant startInstant, Instant endInstant, TestExecutionResult executionResult) Create a new instance of an
| |
| getDuration | back to summary |
|---|---|
| public Duration getDuration() Get the
| |
| getEndInstant | back to summary |
|---|---|
| public Instant getEndInstant() Get the end
| |
| getStartInstant | back to summary |
|---|---|
| public Instant getStartInstant() Get the start
| |
| getTerminationInfo | back to summary |
|---|---|
| public TerminationInfo getTerminationInfo() Get the
| |
| getTestDescriptor | back to summary |
|---|---|
| public TestDescriptor getTestDescriptor() Get the
| |
| skipped | back to summary |
|---|---|
| public static Execution skipped(TestDescriptor testDescriptor, Instant startInstant, Instant endInstant, String skipReason) Create a new instance of an
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non-
| |