Class Execution
java.lang.Object
org.junit.platform.testkit.engine.Execution
Execution encapsulates metadata for the execution of a single
TestDescriptor.- Since:
 - 1.4
 
- 
Method Summary
Modifier and TypeMethodDescriptionstatic Executionfinished(TestDescriptor testDescriptor, Instant startInstant, Instant endInstant, TestExecutionResult executionResult) Create a new instance of anExecutionthat finished with the providedTestExecutionResult.Get theDurationof thisExecution.Get the endInstantof thisExecution.Get the startInstantof thisExecution.Get theTerminationInfofor thisExecution.Get theTestDescriptorfor thisExecution.static Executionskipped(TestDescriptor testDescriptor, Instant startInstant, Instant endInstant, String skipReason) Create a new instance of anExecutionthat was skipped with the providedskipReason.toString() 
- 
Method Details
- 
finished
public static Execution finished(TestDescriptor testDescriptor, Instant startInstant, Instant endInstant, TestExecutionResult executionResult) Create a new instance of anExecutionthat finished with the providedTestExecutionResult.- Parameters:
 testDescriptor- theTestDescriptorthat finished; nevernullstartInstant- theInstantthat theExecutionstarted; nevernullendInstant- theInstantthat theExecutioncompleted; nevernullexecutionResult- theTestExecutionResultof the finishedTestDescriptor; nevernull- Returns:
 - the newly created 
Executioninstance; nevernull 
 - 
skipped
public static Execution skipped(TestDescriptor testDescriptor, Instant startInstant, Instant endInstant, String skipReason) Create a new instance of anExecutionthat was skipped with the providedskipReason.- Parameters:
 testDescriptor- theTestDescriptorthat finished; nevernullstartInstant- theInstantthat theExecutionstarted; nevernullendInstant- theInstantthat theExecutioncompleted; nevernullskipReason- the reason theTestDescriptorwas skipped; may benull- Returns:
 - the newly created 
Executioninstance; nevernull 
 - 
getTestDescriptor
Get theTestDescriptorfor thisExecution.- Returns:
 - the 
TestDescriptorfor thisExecution 
 - 
getStartInstant
 - 
getEndInstant
 - 
getDuration
 - 
getTerminationInfo
Get theTerminationInfofor thisExecution.- Returns:
 - the 
TerminationInfofor thisExecution 
 - 
toString
 
 -