|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.powermock.tests.utils.impl.AbstractTestSuiteChunkerImpl<PowerMockJUnit3RunnerDelegate>
org.powermock.modules.junit3.internal.impl.JUnit3TestSuiteChunkerImpl
public class JUnit3TestSuiteChunkerImpl
Field Summary |
---|
Fields inherited from class org.powermock.tests.utils.impl.AbstractTestSuiteChunkerImpl |
---|
delegates, delegatesCreatedForTheseClasses, NOT_INITIALIZED, prepareForTestExtractor, suppressionExtractor, testAtDelegateMapper, testCount |
Constructor Summary | |
---|---|
JUnit3TestSuiteChunkerImpl(Class<? extends junit.framework.TestCase>... testClasses)
|
|
JUnit3TestSuiteChunkerImpl(String name,
Class<? extends junit.framework.TestCase>... testClasses)
|
Method Summary | |
---|---|
void |
addTest(junit.framework.Test test)
|
void |
addTestClassToSuite(Class<?> clazz)
Add a class to the test suite. |
void |
addTestSuite(Class<? extends junit.framework.TestCase> testClass)
|
protected void |
chunkClass(Class<?> testClass)
|
int |
countTestCases()
|
protected PowerMockJUnit3RunnerDelegate |
createDelegatorFromClassloader(ClassLoader classLoader,
Class<?> testClass,
List<Method> methodsToTest)
|
int |
getTestCount()
|
void |
run(junit.framework.TestResult result)
|
void |
runTest(junit.framework.Test test,
junit.framework.TestResult result)
|
boolean |
shouldExecuteTestForMethod(Class<?> testClass,
Method potentialTestMethod)
|
junit.framework.Test |
testAt(int index)
|
Enumeration<?> |
tests()
|
Methods inherited from class org.powermock.tests.utils.impl.AbstractTestSuiteChunkerImpl |
---|
createNewClassloader, createTestDelegators, getChunkSize, getDelegatorIndex, getInternalTestIndex, getPowerMockTestListenersLoadedByASpecificClassLoader, getTestChunks, getTestChunksEntries, getTestClasses, hasMockPolicyProvidedClasses |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.powermock.tests.utils.TestSuiteChunker |
---|
createNewClassloader, createTestDelegators, getChunkSize, getTestChunks, getTestChunksEntries |
Constructor Detail |
---|
public JUnit3TestSuiteChunkerImpl(Class<? extends junit.framework.TestCase>... testClasses) throws Exception
Exception
public JUnit3TestSuiteChunkerImpl(String name, Class<? extends junit.framework.TestCase>... testClasses) throws Exception
Exception
Method Detail |
---|
protected PowerMockJUnit3RunnerDelegate createDelegatorFromClassloader(ClassLoader classLoader, Class<?> testClass, List<Method> methodsToTest) throws Exception
createDelegatorFromClassloader
in class org.powermock.tests.utils.impl.AbstractTestSuiteChunkerImpl<PowerMockJUnit3RunnerDelegate>
Exception
protected void chunkClass(Class<?> testClass) throws Exception
chunkClass
in class org.powermock.tests.utils.impl.AbstractTestSuiteChunkerImpl<PowerMockJUnit3RunnerDelegate>
Exception
public int getTestCount()
getTestCount
in interface org.powermock.tests.utils.TestSuiteChunker
public boolean shouldExecuteTestForMethod(Class<?> testClass, Method potentialTestMethod)
shouldExecuteTestForMethod
in interface org.powermock.tests.utils.TestSuiteChunker
public void addTest(junit.framework.Test test) throws Exception
addTest
in interface JUnit3TestSuiteChunker
Exception
public void addTestSuite(Class<? extends junit.framework.TestCase> testClass) throws Exception
addTestSuite
in interface JUnit3TestSuiteChunker
Exception
public int countTestCases()
countTestCases
in interface JUnit3TestSuiteChunker
public void run(junit.framework.TestResult result)
run
in interface JUnit3TestSuiteChunker
public void runTest(junit.framework.Test test, junit.framework.TestResult result)
runTest
in interface JUnit3TestSuiteChunker
public junit.framework.Test testAt(int index)
testAt
in interface JUnit3TestSuiteChunker
public void addTestClassToSuite(Class<?> clazz) throws Exception
TestSuiteChunker.shouldExecuteTestForMethod(Class, Method)
to see if
it should be executed.
addTestClassToSuite
in interface JUnit3TestSuiteChunker
clazz
- The class that should contain test cases.
Exception
- If something unexpected goes wrong.public Enumeration<?> tests()
tests
in interface JUnit3TestSuiteChunker
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |