Hi George,

On 5/19/06, George Harley wrote:

Stepan Mishura wrote:
[SNIP]
Hi Stepan,

Is your preference to separate out all "remote server dependent" tests
(that could be made work with a locally installed server) from the
normal test flow ?


Yes.



For instance, have them run in a separate junit batch
that was dependent on an Ant property value (e.g. run.net.tests) ?
Another possibility is to invoke the tests under discussion via a JUnit
TestSuite - again, perhaps depending on an Ant property.

Basically I want to be sure here that we are talking about a logical
separation of the tests using Ant and JUnit techniques and not a
physical separation of files in the file system.


We can separate them in any acceptable way. All I want that we clearly
define which tests require 'remote server' to be run and keep these test
separately from 'normal test flow'. For this particular case I believe that
there is no need in 'remote server' and we can use local server stub.

Thanks,
Stepan.



Best regards,
George


>
>
>> Best regards,
>> George
>>
>>
>>
>> Stepan Mishura wrote:
>> > Richard, George
>> >
>> > I'm not fan of tests that depend on network connection. Is it
>> > necessary for
>> > this test:
>> >
>> > + public void test_getOutputStream_afterConnection() throws
>> Exception {
>> > +     URLConnection uc = new
>> > URL("http://www.apache.org";).openConnection<http://www.apache.org
>> ").openconnection/>
>> >
>> > ();
>> > +     uc.setDoOutput(true);
>> > +     uc.connect();
>> > +     assertNotNull(uc.getOutputStream());
>> > + }
>> >
>> > Thanks,
>> > Stepan Mishura



------------------------------------------------------
Terms of use : http://incubator.apache.org/harmony/mailing.html
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to