org.gridgain.grid.test.junit4
Class GridJunit4LocalSuite
java.lang.Object
org.junit.runner.Runner
org.junit.internal.runners.CompositeRunner
org.junit.runners.Suite
org.gridgain.grid.test.junit4.GridJunit4LocalSuite
- All Implemented Interfaces:
- 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.
}
See Also:
Documentation
Email Support
Online Forums
Issue Tracking
Author: 2005-2008 Copyright © GridGain Systems. All Rights Reserved. ver. 2.0.3
-

| Nested classes/interfaces inherited from class org.junit.runners.Suite |
org.junit.runners.Suite.SuiteClasses |
| Methods inherited from class org.junit.runners.Suite |
run, validate |
| Methods inherited from class org.junit.internal.runners.CompositeRunner |
add, addAll, filter, getDescription, getName, getRunners, runChildren, sort |
| 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)
throws org.junit.internal.runners.InitializationError
- Constructor required by JUnit4.
- Throws:
org.junit.internal.runners.InitializationError - If error occurred during initialization.- Parameters:
cls - Suite class.