|
Re: Re: design issue: msg#00186java.junit.user
I found the third solution. Since my "single call code" uses no members of my test case, I placed former to static area of the latter as shown below. Had the code required members, it would have been possible to combine all test methods or even just overwrite run() method. --------------------------------- public class AppTest extends TestCase { /* This is sure to be called once per process on class loading. */ static { webclient.ClientMain.main(null); } ========================================== > > You can wrap your whole suite in a TestSetup > subclass that calls > ClientMain.main(null); or you can figure out how to > write small-scale > tests. I write smaller scale tests whenever > possible, and if I think > about it hard enough, it's always possible. > > Kent > > __________________________________________________ Do You Yahoo!? Yahoo! - Official partner of 2002 FIFA World Cup http://fifaworldcup.yahoo.com
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: Re: design issue, Boris Garbuzov |
|---|---|
| Next by Date: | Multiple Test Cases, Gopinath Ramakrishnan |
| Previous by Thread: | Re: Re: design issue, Boris Garbuzov |
| Next by Thread: | Re: Re: design issue, J. B. Rainsberger |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |