com.atlassian.jira.functest.framework.suite
Class SystemPropertyBasedBatcherTransform
java.lang.Object
com.atlassian.jira.functest.framework.suite.BatcherTransform
com.atlassian.jira.functest.framework.suite.SystemPropertyBasedBatcherTransform
- All Implemented Interfaces:
- SuiteTransform, com.google.common.base.Function<Iterable<org.junit.runner.Description>,Iterable<org.junit.runner.Description>>
public class SystemPropertyBasedBatcherTransform
- extends BatcherTransform
Batcher transform that reads current batch and number of batches from a system property.
- Since:
- v4.4
- See Also:
BatcherTransform
|
Method Summary |
protected int |
batchNumber()
Batch number to execute. |
protected boolean |
isSplittable(org.junit.runner.Description classTestSuite)
Uses provided predicated to check if given suite is splittable. |
protected int |
numberOfBatches()
Total number of batches. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.google.common.base.Function |
equals |
SystemPropertyBasedBatcherTransform
public SystemPropertyBasedBatcherTransform()
SystemPropertyBasedBatcherTransform
public SystemPropertyBasedBatcherTransform(com.google.common.base.Predicate<org.junit.runner.Description> splittable)
SystemPropertyBasedBatcherTransform
public SystemPropertyBasedBatcherTransform(Iterable<SuiteTransform> precedingTransforms,
com.google.common.base.Predicate<org.junit.runner.Description> splittable)
SystemPropertyBasedBatcherTransform
public SystemPropertyBasedBatcherTransform(Iterable<SuiteTransform> precedingTransforms)
batchNumber
protected int batchNumber()
- Description copied from class:
BatcherTransform
- Batch number to execute.
- Specified by:
batchNumber in class BatcherTransform
- Returns:
- batch number
numberOfBatches
protected int numberOfBatches()
- Description copied from class:
BatcherTransform
Total number of batches.
0 or less means no batching
- Specified by:
numberOfBatches in class BatcherTransform
- Returns:
- total number of batches
isSplittable
protected boolean isSplittable(org.junit.runner.Description classTestSuite)
- Uses provided predicated to check if given suite is splittable.
- Specified by:
isSplittable in class BatcherTransform
- Parameters:
classTestSuite - suite to check
- Returns:
true by default
Copyright © 2002-2012 Atlassian. All Rights Reserved.