Code example for BlockingQueue

Methods: isEmpty

0
     * @param fromMethod 
     * @param fromCallback 
     */ 
    protected <T> void checkReturnedOperations(T fromMethod, T fromCallback) {
        assertTrue(fromMethod == fromCallback);
        assertTrue(this.responseQueue.isEmpty());
        assertTrue(this.exceptionQueue.isEmpty());
	} 
 
    protected void failNoIllegalArgumentExceptionThrown() { 
        this.failNoExceptionThrown(IllegalArgumentException.class);
    } 
 
    protected void failNoLiveOperationExceptionThrown() { 
        this.failNoExceptionThrown(LiveOperationException.class);
    } 
 
    protected void failNoNullPointerExceptionThrown() { 
        this.failNoExceptionThrown(NullPointerException.class);
	}