TPTP 4.3.0 Testing Tools Project
Public API Specification

org.eclipse.hyades.test.core.launch.delegates
Class BasicTestComponentLaunchConfigurationDelegate2

java.lang.Object
  extended byorg.eclipse.hyades.test.core.launch.delegates.AbstractLaunchConfigurationDelegate2
      extended byorg.eclipse.hyades.test.core.launch.delegates.BasicTestComponentLaunchConfigurationDelegate2
All Implemented Interfaces:
org.eclipse.debug.core.model.ILaunchConfigurationDelegate

public abstract class BasicTestComponentLaunchConfigurationDelegate2
extends AbstractLaunchConfigurationDelegate2

This class is the delegate for the TPTP Test Component launch configuration. It handles the launching of a TPTP Test Component according to a TPTP Test Component launch configuration.

Please note that Test Component UI support is incomplete in TPTP 4.0 and these APIs are provisional. They may be subject to changes in future releases.

See Also:
ILaunchConfigurationDelegate

Constructor Summary
BasicTestComponentLaunchConfigurationDelegate2()
          Create a Hyades Basic Launch Configuration Delegate.
 
Method Summary
protected  org.eclipse.hyades.models.common.testprofile.TPFDeployment getDeployment(org.eclipse.debug.core.ILaunchConfiguration configuration)
           
protected  java.lang.Object getLaunchedElement(org.eclipse.debug.core.ILaunchConfiguration configuration)
          Get the Test Element that the configuration will launch.
protected  org.eclipse.hyades.models.common.testprofile.TPFTestComponent getLaunchedTestComponent(org.eclipse.debug.core.ILaunchConfiguration configuration)
           
protected  org.eclipse.core.resources.IContainer getTestExecutionHistoryLocation(org.eclipse.debug.core.ILaunchConfiguration configuration)
           
protected  java.lang.String getTestExecutionHistoryName(org.eclipse.debug.core.ILaunchConfiguration configuration)
           
protected  void validate(org.eclipse.debug.core.ILaunchConfiguration configuration, java.lang.String mode)
          Validate a given configuration.
 
Methods inherited from class org.eclipse.hyades.test.core.launch.delegates.AbstractLaunchConfigurationDelegate2
getResourceSet, invokeTestExecutionHarness, launch, reportProblem, resetFields
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BasicTestComponentLaunchConfigurationDelegate2

public BasicTestComponentLaunchConfigurationDelegate2()
Create a Hyades Basic Launch Configuration Delegate.

Method Detail

getLaunchedTestComponent

protected org.eclipse.hyades.models.common.testprofile.TPFTestComponent getLaunchedTestComponent(org.eclipse.debug.core.ILaunchConfiguration configuration)
                                                                                          throws org.eclipse.core.runtime.CoreException
Throws:
org.eclipse.core.runtime.CoreException

getDeployment

protected org.eclipse.hyades.models.common.testprofile.TPFDeployment getDeployment(org.eclipse.debug.core.ILaunchConfiguration configuration)
                                                                            throws org.eclipse.core.runtime.CoreException
Throws:
org.eclipse.core.runtime.CoreException

getTestExecutionHistoryName

protected java.lang.String getTestExecutionHistoryName(org.eclipse.debug.core.ILaunchConfiguration configuration)
                                                throws org.eclipse.core.runtime.CoreException
Throws:
org.eclipse.core.runtime.CoreException

getTestExecutionHistoryLocation

protected org.eclipse.core.resources.IContainer getTestExecutionHistoryLocation(org.eclipse.debug.core.ILaunchConfiguration configuration)
                                                                         throws org.eclipse.core.runtime.CoreException
Throws:
org.eclipse.core.runtime.CoreException

getLaunchedElement

protected java.lang.Object getLaunchedElement(org.eclipse.debug.core.ILaunchConfiguration configuration)
                                       throws org.eclipse.core.runtime.CoreException
Description copied from class: AbstractLaunchConfigurationDelegate2
Get the Test Element that the configuration will launch. This Test Element is used to determine which runHandler will be invoked before the Execution Harness is called.

Specified by:
getLaunchedElement in class AbstractLaunchConfigurationDelegate2
Parameters:
configuration - A Hyades Launch Configuration
Returns:
A typed Test Element (instance of TPFTest or TPFTestComponent)
Throws:
org.eclipse.core.runtime.CoreException

validate

protected void validate(org.eclipse.debug.core.ILaunchConfiguration configuration,
                        java.lang.String mode)
                 throws org.eclipse.core.runtime.CoreException
Description copied from class: AbstractLaunchConfigurationDelegate2
Validate a given configuration. This method checks that the configuration contains the necessary information for running a test. Sub-classes should add more checks by overriding this method, and invoking the protected method reportProblem(String) (one or more times) for reporting any problems found in the configuration. If this method is not invoked, the configuration is considered as valid. Overriding methods should invoke the parent method using super.validate(configuration, mode).
This implementation checks the following points:

Overrides:
validate in class AbstractLaunchConfigurationDelegate2
Parameters:
configuration - A Hyades Launch Configuration
mode - The run mode the Launch Configuration should be running in.
Throws:
org.eclipse.core.runtime.CoreException

TPTP 4.3.0 Testing Tools Project
Public API Specification