Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#17 OrderedTestSuite doesn't work

Latest_release
open
nobody
5
2006-02-06
2006-02-06
Klaus
No

My configuration: JUnit 3.8.1, Junit-Addons 1.4

What do I have to do to get OrderedTestSuite to what
it should do?
The tests in OrderedTestSuiteTest don't verify that it
works correct, but only test that the internal list of
tests is filled correctly.

When I start a suite (using OrderedTestSuite) using
JBuilder X, the suite doesn't execute any test! My
code for the suite looks like:

public class OrderedSuite2
extends junit.framework.TestSuite {
public static junit.framework.Test suite() {
OrderedTestSuite suite = new OrderedTestSuite
(OrderedTestSuiteTest1.class);
return suite;
}
}

My idea: As OrderedTestSuite extends a copy of
TestSuite and not the original the appropriate logic
is not processed. Even when I extend my OrderedSuite2
from OrderedTestSuite it doesn't work!

Discussion