TPTP 4.2.0 Testing Tools Project
Public API Specification

org.eclipse.hyades.test.common.junit
Interface IHyadesTest

All Superinterfaces:
junit.framework.Test
All Known Implementing Classes:
HyadesTestCase, HyadesTestSuite

public interface IHyadesTest
extends junit.framework.Test

This interface defines an extended API to the Test interface that enforces that all implementors are a JUnit compliant Test with additional information regarding the parent Test, the current iteration and the name of the Test. This interface must be implemented by JUnit tests that are associated to a TPTP behavior model.

Since:
1.0.1

Method Summary
 java.lang.String getId()
          Returns the id of the test
 int getIteration()
          Returns the current iteration of the test or -1 if the iteration cannot be calculated.
 java.lang.String getName()
          Returns the name of the test.
 junit.framework.Test getParent()
          Returns the parent of this test.
 java.lang.String getTestInvocationId()
          Gets the test invocation id.
 boolean isLoop()
          Returns whether or not this test implements a loop.
 boolean isSynchronous()
          Returns whether this test is synchronous or asynchronous.
 IHyadesTest setId(java.lang.String id)
          Sets the test id
 IHyadesTest setLoop(boolean loop)
          Sets whether this test implements a loop
 void setParent(junit.framework.Test parent)
          Sets the parent of this test.
 IHyadesTest setSynchronous(boolean synchronous)
          Sets wheter this test must be executed synchronously or asynchronously.
 IHyadesTest setTestInvocationId(java.lang.String testInvocationId)
          Sets the test invocation id.
 java.lang.String toJUnitString()
          Returns the default JUnit toString value.
 
Methods inherited from interface junit.framework.Test
countTestCases, run
 

Method Detail

setId

public IHyadesTest setId(java.lang.String id)
Sets the test id

Returns:
this test

getId

public java.lang.String getId()
Returns the id of the test


setParent

public void setParent(junit.framework.Test parent)
Sets the parent of this test.

Parameters:
parent -

getParent

public junit.framework.Test getParent()
Returns the parent of this test.

Returns:
Test

setTestInvocationId

public IHyadesTest setTestInvocationId(java.lang.String testInvocationId)
Sets the test invocation id.

Parameters:
testInvocationId -
Returns:
this test

getTestInvocationId

public java.lang.String getTestInvocationId()
Gets the test invocation id.

Returns:
String

getIteration

public int getIteration()
Returns the current iteration of the test or -1 if the iteration cannot be calculated.

Returns:
int

getName

public java.lang.String getName()
Returns the name of the test.

Returns:
String

toJUnitString

public java.lang.String toJUnitString()
Returns the default JUnit toString value.

Returns:
String

setSynchronous

public IHyadesTest setSynchronous(boolean synchronous)
Sets wheter this test must be executed synchronously or asynchronously.

Parameters:
synchronous -
Returns:
this test

isSynchronous

public boolean isSynchronous()
Returns whether this test is synchronous or asynchronous.

Returns:
boolean

setLoop

public IHyadesTest setLoop(boolean loop)
Sets whether this test implements a loop

Parameters:
loop -
Returns:
this test

isLoop

public boolean isLoop()
Returns whether or not this test implements a loop.

Returns:
boolean

TPTP 4.2.0 Testing Tools Project
Public API Specification