harmony-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vladimir Ivanov" <ivavladi...@gmail.com>
Subject Re: [classlib][testing]resource files: location and usage
Date Tue, 20 Jun 2006 05:49:08 GMT
On 6/20/06, Gregory Shimansky <gshimansky@gmail.com> wrote:

> On Monday 19 June 2006 20:33 Anton Luht wrote:
> > It is not a good idea to put creation of such resources in something
> > like setUp() method in JUnit test because who knows if a read-only
> > file created by VM under test is really read-only or not :)
>
> Extending this question would be how do you know that JUnit framework
> executed
> by VM under test does actually produce the correct results?
>
> I think there should be some minimal trust in the means which tests use,
> resources creation included into it. It would be a good starting point at
> least for now.



I agree, and even more - when we test some API we assume that the rest of
API works fine.

So if the method-not-under-test is used to create the resource it is OK to
do it in the setUp()
method.

 Thanks,
   Vladimir



> --
> Gregory Shimansky, Intel Middleware Products Division
>
> ---------------------------------------------------------------------
> Terms of use : http://incubator.apache.org/harmony/mailing.html
> To unsubscribe, e-mail: harmony-dev-unsubscribe@incubator.apache.org
> For additional commands, e-mail: harmony-dev-help@incubator.apache.org
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message