public class TestSuiteBuilder extends Object
Constructor and Description |
---|
TestSuiteBuilder()
Create a no-op splitter, that is, the passed tests will not be batched.
|
TestSuiteBuilder(int batch,
int maxBatch)
Create a splitter that will return the given batch from the specified number of total batches.
|
Modifier and Type | Method and Description |
---|---|
TestSuiteBuilder |
addTests(Collection<Class<?>> tests)
Add the passed tests to the splitter for division.
|
TestSuiteBuilder |
batch(int batch) |
junit.framework.TestSuite |
build()
Create the composite test that represents the batch.
|
TestSuiteBuilder |
log(boolean log) |
TestSuiteBuilder |
maxBatch(int maxBatch) |
String |
toString() |
public TestSuiteBuilder(int batch, int maxBatch)
batch
- the batch the splitter should return. A value of -1 can be specified when maxBatch is also passed
-1. This indicates that no batching should be performed.maxBatch
- the number of batches that splitter should divide the tests into. A value of -1 can be specified
when batch is also passed -1. This indicates that no batching should be performed.public TestSuiteBuilder()
public TestSuiteBuilder addTests(Collection<Class<?>> tests)
tests
- the set of tests to divide.public TestSuiteBuilder log(boolean log)
public TestSuiteBuilder batch(int batch)
public TestSuiteBuilder maxBatch(int maxBatch)
public junit.framework.TestSuite build()
Copyright © 2002-2022 Atlassian. All Rights Reserved.