|
|||||||||
| 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 | |
|---|---|
java.lang.ClassLoader |
createNewClassloader(java.lang.Class<?> testClass,
java.lang.String[] classesToLoadByMockClassloader,
java.lang.String[] packagesToIgnore)
Create a new class loader and load classes from this
classloader. |
void |
createTestDelegators(java.lang.Class<?> testClass,
java.util.List<TestChunk> chunks)
Create the test delegators needed for a whole class. |
int |
getChunkSize()
Get the number of chunks defined in this suite. |
java.util.List<TestChunk> |
getTestChunks()
Get all chunk entries. |
java.util.List<TestChunk> |
getTestChunksEntries(java.lang.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(java.lang.Class<?> testClass,
java.lang.reflect.Method potentialTestMethod)
Should reflect whether or not this method is eligible for testing. |
| Method Detail |
|---|
void createTestDelegators(java.lang.Class<?> testClass,
java.util.List<TestChunk> chunks)
throws java.lang.Exception
java.lang.Exceptionint getChunkSize()
java.util.List<TestChunk> getTestChunks()
java.util.List<TestChunk> getTestChunksEntries(java.lang.Class<?> testClass)
testClass - The class whose chunk entries to get.
boolean shouldExecuteTestForMethod(java.lang.Class<?> testClass,
java.lang.reflect.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.
java.lang.ClassLoader createNewClassloader(java.lang.Class<?> testClass,
java.lang.String[] classesToLoadByMockClassloader,
java.lang.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 | ||||||||