org.powermock.modules.junit4.common.internal.impl
Class JUnit4TestSuiteChunkerImpl

java.lang.Object
  extended by org.powermock.tests.utils.impl.AbstractTestSuiteChunkerImpl<PowerMockJUnitRunnerDelegate>
      extended by org.powermock.modules.junit4.common.internal.impl.JUnit4TestSuiteChunkerImpl
All Implemented Interfaces:
org.junit.runner.manipulation.Filterable, org.junit.runner.manipulation.Sortable, JUnit4TestSuiteChunker, org.powermock.tests.utils.TestSuiteChunker

public class JUnit4TestSuiteChunkerImpl
extends org.powermock.tests.utils.impl.AbstractTestSuiteChunkerImpl<PowerMockJUnitRunnerDelegate>
implements JUnit4TestSuiteChunker, org.junit.runner.manipulation.Filterable, org.junit.runner.manipulation.Sortable


Field Summary
 
Fields inherited from class org.powermock.tests.utils.impl.AbstractTestSuiteChunkerImpl
delegates, delegatesCreatedForTheseClasses, NOT_INITIALIZED, prepareForTestExtractor, suppressionExtractor, testAtDelegateMapper, testCount
 
Constructor Summary
JUnit4TestSuiteChunkerImpl(Class<?> testClass, Class<? extends PowerMockJUnitRunnerDelegate> runnerDelegateImplementationType)
           
 
Method Summary
protected  PowerMockJUnitRunnerDelegate createDelegatorFromClassloader(ClassLoader classLoader, Class<?> testClass, List<Method> methodsToTest)
           
 void filter(org.junit.runner.manipulation.Filter filter)
           
 org.junit.runner.Description getDescription()
           
 int getTestCount()
           
 void run(org.junit.runner.notification.RunNotifier notifier)
           
 boolean shouldExecuteTestForMethod(Class<?> testClass, Method potentialTestMethod)
           
 void sort(org.junit.runner.manipulation.Sorter sorter)
           
 
Methods inherited from class org.powermock.tests.utils.impl.AbstractTestSuiteChunkerImpl
chunkClass, 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

JUnit4TestSuiteChunkerImpl

public JUnit4TestSuiteChunkerImpl(Class<?> testClass,
                                  Class<? extends PowerMockJUnitRunnerDelegate> runnerDelegateImplementationType)
                           throws Exception
Throws:
Exception
Method Detail

run

public void run(org.junit.runner.notification.RunNotifier notifier)
Specified by:
run in interface JUnit4TestSuiteChunker

shouldExecuteTestForMethod

public boolean shouldExecuteTestForMethod(Class<?> testClass,
                                          Method potentialTestMethod)
Specified by:
shouldExecuteTestForMethod in interface org.powermock.tests.utils.TestSuiteChunker

createDelegatorFromClassloader

protected PowerMockJUnitRunnerDelegate createDelegatorFromClassloader(ClassLoader classLoader,
                                                                      Class<?> testClass,
                                                                      List<Method> methodsToTest)
                                                               throws Exception
Specified by:
createDelegatorFromClassloader in class org.powermock.tests.utils.impl.AbstractTestSuiteChunkerImpl<PowerMockJUnitRunnerDelegate>
Throws:
Exception

getTestCount

public int getTestCount()
Specified by:
getTestCount in interface org.powermock.tests.utils.TestSuiteChunker

getDescription

public org.junit.runner.Description getDescription()
Specified by:
getDescription in interface JUnit4TestSuiteChunker

filter

public void filter(org.junit.runner.manipulation.Filter filter)
            throws org.junit.runner.manipulation.NoTestsRemainException
Specified by:
filter in interface org.junit.runner.manipulation.Filterable
Throws:
org.junit.runner.manipulation.NoTestsRemainException

sort

public void sort(org.junit.runner.manipulation.Sorter sorter)
Specified by:
sort in interface org.junit.runner.manipulation.Sortable


Copyright © 2007-2011. All Rights Reserved.