in the project we are currently working in we are bound to JUnit3 and
as we have tests that are started by a client, but are executed on
server-side per test method, we were looking for a possibility to
create PowerMockSuites with just a single Test (method), not whole
TestCase-classes.
It looks like this is not possible with PowerMock's suite, as
org.powermock.modules.junit3.PowerMockSuite.addTest(Test)
calls
org.powermock.modules.junit3.internal.impl.JUnit3TestSuiteChunkerImpl.addTest
(Test)
which executes
addTestClassToSuite(test.getClass());
and always adds whole TestCases to the suite. The line before this,
which is commented out, looks like this:
// testSuiteDelegator.addTest(prepareTestCase((TestCase) test));
This looks as if it was possible once to add single tests and this was
removed some time before PowerMock was submitted to Subversion (this
line is already commented out in repository revision 1).
Original issue reported on code.google.com by johan.ha...@gmail.com on 16 Apr 2009 at 12:05
Original issue reported on code.google.com by
johan.ha...@gmail.com
on 16 Apr 2009 at 12:05