|
GridGain 4.3.1e
Enterprise "Big Data" Edition |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | |||||||||
@Documented
@Retention(value=RUNTIME)
@Target(value={TYPE,METHOD})
public @interface GridifyTestAnnotation for grid-enabling JUnit3 and Junit4 tests.
GridifyTest annotation, simply attach this
annotation to "static suite()" method for a test suite you would like to
grid-enable.
public class GridifyJunit3ExampleTestSuite {
// Standard JUnit3 suite method. Note we attach @GridifyTest
// annotation to it, so it will be grid-enabled.
@GridifyTest
public static TestSuite suite() {
TestSuite suite = new TestSuite("Example Test Suite");
// Nested test suite to run tests A and B sequentially.
TestSuite nested = new TestSuite("Example Nested Sequential Suite");
nested.addTestSuite(TestA.class);
nested.addTestSuite(TestB.class);
// Add tests A and B.
suite.addTest(nested);
// Add other tests.
suite.addTestSuite(TestC.class);
suite.addTestSuite(TestD.class);
return suite;
}
}
GridifyTest annotation, you need to attach
this annotation to the same class that has Suite annotation (only Suite
runners can be grid-enabled in JUnit4).
@RunWith(Suite.class)
@SuiteClasses({
GridJunit4ExampleNestedSuite.class, // Nested suite that will execute tests A and B added to it sequentially.
TestC.class, // Test C will run in parallel with other tests.
TestD.class // TestD will run in parallel with other tests.
})
@GridifyTest // Run this suite on the grid.
public class GridifyJunit4ExampleSuite {
// No-op.
}
@RunWith(Suite.class)
@SuiteClasses({
TestA.class,
TestB.class
})
public class GridJunit4ExampleNestedSuite {
// No-op.
}
-javaagent:[path to jboss-aop-jdk50-4.x.x.jar]-Djboss.aop.class.path=[path to gridgain.jar]-Djboss.aop.exclude=org,com -Djboss.aop.include=org.gridgain.examples${GRIDGAIN_HOME}/libs folder):
javassist-3.x.x.jarjboss-aop-jdk50-4.x.x.jarjboss-aspect-library-jdk50-4.x.x.jarjboss-common-4.x.x.jartrove-1.0.2.jar
-javaagent:${GRIDGAIN_HOME}/libs/aspectjweaver-1.6.8.jar
${GRIDGAIN_HOME}/config/aop/aspectj folder.

| Optional Element Summary | |
|---|---|
String |
configPath
Optional configuration path. |
boolean |
disabled
Indicates whether grid is disabled or not. |
Class<? extends GridTestRouter> |
routerClass
Optional router class. |
long |
timeout
Distributed test suite timeout in milliseconds, default is 0 which means that
tests will never expire. |
public abstract String configPath
"config/junit/junit-spring.xml".
public abstract Class<? extends GridTestRouter> routerClass
GridTestRouterAdapter class.
public abstract boolean disabled
public abstract long timeout
0 which means that
tests will never expire.
|
GridGain 4.3.1e
Enterprise "Big Data" Edition |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | |||||||||
|
GridGain - In-Memory Big Data
|
|
|