org.powermock.modules.junit3.internal
Interface JUnit3TestSuiteChunker

All Superinterfaces:
org.powermock.tests.utils.TestSuiteChunker
All Known Implementing Classes:
JUnit3TestSuiteChunkerImpl

public interface JUnit3TestSuiteChunker
extends org.powermock.tests.utils.TestSuiteChunker


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)
           
 int countTestCases()
           
 void run(junit.framework.TestResult result)
           
 void runTest(junit.framework.Test test, junit.framework.TestResult result)
           
 junit.framework.Test testAt(int index)
           
 Enumeration<?> tests()
           
 
Methods inherited from interface org.powermock.tests.utils.TestSuiteChunker
createNewClassloader, createTestDelegators, getChunkSize, getTestChunks, getTestChunksEntries, getTestCount, shouldExecuteTestForMethod
 

Method Detail

addTestClassToSuite

void addTestClassToSuite(Class<?> clazz)
                         throws Exception
Add a class to the test suite. Methods in this class will be checked according to TestSuiteChunker.shouldExecuteTestForMethod(Class, Method) to see if it should be executed.

Parameters:
clazz - The class that should contain test cases.
Throws:
Exception - If something unexpected goes wrong.

run

void run(junit.framework.TestResult result)

addTest

void addTest(junit.framework.Test test)
             throws Exception
Throws:
Exception

runTest

void runTest(junit.framework.Test test,
             junit.framework.TestResult result)

addTestSuite

void addTestSuite(Class<? extends junit.framework.TestCase> testClass)
                  throws Exception
Throws:
Exception

testAt

junit.framework.Test testAt(int index)

countTestCases

int countTestCases()

tests

Enumeration<?> tests()


Copyright © 2007-2012. All Rights Reserved.