org.gridgain.grid.test.junit4
Class GridJunit4LocalSuite
java.lang.Object
org.junit.runner.Runner
org.junit.runners.ParentRunner<org.junit.runner.Runner>
org.junit.runners.Suite
org.gridgain.grid.test.junit4.GridJunit4LocalSuite
- All Implemented Interfaces:
- org.junit.runner.Describable, org.junit.runner.manipulation.Filterable, org.junit.runner.manipulation.Sortable
public class GridJunit4LocalSuite
- extends org.junit.runners.Suite
Parallel local runner for the grid. Use this runner when your test
suite should only be run locally but in parallel with other local
or distributed tests. Having local tests execute in parallel with
distributed tests will still give a significant performance boost
in many cases.
To use local test suite within distributed test suite, simply add
it to distributed test suite as follows:
@RunWith(GridJunit4Suite.class)
@SuiteClasses({
TestA.class,
TestB.class,
GridJunit4ExampleNestedLocalSuite.class, // Local suite that will execute its test C locally.
})
public class GridJunit4ExampleSuite {
// No-op.
}
@RunWith(GridJunit4LocalSuite.class) // Specify local suite to run tests.
@SuiteClasses({
TestC.class,
TestD.class
})
public class GridJunit4ExampleNestedLocalSuite {
// No-op.
}
-

| Nested classes/interfaces inherited from class org.junit.runners.Suite |
org.junit.runners.Suite.SuiteClasses |
|
Constructor Summary |
GridJunit4LocalSuite(Class<?> cls,
org.junit.runners.model.RunnerBuilder builder)
Constructor required by JUnit4. |
| Methods inherited from class org.junit.runners.Suite |
describeChild, emptySuite, getChildren, runChild |
| Methods inherited from class org.junit.runners.ParentRunner |
childrenInvoker, classBlock, classRules, collectInitializationErrors, filter, getDescription, getName, getRunnerAnnotations, getTestClass, run, runLeaf, setScheduler, sort, validatePublicVoidNoArgMethods, withAfterClasses, withBeforeClasses |
| 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 |
GridJunit4LocalSuite
public GridJunit4LocalSuite(Class<?> cls,
org.junit.runners.model.RunnerBuilder builder)
throws org.junit.runners.model.InitializationError
- Constructor required by JUnit4.
- Throws:
org.junit.runners.model.InitializationError - If error occurred during initialization.- Parameters:
cls - Suite class.builder - Runner builder.