Class InVMExecution
- java.lang.Object
- 
- org.apache.tools.ant.taskdefs.optional.junitlauncher.InVMExecution
 
- 
- All Implemented Interfaces:
- TestExecutionContext
 
 public class InVMExecution extends java.lang.Object implements TestExecutionContext Used during in-vm (non-forked mode) launching of tests
- 
- 
Constructor SummaryConstructors Constructor Description InVMExecution(JUnitLauncherTask task)
 - 
Method SummaryModifier and Type Method Description java.util.Optional<Project>getProject()java.util.PropertiesgetProperties()
 
- 
- 
- 
Constructor Detail- 
InVMExecutionpublic InVMExecution(JUnitLauncherTask task) 
 
- 
 - 
Method Detail- 
getPropertiespublic java.util.Properties getProperties() - Specified by:
- getPropertiesin interface- TestExecutionContext
- Returns:
- Returns the properties that were used for the execution of the test
 
 - 
getProjectpublic java.util.Optional<Project> getProject() - Specified by:
- getProjectin interface- TestExecutionContext
- Returns:
- Returns the Projectin whose context the test is being executed. TheProjectis sometimes not available, like in the case where the test is being run in a forked mode, in such cases this method returnsan empty value
 
 
- 
 
-