logo       

Re: Re: design issue: msg#00186

java.junit.user

Subject: Re: Re: design issue

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>
Google Custom Search

News | FAQ | advertise