TestNG 6.1.1-redhat-2

org.testng
Class SuiteRunnerWorker

java.lang.Object
  extended by org.testng.SuiteRunnerWorker
All Implemented Interfaces:
Comparable<org.testng.internal.thread.graph.IWorker<ISuite>>, Runnable, org.testng.internal.thread.graph.IWorker<ISuite>

public class SuiteRunnerWorker
extends Object
implements org.testng.internal.thread.graph.IWorker<ISuite>

An IWorker that is used to encapsulate and run Suite Runners

Author:
cbeust, nullin

Constructor Summary
SuiteRunnerWorker(ISuite suiteRunner, Map<XmlSuite,ISuite> suiteRunnerMap, int verbose, String defaultSuiteName)
           
 
Method Summary
 int compareTo(org.testng.internal.thread.graph.IWorker<ISuite> arg0)
           
 int getPriority()
           
 List<ISuite> getTasks()
           
 long getTimeOut()
           
 void run()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SuiteRunnerWorker

public SuiteRunnerWorker(ISuite suiteRunner,
                         Map<XmlSuite,ISuite> suiteRunnerMap,
                         int verbose,
                         String defaultSuiteName)
Method Detail

run

public void run()
Specified by:
run in interface Runnable

compareTo

public int compareTo(org.testng.internal.thread.graph.IWorker<ISuite> arg0)
Specified by:
compareTo in interface Comparable<org.testng.internal.thread.graph.IWorker<ISuite>>

getTasks

public List<ISuite> getTasks()
Specified by:
getTasks in interface org.testng.internal.thread.graph.IWorker<ISuite>
Returns:
list of tasks this worker is working on.

toString

public String toString()
Overrides:
toString in class Object

getTimeOut

public long getTimeOut()
Specified by:
getTimeOut in interface org.testng.internal.thread.graph.IWorker<ISuite>
Returns:
the maximum time allowed for the worker to complete the task.

getPriority

public int getPriority()
Specified by:
getPriority in interface org.testng.internal.thread.graph.IWorker<ISuite>
Returns:
the priority of this task.

TestNG 6.1.1-redhat-2

Copyright © 2012 JBoss by Red Hat. All Rights Reserved.