|
TPTP 4.4.0 Testing Tools Project Public API Specification |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.eclipse.hyades.test.common.runner.HyadesRunner
org.eclipse.hyades.test.common.junit.HyadesTestRunner
| Nested Class Summary | |
|---|---|
protected static class |
HyadesTestRunner.Invocation
Describes an invocation element in the parent stack. |
protected static class |
HyadesTestRunner.Loop
Describes a loop in the parent stack. |
protected static interface |
HyadesTestRunner.ParentObject
Describes an element in the parent stack. |
protected static class |
HyadesTestRunner.RootObject
Describes the root of the parent stack. |
| Nested classes inherited from class org.eclipse.hyades.test.common.runner.HyadesRunner |
|---|
HyadesRunner.Commandhandler |
| Field Summary | |
|---|---|
protected static boolean |
SYSOUT
|
| Fields inherited from class org.eclipse.hyades.test.common.runner.HyadesRunner |
|---|
agent, AGENT_NAME, agentCollection, agentName, comptestAgent, TEST_CLASS, TEST_CLASS_INDEX, TEST_ID, TEST_ID_INDEX, testClass, testID |
| Constructor Summary | |
|---|---|
HyadesTestRunner()
Constructor for HyadesTestRunner |
|
HyadesTestRunner(org.eclipse.hyades.internal.execution.remote.RemoteComponentSkeleton agent)
|
|
HyadesTestRunner(java.lang.String[] args)
|
|
HyadesTestRunner(java.lang.String[] args,
java.util.Vector commandHandler)
|
|
| Method Summary | |
|---|---|
protected java.lang.String |
_peekParentEventID()
|
protected java.lang.String |
_peekParentEventID(java.lang.Integer threadID)
|
protected HyadesTestRunner.ParentObject |
_popParentObject()
|
protected void |
_pushParentObject(HyadesTestRunner.ParentObject object)
|
void |
_seedParentStack(java.lang.Thread t)
|
void |
addError(junit.framework.Test test,
java.lang.Throwable throwable)
|
void |
addFailure(junit.framework.Test test,
junit.framework.AssertionFailedError throwable)
|
protected java.lang.String |
appendLoopIterationToID(java.lang.String ID,
IHyadesTest parentTest)
|
protected java.lang.String |
computeVerdictId(java.lang.String parentId)
|
protected junit.framework.TestResult |
createTestResult()
Creates the TestResult to be used for the test run. |
void |
endTest(junit.framework.Test test)
|
protected java.util.Collection |
filterTests(junit.framework.Test parent,
java.util.Collection tests)
Deprecated. This method does not work properly when tests contains non-TPTP JUnit tests (i.e. tests that do not implement IHyadesTest).
Use HyadesTestRunner.Invocation instances from the stack getParentStack() to determine
which tests are direct children of a given parent. |
protected long |
getCurrentTime()
Returns the current timestamp. |
protected VerdictEvent |
getDefaultVerdictEvent(junit.framework.Test test)
Deprecated. Use getDefaultVerdictEvent(Test, org.eclipse.hyades.test.common.junit.HyadesTestRunner.Invocation) instead. |
protected VerdictEvent |
getDefaultVerdictEvent(junit.framework.Test test,
HyadesTestRunner.Invocation parent)
Returns the default verdict event, which is pass for test cases and the arbiter evaluation for test suites. |
java.util.Collection |
getErrorTests()
Returns a collection with the hirarchy ids of the test cases that have ended because of an error. |
java.util.Collection |
getFailureTests()
Returns a collection with the hirarchy ids of the test cases that have ended because of a failure. |
protected java.lang.String |
getLastEventText(boolean runnerStopped,
long elapsedTime)
|
static java.util.Stack |
getParentStack()
|
static java.lang.Integer |
getParentThreadID(java.lang.Integer i)
|
static java.lang.Integer |
getParentThreadID(java.lang.Thread t)
|
junit.framework.Test |
getRoot()
Returns the root test, ie. the test that is passed to this runner. |
java.util.Collection |
getSucceedTests()
Returns a collection with the hirarchy ids of the test cases that have been succeed. |
protected static java.lang.String |
getTestName(junit.framework.Test test)
|
protected boolean |
isRedundantVerdict(junit.framework.Test test,
HyadesTestRunner.Invocation parent)
|
static java.lang.String |
peekParentEventID()
Deprecated. Use the non-static method _peekParentEventID() instead. |
static java.lang.String |
peekParentEventID(java.lang.Integer threadID)
Deprecated. Use the non-static method _peekParentEventID(Integer) instead. |
protected HyadesTestRunner.Invocation |
peekParentInvocation()
|
protected HyadesTestRunner.Invocation |
peekParentInvocation(java.lang.Integer threadID)
|
protected HyadesTestRunner.ParentObject |
peekParentObject()
|
protected HyadesTestRunner.ParentObject |
peekParentObject(java.lang.Integer threadID)
|
static HyadesTestRunner.ParentObject |
popParentObject()
Deprecated. Use the non-static method _popParentObject() instead. |
protected void |
propagateVerdict(junit.framework.Test test,
VerdictEvent event)
|
static void |
pushParentObject(HyadesTestRunner.ParentObject object)
Deprecated. Use the non-static method _pushParentObject(org.eclipse.hyades.test.common.junit.HyadesTestRunner.ParentObject) instead. |
void |
run(java.lang.Class testClass)
Runs a suite extracted from a TestCase subclass. |
void |
run(junit.framework.Test test)
Runs a single test and collects its results. |
protected void |
runnerExit(boolean runnerStopped,
long elapsedTime)
The runner is up to finish its activities. |
protected void |
runnerStarted()
The runner has started. |
static void |
seedParentStack(java.lang.Thread t)
Deprecated. Use the non-static method _seedParentStack(Thread) instead. |
static void |
setParentStack(java.util.Stack parentStack)
|
static void |
setParentThread(java.lang.Thread child,
java.lang.Thread parent)
|
protected void |
setRoot(junit.framework.Test root)
Sets the root test, ie. the test that is passed to this runner. |
void |
startTest(junit.framework.Test test)
|
protected void |
writeEvent(ExecutionEvent executionEvent)
Writes an event. |
| Methods inherited from class org.eclipse.hyades.test.common.runner.HyadesRunner |
|---|
dispose, getAgent, handleCustomCommand, isOKToStart, setOKToStart, setRunnerProperties, writeExecEvent, writeExecEvent |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected static final boolean SYSOUT
| Constructor Detail |
public HyadesTestRunner()
public HyadesTestRunner(org.eclipse.hyades.internal.execution.remote.RemoteComponentSkeleton agent)
public HyadesTestRunner(java.lang.String[] args)
public HyadesTestRunner(java.lang.String[] args,
java.util.Vector commandHandler)
| Method Detail |
public static void setParentThread(java.lang.Thread child,
java.lang.Thread parent)
public static java.lang.Integer getParentThreadID(java.lang.Thread t)
public static java.lang.Integer getParentThreadID(java.lang.Integer i)
public static java.util.Stack getParentStack()
public static void setParentStack(java.util.Stack parentStack)
public static java.lang.String peekParentEventID()
_peekParentEventID() instead.
protected java.lang.String _peekParentEventID()
protected HyadesTestRunner.ParentObject peekParentObject()
protected HyadesTestRunner.Invocation peekParentInvocation()
public static java.lang.String peekParentEventID(java.lang.Integer threadID)
_peekParentEventID(Integer) instead.
protected java.lang.String _peekParentEventID(java.lang.Integer threadID)
protected HyadesTestRunner.ParentObject peekParentObject(java.lang.Integer threadID)
protected HyadesTestRunner.Invocation peekParentInvocation(java.lang.Integer threadID)
public static void pushParentObject(HyadesTestRunner.ParentObject object)
_pushParentObject(org.eclipse.hyades.test.common.junit.HyadesTestRunner.ParentObject) instead.
protected void _pushParentObject(HyadesTestRunner.ParentObject object)
public static HyadesTestRunner.ParentObject popParentObject()
_popParentObject() instead.
protected HyadesTestRunner.ParentObject _popParentObject()
public static void seedParentStack(java.lang.Thread t)
_seedParentStack(Thread) instead.
public void _seedParentStack(java.lang.Thread t)
public junit.framework.Test getRoot()
protected void setRoot(junit.framework.Test root)
root - public java.util.Collection getSucceedTests()
public java.util.Collection getFailureTests()
public java.util.Collection getErrorTests()
public void run(java.lang.Class testClass)
testClass - public void run(junit.framework.Test test)
protected junit.framework.TestResult createTestResult()
protected long getCurrentTime()
protected void runnerStarted()
protected void runnerExit(boolean runnerStopped,
long elapsedTime)
runnerStopped -
protected java.lang.String getLastEventText(boolean runnerStopped,
long elapsedTime)
public void startTest(junit.framework.Test test)
startTest in interface junit.framework.TestListenerTestListener.startTest(junit.framework.Test)protected static java.lang.String getTestName(junit.framework.Test test)
public void endTest(junit.framework.Test test)
endTest in interface junit.framework.TestListenerTestListener.endTest(junit.framework.Test)
protected void propagateVerdict(junit.framework.Test test,
VerdictEvent event)
protected VerdictEvent getDefaultVerdictEvent(junit.framework.Test test,
HyadesTestRunner.Invocation parent)
test -
protected boolean isRedundantVerdict(junit.framework.Test test,
HyadesTestRunner.Invocation parent)
protected VerdictEvent getDefaultVerdictEvent(junit.framework.Test test)
getDefaultVerdictEvent(Test, org.eclipse.hyades.test.common.junit.HyadesTestRunner.Invocation) instead.
test -
public void addError(junit.framework.Test test,
java.lang.Throwable throwable)
addError in interface junit.framework.TestListenerTestListener.addError(junit.framework.Test, java.lang.Throwable)
public void addFailure(junit.framework.Test test,
junit.framework.AssertionFailedError throwable)
addFailure in interface junit.framework.TestListenerTestListener.addFailure(junit.framework.Test, junit.framework.AssertionFailedError)protected void writeEvent(ExecutionEvent executionEvent)
executionEvent -
protected java.util.Collection filterTests(junit.framework.Test parent,
java.util.Collection tests)
IHyadesTest).
Use HyadesTestRunner.Invocation instances from the stack getParentStack() to determine
which tests are direct children of a given parent.
parent - tests -
protected java.lang.String computeVerdictId(java.lang.String parentId)
protected java.lang.String appendLoopIterationToID(java.lang.String ID,
IHyadesTest parentTest)
|
TPTP 4.4.0 Testing Tools Project Public API Specification |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||