[Anthill] Reverse JUnit Execution Order

brunomau (sent by Nabble.com) lists at nabble.com
Wed Dec 7 18:27:57 CST 2005


Thanks Varban. I'd already figured that out in a quite simple way, just like you said. By creating a method with all the tests in the proper order. The method is this one public static Test suite(){
    TestSuite testSuite = new TestSuite();
    testSuite.addTest(new YourClassTest("testMethodName1"));
    testSuite.addTest(new YourClassTest("testMethodName2"));
    testSuite.addTest(new YourClassTest("testMethodName3"));
}

this method is executed as a JUnit Test Case and not as a Java aplication. The problem was that the anthill server is set on a linux machine, consequently, in a linux jvm which was executing them in the "wrong" order. I hope everybody understands... I'm brazilian and not quite familiar with technical english... ;-)
--
Sent from the Anthill - General forum at Nabble.com:
http://www.nabble.com/Reverse-JUnit-Execution-Order-t689186.html#a1843677
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.urbancode.com/pipermail/anthill/attachments/20051207/ebc8e741/attachment-0002.htm


More information about the Anthill mailing list