public interface TestSuiteChunker
| Modifier and Type | Method and Description |
|---|---|
ClassLoader |
createNewClassloader(Class<?> testClass,
String[] classesToLoadByMockClassloader,
String[] packagesToIgnore,
MockTransformer... extraMockTransformers)
Create a new class loader and load
classes from this
classloader. |
void |
createTestDelegators(Class<?> testClass,
List<TestChunk> chunks)
Create the test delegators needed for a whole class.
|
int |
getChunkSize()
Get the number of chunks defined in this suite.
|
List<TestChunk> |
getTestChunks()
Get all chunk entries.
|
List<TestChunk> |
getTestChunksEntries(Class<?> testClass)
Get all chunk entries for a specific class.
|
int |
getTestCount()
Get the number of total tests defined in the suite (the sum of all tests
defined in all chunks for this suite).
|
boolean |
shouldExecuteTestForMethod(Class<?> testClass,
Method potentialTestMethod)
Should reflect whether or not this method is eligible for testing.
|
void createTestDelegators(Class<?> testClass, List<TestChunk> chunks) throws Exception
Exceptionint getChunkSize()
List<TestChunk> getTestChunks()
List<TestChunk> getTestChunksEntries(Class<?> testClass)
testClass - The class whose chunk entries to get.boolean shouldExecuteTestForMethod(Class<?> testClass, Method potentialTestMethod)
testClass - The class that defines the method.potentialTestMethod - The method to inspect whether it should be executed in the
test suite or not.true if the method is a test method and should be
executed, false otherwise.ClassLoader createNewClassloader(Class<?> testClass, String[] classesToLoadByMockClassloader, String[] packagesToIgnore, MockTransformer... extraMockTransformers)
classes from this
classloader.testClass - TODOclassesToLoadByMockClassloader - An array of the fully qualified name of the classes to modify.packagesToIgnore - Packages to ignore.int getTestCount()
Copyright © 2007–2015. All rights reserved.