harmony-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nathan Beyer" <nbe...@gmail.com>
Subject Re: [testing][support] Where to place xxxTestCase support classes
Date Wed, 01 Nov 2006 00:15:14 GMT
If the support classes aren't used outside of one module, then I would
put them in that module. Like the beans example mentioned.

As for the package name, I would prefer to avoid the "java.*" and
"javax.*" package names whenever possible, so we can avoid classpath
issues.

-Nathan

On 10/31/06, Alexei Zakharov <alexei.zakharov@gmail.com> wrote:
> FYI in beans we have the following folders for this purpose:
> src/test/support/java/org/apache/harmony/beans/tests/support
> src/test/support/java/org/apache/harmony/beans/tests/support/mock
>
> Thanks,
>
> 2006/10/31, Ivanov, Alexey A <alexey.a.ivanov@intel.com>:
> > Hi all,
> >
> > Both AWT and Swing modules have testing support classes. Some of them
> > are extensions of junit.framework.TestCase which provide some utility
> > methods for tests. To mention several: AWTTestCase, ShapeTestCase,
> > BasicSwingTestCase, SwingTestCase. There are test cases which extend
> > these classes.
> > There are also several classes which provide special mock objects,
> > fields, for example ViewTestHelpers, DefStyledDoc_Helpers.
> >
> > The question about support classes was discussed [1] but no decision was
> > taken.
> > The bad thing about these classes is that:
> > * some are stored along with tests utilizing these classes
> > (modules/awt/src/test/api/java/common/java/awt/),
> > * some are stored in support folder
> > (support/src/test/java/javax/swing/).
> >
> >
> > I think we should decide where such classes are to be stored. And move
> > them appropriately.
> >
> > Comments, opinions?
> >
> > Regards,
> > Alexey.
> >
> >
> > [1]
> > http://thread.gmane.org/gmane.comp.java.harmony.devel/9487/focus=9561
> >
> > P.S. Mikhail, did you add the text from the message above into any doc?
>
>
> --
> Alexei Zakharov,
> Intel Enterprise Solutions Software Division
>

Mime
View raw message