net.thucydides.junit.runners
Class DataDrivenAnnotations

Package class diagram package DataDrivenAnnotations
java.lang.Object
  extended by net.thucydides.junit.runners.DataDrivenAnnotations

public class DataDrivenAnnotations
extends Object


Method Summary
 int countDataEntries()
           
protected  String findTestDataSource()
           
protected  String findTestDataSourcePaths()
           
static DataDrivenAnnotations forClass(Class testClass)
           
static DataDrivenAnnotations forClass(org.junit.runners.model.TestClass testClass)
           
<T> List<T>
getDataAsInstancesOf(Class<T> clazz)
           
 DataTable getParametersTableFromTestDataAnnotation()
           
 DataTable getParametersTableFromTestDataSource()
           
 org.junit.runners.model.FrameworkMethod getTestDataMethod()
           
 boolean hasTestDataDefined()
           
 boolean hasTestDataSourceDefined()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

forClass

public static DataDrivenAnnotations forClass(Class testClass)

forClass

public static DataDrivenAnnotations forClass(org.junit.runners.model.TestClass testClass)

getParametersTableFromTestDataSource

public DataTable getParametersTableFromTestDataSource()
                                               throws Throwable
Throws:
Throwable

getParametersTableFromTestDataAnnotation

public DataTable getParametersTableFromTestDataAnnotation()
                                                   throws Throwable
Throws:
Throwable

getTestDataMethod

public org.junit.runners.model.FrameworkMethod getTestDataMethod()
                                                          throws Exception
Throws:
Exception

findTestDataSource

protected String findTestDataSource()

findTestDataSourcePaths

protected String findTestDataSourcePaths()

hasTestDataDefined

public boolean hasTestDataDefined()

hasTestDataSourceDefined

public boolean hasTestDataSourceDefined()

getDataAsInstancesOf

public <T> List<T> getDataAsInstancesOf(Class<T> clazz)
                             throws IOException
Throws:
IOException

countDataEntries

public int countDataEntries()
                     throws IOException
Throws:
IOException


Copyright © 2011-2013 Wakaleo Consulting. All Rights Reserved.