|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface TestSuiteChunker
An interface that should be implemented by classes that performs test suite chunking. Test suite chunking may be performed because certain classes may need to be byte-code manipulated in tests without impacting on other tests.
| Method Summary | |
|---|---|
ClassLoader |
createNewClassloader(Class<?> testClass,
String[] classesToLoadByMockClassloader,
String[] packagesToIgnore)
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. |
| Method Detail |
|---|
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)
classes from this
classloader.
testClass - TODOclassesToLoadByMockClassloader - An array of the fully qualified name of the classes to modify.packagesToIgnore - Packages to ignore.int getTestCount()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||