});
layerUnderTest.setBlinkDurationInMilis(100);
dataList.get(0).setAsk_price(100);
LabelStack blinkLabels = layerUnderTest.getConfigLabelsByPosition(6, 0);
// Blink started
assertEquals(2, blinkLabels.getLabels().size());
assertEquals(BLINKING_LABEL, blinkLabels.getLabels().get(0));
assertEquals(TEST_LABEL, blinkLabels.getLabels().get(1));
// After 50 ms
Thread.sleep(50);
blinkLabels = layerUnderTest.getConfigLabelsByPosition(6, 0);
assertEquals(2, blinkLabels.getLabels().size());
// Wait for blink to elapse
Thread.sleep(110);
// Force running the event queue to ensure any Display.asyncExecs are
// run.
while (display.readAndDispatch())
;
blinkLabels = layerUnderTest.getConfigLabelsByPosition(6, 0);
assertEquals(1, blinkLabels.getLabels().size());
assertEquals(TEST_LABEL, blinkLabels.getLabels().get(0));
}