TPTP 4.5.0 Platform Project
Public API Specification

org.eclipse.hyades.models.common.facades.behavioral.impl
Class HyadesUtil

java.lang.Object
  extended by org.eclipse.hyades.models.common.facades.behavioral.impl.HyadesUtil

public class HyadesUtil
extends java.lang.Object

Contains utility methods to manipulate the Behavioral model facade.


Field Summary
static HyadesUtil INSTANCE
           
 
Constructor Summary
HyadesUtil()
           
 
Method Summary
 boolean containsSuite(java.util.List referencedSuites, ITestSuite test)
           
 void createSUTInstances(BVRInteractionImpl interaction, BVRInteractionFragmentImpl action)
           
static ITargetInvocation createTargetInvocation(ITestCase input)
          Creates the target invocation based on the input argument
static ITargetInvocation getTargetInvocation(ITestCase input)
          Returns the target invocation associated with the input test case
 ITestSuite getTestSuite(ITest test)
           
static java.lang.String getTestSuiteVariable(ITest testSuite, java.lang.String variableName)
          Returns the value of the variable set for the test suite passed as argument
static void setTestSuiteVariable(ITest testSuite, java.lang.String variableName, java.lang.String variableValue)
          Set the test suite variable to the argument passed in
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INSTANCE

public static final HyadesUtil INSTANCE
Constructor Detail

HyadesUtil

public HyadesUtil()
Method Detail

createSUTInstances

public void createSUTInstances(BVRInteractionImpl interaction,
                               BVRInteractionFragmentImpl action)

getTestSuite

public ITestSuite getTestSuite(ITest test)

containsSuite

public boolean containsSuite(java.util.List referencedSuites,
                             ITestSuite test)

getTargetInvocation

public static ITargetInvocation getTargetInvocation(ITestCase input)
Returns the target invocation associated with the input test case

Parameters:
input - The test case
Returns:
The associated target invocation

createTargetInvocation

public static ITargetInvocation createTargetInvocation(ITestCase input)
Creates the target invocation based on the input argument

Parameters:
input - The test case
Returns:
Creates and associates a target invocation to the input test case

getTestSuiteVariable

public static java.lang.String getTestSuiteVariable(ITest testSuite,
                                                    java.lang.String variableName)
Returns the value of the variable set for the test suite passed as argument

Parameters:
testSuite - The test suite
variableName - The name of the variable
Returns:
The value of the variable

setTestSuiteVariable

public static void setTestSuiteVariable(ITest testSuite,
                                        java.lang.String variableName,
                                        java.lang.String variableValue)
Set the test suite variable to the argument passed in


TPTP 4.5.0 Platform Project
Public API Specification