harmony-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ivanov, Alexey A" <alexey.a.iva...@intel.com>
Subject RE: [classlib][swing] test code changes
Date Mon, 27 Nov 2006 06:58:57 GMT
>-----Original Message-----
>From: Nathan Beyer [mailto:nbeyer@gmail.com]
>Sent: Monday, November 27, 2006 4:04 AM
>To: dev@harmony.apache.org; geir@pobox.com
>Subject: Re: [classlib][swing] test code changes
>On 11/26/06, Geir Magnusson Jr. <geir@pobox.com> wrote:
>> Nathan Beyer wrote:
>> > I made some changes to the swing module's test bits at revision
>> > and wanted to pass it by the mailing list.
>> >
>> > I copied the "javax.swing.SwingTestCase" and
>> > "javax.swing.BaseSwingTestCase" classes from 'support' to the
>> > module. I recall a previous discussion about this, but let me know
>> > this isn't good. I'll delete the classes from 'support' later.
>> >
>> > To get this to work, I also updated the build.xml in 'swing'.
>> > of running all tests that match "**/*Test*.java", I changed it to
>> > match "**/*Test.java" so that these two classes wouldn't be picked
>> Why wouldn't you simply rename them?
>We could, but just so everyone knows, combined these two classes are
>used as the base class of essentially every test in the swing module.
>Also, I'm not sure what would be a better name, as these abstract
>classes extend TestCase and add "swing" features.

They shouldn't be renamed because these classes have no tests -- they
are just support classes which provide additional methods, features to
support Swing testing. And SwingTestCase ensures setUp(), tearDown(),
and test methods are executed on Event Dispatch Thread. (Swing is not
Because these classes have no tests, they are marked abstract so that
they can't be instantiated directly.

I am for keeping the pattern "**/*Test.java". But as far as I remember
there are several test cases which names ends in "...Tests.java" -- they
should be renamed. I can provide a list, if necessary.

Thank you, Nathan.


>> geir
>> >
>> > -Nathan

Alexey A. Ivanov
Intel Enterprise Solutions Software Division

View raw message