org.powermock.modules.junit3
Class PowerMockSuite

java.lang.Object
  extended by junit.framework.TestSuite
      extended by org.powermock.modules.junit3.PowerMockSuite
All Implemented Interfaces:
junit.framework.Test

public class PowerMockSuite
extends junit.framework.TestSuite

A custom JUnit 3 Suite that must be used to run PowerMock tests under JUnit3.


Constructor Summary
PowerMockSuite(Class<? extends junit.framework.TestCase>... testCases)
           
PowerMockSuite(String name, Class<? extends junit.framework.TestCase>... testCases)
           
 
Method Summary
 void addTest(junit.framework.Test test)
          
 void addTestSuite(Class 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)
          
 int testCount()
          
 Enumeration tests()
          
 
Methods inherited from class junit.framework.TestSuite
createTest, getName, getTestConstructor, setName, toString, warning
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PowerMockSuite

public PowerMockSuite(String name,
                      Class<? extends junit.framework.TestCase>... testCases)
               throws Exception
Throws:
Exception

PowerMockSuite

public PowerMockSuite(Class<? extends junit.framework.TestCase>... testCases)
               throws Exception
Throws:
Exception
Method Detail

run

public void run(junit.framework.TestResult result)

Specified by:
run in interface junit.framework.Test
Overrides:
run in class junit.framework.TestSuite

addTest

public void addTest(junit.framework.Test test)

Overrides:
addTest in class junit.framework.TestSuite

runTest

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

Overrides:
runTest in class junit.framework.TestSuite

addTestSuite

public void addTestSuite(Class testClass)

Overrides:
addTestSuite in class junit.framework.TestSuite

testAt

public junit.framework.Test testAt(int index)

Overrides:
testAt in class junit.framework.TestSuite

testCount

public int testCount()

Overrides:
testCount in class junit.framework.TestSuite

tests

public Enumeration tests()

Overrides:
tests in class junit.framework.TestSuite

countTestCases

public int countTestCases()

Specified by:
countTestCases in interface junit.framework.Test
Overrides:
countTestCases in class junit.framework.TestSuite


Copyright © 2007-2012. All Rights Reserved.