Web itests - clean-up
---------------------

                 Key: ARIES-355
                 URL: https://issues.apache.org/jira/browse/ARIES-355
             Project: Aries
          Issue Type: Improvement
          Components: Web
    Affects Versions: 0.2
            Reporter: Bartosz Kowalewski


I've applied some minor changes to the WabConverterITest class. I took a look 
at this class after seeing logs from build #580 (WabConverterITest failed in 
#580).However, the changes I propose are not really related with the issue 
observed in #580 - they are rather meant to do clean up.

In order to get rid of the issue observed in #580 it might be necessary to 
increase the amount of time this test waits for the WAR URL Stream Handler 
Service.  TIt currently waits 10 seconds. I guess this could be increased to 15 
seconds:
 URLStreamHandlerService warHandler = 
getOsgiService(URLStreamHandlerService.class, 
      "(url.handler.protocol=webbundle)", 15000);
or even to the default timeout which is 30 seconds.

Changes that applied in the patch
1. fout.close() added
2. Service tracker references kept and closed during test teardown
3. Service tracker used instead of bundleContext.getServiceReferences()
4. There's no need to check urlhandler bundle state. Checking if the WAR URL 
Stream Handler Service is present should be sufficient.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to