org.easetech.easytest.util
Class TestInfo

java.lang.Object
  extended by org.easetech.easytest.util.TestInfo

public class TestInfo
extends Object

TestInfo class encapsulates the information about a given test method that could be used by various parties to get the runtime information about the given test method. This class is currently being used by the RunAftersWithOutputData to find and call the right Loader to write the data for a given method.


Constructor Summary
TestInfo(org.junit.runners.model.TestClass testClass)
          Construct a new TestInfo
 
Method Summary
 Loader getDataLoader()
          Get associated Data Loader
 String[] getFilePaths()
          Get filePaths
 String getMethodName()
          Get method name
 org.junit.runners.model.TestClass getTestClass()
          Get Test Class instance
 void setDataLoader(Loader dataLoader)
          Set associated Data Loader
 void setFilePaths(String[] filePaths)
          Set filePaths
 void setMethodName(String methodName)
          Set method name
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TestInfo

public TestInfo(org.junit.runners.model.TestClass testClass)
Construct a new TestInfo

Parameters:
testClass - an instance of TestClass
Method Detail

getTestClass

public org.junit.runners.model.TestClass getTestClass()
Get Test Class instance

Returns:
Test Class instance

getDataLoader

public Loader getDataLoader()
Get associated Data Loader

Returns:
associated Data Loader

setDataLoader

public void setDataLoader(Loader dataLoader)
Set associated Data Loader

Parameters:
dataLoader - associated Data Loader

getFilePaths

public String[] getFilePaths()
Get filePaths

Returns:
filePaths

setFilePaths

public void setFilePaths(String[] filePaths)
Set filePaths

Parameters:
filePaths - filePaths

getMethodName

public String getMethodName()
Get method name

Returns:
method name

setMethodName

public void setMethodName(String methodName)
Set method name

Parameters:
methodName - method name

toString

public String toString()
Overrides:
toString in class Object
Returns:
the overridden toString


Copyright © 2013. All Rights Reserved.