mil.dod.th.junit4.test.runner/src/mil/dod/th/ose/junit4xmltestrunner/IntegrationTestService.java
public void waitForServices(final long timeoutMS) throws InterruptedException
    {
        for (String key : m_ServiceReferences.keySet())
        {
            final ServiceTracker<?, ?> tracker = m_ServiceReferences.get(key).getTracker();
            final Object service = tracker.waitForService(timeoutMS);
            if (service == null && m_ServiceReferences.get(key).isOptional())
            {
                Logging.log(LogService.LOG_INFO, "Service [%s] not available, but optional", key);
                return;
            }
            assertThat("Service is not available for " + key, service, is(notNullValue()));
        }
    }
/**
     * Wait for each tracked service.  Assertion fails if any service is not available within the timeout.
     * 
     * @param timeoutMS
     *      How long to wait for each service, will spin through each service waiting on them one by one
     * @throws InterruptedException
     *      If interrupted while waiting for a service
     */
Wait for each tracked service.  Assertion fails if any service is not available within the timeout.

@param timeoutMS
How long to wait for each service, will spin through each service waiting on them one by one
@throws InterruptedException
If interrupted while waiting for a service
Wait for each tracked service . Assertion fails if any service is not available within the timeout . @param timeoutMS How long to wait for each service will spin through each service waiting on them one by one @throws InterruptedException If interrupted while waiting for a service
public void waitForServices(final long timeoutMS) throws InterruptedException
    {
        for (String key : m_ServiceReferences.keySet())
        {
            final ServiceTracker<?, ?> tracker = m_ServiceReferences.get(key).getTracker();
            final Object service = tracker.waitForService(timeoutMS);
            if (service == null && m_ServiceReferences.get(key).isOptional())
            {
                Logging.log(LogService.LOG_INFO, "Service [%s] not available, but optional", key);
                return;
            }
            assertThat("Service is not available for " + key, service, is(notNullValue()));
        }
    }
public void waitForServices ( final long timeoutMS ) throws InterruptedException { for ( String key : m_ServiceReferences . keySet ( ) ) { final ServiceTracker < ? , ? > tracker = m_ServiceReferences . get ( key ) . getTracker ( ) ; final Object service = tracker . waitForService ( timeoutMS ) ; if ( service == null && m_ServiceReferences . get ( key ) . isOptional ( ) ) { Logging . log ( LogService . LOG_INFO , "Service [%s] not available, but optional" , key ) ; return ; } assertThat ( "Service is not available for " + key , service , is ( notNullValue ( ) ) ) ; } }
Wait for each tracked service.
Wait for each tracked service .