[RFC][icedtea-web] Test for regression of ServiceManager not setup correctly

Jiri Vanek jvanek at redhat.com
Sun Feb 19 10:38:35 PST 2012

On 02/18/2012 12:08 AM, Omair Majid wrote:
> On 02/17/2012 05:34 PM, Danesh Dadachanji wrote:
>> Hi,
>> Here's a test that checks whether or not ServiceManager is setup
>> correctly by the time an applet constructor is called. The constructor
>> uses BasicService and will throw a NPE if it is not setup.
> Would it be possible to extend this test to check that services are
> available in init(), start(), stop() and destroy() as well?
> There also seem to be some spacing/indentation issues in the patch.
>> The test is for checking regression against this changeset:
>> http://icedtea.classpath.org/hg/icedtea-web/rev/221174bcd4ec
>> Thank you very much to Jiri for helping me get this through the door!
>> +2012-02-17  Danesh Dadachanji<ddadacha at redhat.com>
>> +
>> +    Adding test for regression of JNLP API accessibility in constructor
>> +    methods of applets.
>> +    * Makefile.am: Added classes.jar to classpath when compiling
>> jnlp_tests.
>> +    * tests/jnlp_tests/simple/CheckServices/: Tests ServiceManager is
>> setup
>> +    correctly when called from applet constructors.
> Please list all the files added or changed.
> In general, am not sure how good these applet tests might be. We know
> that applets run under javaws use different code paths from applets run
> under a browser. Still it's better to have a few tests than none.

I have played with this test and is testing what it should test. => Very good test :)
There is still issue with headless appelts, but I'm going to solve ths at least by setting DISPALY to tests cron job.
Also applet-testing-framework will be here soon I hope O:)

> Cheers,
> Omair

More information about the distro-pkg-dev mailing list