org.unitils.core
Class TestContext

java.lang.Object
  extended by org.unitils.core.TestContext

public class TestContext
extends Object

Object that holds information about the current test execution. During a test run it always knows which test is running.

Author:
Tim Ducheyne, Filip Neven

Constructor Summary
TestContext()
           
 
Method Summary
 Class<?> getTestClass()
           
 Method getTestMethod()
           
 Object getTestObject()
           
 void setTestClass(Class<?> testClass)
           
 void setTestMethod(Method testMethod)
           
 void setTestObject(Object testObject)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TestContext

public TestContext()
Method Detail

getTestClass

public Class<?> getTestClass()

setTestClass

public void setTestClass(Class<?> testClass)

getTestObject

public Object getTestObject()

setTestObject

public void setTestObject(Object testObject)

getTestMethod

public Method getTestMethod()

setTestMethod

public void setTestMethod(Method testMethod)


Copyright © 2011. All Rights Reserved.