src/testCommon/java/de/blau/android/SignalUtils.java
/**
     * Wait for the CountDownLatch to be triggered
     * 
     * @param signal the CountDownLatch
     * @param timeout timeout in s
     */
Wait for the CountDownLatch to be triggered

@param signal the CountDownLatch
@param timeout timeout in s
Wait for the CountDownLatch to be triggered @param signal the CountDownLatch @param timeout timeout in s
public static void signalAwait(@NonNull final CountDownLatch signal, long timeout) {
        try {
            assertTrue(signal.await(timeout, TimeUnit.SECONDS));
        } catch (InterruptedException e) { 
            fail(e.getMessage());
        }
    }
public static void signalAwait ( @ NonNull final CountDownLatch signal , long timeout ) { try { assertTrue ( signal . await ( timeout , TimeUnit . SECONDS ) ) ; } catch ( InterruptedException e ) { fail ( e . getMessage ( ) ) ; } }
Wait for the CountDownLatch to be triggered
Wait for the CountDownLatch to be triggered
// NOSONAR