A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Elasticsearch in Action
this week in the
Ordering of the test cases
Joined: May 10, 2002
Feb 19, 2004 15:50:00
Is there anyway where we can gurantee the ordering of the testCases to
I mean to say that test1() executes before test2()?
author and iconoclast
Joined: Jul 08, 2003
Feb 19, 2004 16:04:00
Don't do that.
If you need some setup code to run before a series of tests, you can put it in the setUp() method of a TestSuite object.
But don't write order-dependent tests. It just makes the tests hard to interpret and hard to maintain.
[Jess in Action]
subject: Ordering of the test cases
Adding components dynamically
Classpath Build Order Changes (entries in .classpath file keep becoming reset)
entrySet method... Why Is This The Result?
Order of xml elements in the DD
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015