@Override protected void setUp() throws Exception { display = Display.getDefault(); super.setUp(); while (display.readAndDispatch()) ; }