org.jboss.testharness
Class AbstractTest

java.lang.Object
  extended by org.jboss.testharness.AbstractTest
All Implemented Interfaces:
org.testng.IHookable

public abstract class AbstractTest
extends Object
implements org.testng.IHookable


Constructor Summary
AbstractTest()
           
 
Method Summary
 void afterClass()
           
 void afterMethod()
           
 void afterSuite()
           
 void beforeClass()
           
 void beforeMethod()
           
 void beforeSuite(org.testng.ITestContext context)
           
protected  String getContextPath()
           
protected  Configuration getCurrentConfiguration()
           
protected  DeploymentException handleDeploymentFailure(DeploymentException deploymentException)
           
static boolean isInContainer()
           
protected  boolean isThrowablePresent(Class<? extends Throwable> throwableType, Throwable throwable)
           
protected  TCKArtifact postCreate(TCKArtifact artifact)
           
 void run(org.testng.IHookCallBack callback, org.testng.ITestResult testResult)
           
static void setInContainer(boolean inContainer)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractTest

public AbstractTest()
Method Detail

isInContainer

public static boolean isInContainer()

setInContainer

public static void setInContainer(boolean inContainer)

postCreate

protected TCKArtifact postCreate(TCKArtifact artifact)
                          throws IOException
Throws:
IOException

handleDeploymentFailure

protected DeploymentException handleDeploymentFailure(DeploymentException deploymentException)

beforeSuite

public void beforeSuite(org.testng.ITestContext context)
                 throws Exception
Throws:
Exception

afterSuite

public void afterSuite()
                throws Exception
Throws:
Exception

beforeClass

public void beforeClass()
                 throws Throwable
Throws:
Throwable

afterClass

public void afterClass()
                throws Exception
Throws:
Exception

beforeMethod

public void beforeMethod()

afterMethod

public void afterMethod()

run

public final void run(org.testng.IHookCallBack callback,
                      org.testng.ITestResult testResult)
Specified by:
run in interface org.testng.IHookable

getCurrentConfiguration

protected Configuration getCurrentConfiguration()

getContextPath

protected String getContextPath()

isThrowablePresent

protected boolean isThrowablePresent(Class<? extends Throwable> throwableType,
                                     Throwable throwable)


Copyright © 2009-2010. All Rights Reserved.