JTR 4.0 API Documentation

jtr.test
Class Test

java.lang.Object
  extended by java.lang.Thread
      extended by jtr.test.Test
All Implemented Interfaces:
java.lang.Runnable

public class Test
extends java.lang.Thread

This class represents one of the two entry points to a JTRunner test.
It contains a main method that synchronously starts the main thread of the current test.

Since:
1.0
Version:
4.0
Author:
Francesco Russo (frusso@dev.java.net)
See Also:
SystemProperties, TestConfig, TestRunManager

Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler
 
Field Summary
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
Test(java.lang.String name)
          The constructor.
Test(java.lang.ThreadGroup group, java.lang.String name)
          The constructor.
 
Method Summary
static void main(java.lang.String[] args)
          Starts the test.
 void run()
          This method uses the provided system properties for reading in the configuration files.
After that it creates a TestRunManager using the TestConfig representing the provided jtr.xml file and starts the test.
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Test

public Test(java.lang.String name)
The constructor.

Parameters:
name - The name of the JTR main thread

Test

public Test(java.lang.ThreadGroup group,
            java.lang.String name)
The constructor.

Parameters:
group - A thread group for the JTR main thread
name - The name of the JTR main thread
Method Detail

run

public void run()
This method uses the provided system properties for reading in the configuration files.
After that it creates a TestRunManager using the TestConfig representing the provided jtr.xml file and starts the test.

Specified by:
run in interface java.lang.Runnable
Overrides:
run in class java.lang.Thread

main

public static void main(java.lang.String[] args)
Starts the test.

Parameters:
args - String[]

The JTR Project is licensed under GPL version 2