|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.junit.runner.Runner
org.junit.runners.ParentRunner<org.junit.runner.Runner>
org.junit.runners.Suite
org.easetech.easytest.runner.BaseSuite
public class BaseSuite
Base Suite class for EasyTest based Runners. This class abstracts a lot of boiler plate logic so as to give
EasyTest based Runners convenient and single place for reference.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.junit.runners.Suite |
|---|
org.junit.runners.Suite.SuiteClasses |
| Field Summary | |
|---|---|
protected List<org.junit.runners.model.FrameworkMethod> |
methodsWithData
List of FrameworkMethod that does have any external test data associated with them. |
protected List<org.junit.runners.model.FrameworkMethod> |
methodsWithNoData
List of FrameworkMethod that does not have any external test data associated with them. |
protected List<org.junit.runner.Runner> |
runners
A List of DataDrivenTestRunner.EasyTestRunners. |
protected static Map<String,List<Map<String,Object>>> |
writableData
An instance of Map that contains the data to be written to the File |
| Constructor Summary | |
|---|---|
protected |
BaseSuite(Class<?> klass)
Construct a new BaseSuite. |
| Method Summary | |
|---|---|
protected List<org.junit.runner.Runner> |
getChildren()
Get the children Runners |
void |
registerConverter(Converters converter)
Method responsible for registering the converters with the EasyTest framework |
protected org.junit.runners.model.Statement |
withAfterClasses(org.junit.runners.model.Statement statement)
Returns a Statement: We override this method as it was being called twice for the same class. |
protected org.junit.runners.model.Statement |
withBeforeClasses(org.junit.runners.model.Statement statement)
Returns a Statement: We override this method as it was being called twice for the same class. |
| Methods inherited from class org.junit.runners.Suite |
|---|
describeChild, emptySuite, runChild |
| Methods inherited from class org.junit.runners.ParentRunner |
|---|
childrenInvoker, classBlock, classRules, collectInitializationErrors, filter, getDescription, getName, getRunnerAnnotations, getTestClass, run, runLeaf, setScheduler, sort, validatePublicVoidNoArgMethods |
| Methods inherited from class org.junit.runner.Runner |
|---|
testCount |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static Map<String,List<Map<String,Object>>> writableData
Map that contains the data to be written to the File
protected final List<org.junit.runner.Runner> runners
DataDrivenTestRunner.EasyTestRunners.
protected List<org.junit.runners.model.FrameworkMethod> methodsWithNoData
FrameworkMethod that does not have any external test data associated with them.
protected List<org.junit.runners.model.FrameworkMethod> methodsWithData
FrameworkMethod that does have any external test data associated with them.
| Constructor Detail |
|---|
protected BaseSuite(Class<?> klass)
throws org.junit.runners.model.InitializationError
TestConfigProvider,
load any input test data provided using the DataLoader annotation, both at the class level as well as method level
register any converters provide using Converters, both at the class level as well as method level.
klass - the class under test
org.junit.runners.model.InitializationError - if any error occurs| Method Detail |
|---|
protected List<org.junit.runner.Runner> getChildren()
getChildren in class org.junit.runners.SuiteDataDrivenTestRunnerpublic void registerConverter(Converters converter)
converter - the annotation Convertersprotected org.junit.runners.model.Statement withBeforeClasses(org.junit.runners.model.Statement statement)
Statement: We override this method as it was being called twice for the same class. Looks like
a bug in JUnit.
withBeforeClasses in class org.junit.runners.ParentRunner<org.junit.runner.Runner>protected org.junit.runners.model.Statement withAfterClasses(org.junit.runners.model.Statement statement)
Statement: We override this method as it was being called twice for the same class. Looks like
a bug in JUnit.
withAfterClasses in class org.junit.runners.ParentRunner<org.junit.runner.Runner>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||