blob: 24b9fdfd469d71e8b37eb2c3805f452bb87b6db9 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2008, 2017 Ketan Padegaonkar and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Ketan Padegaonkar - initial API and implementation
*******************************************************************************/
package org.rcpmail;
import org.eclipse.swt.widgets.Display;
import org.eclipse.swtbot.swt.finder.SWTBotTestCase;
import org.eclipse.swtbot.swt.finder.junit.SWTBotJunit4ClassRunner;
import org.eclipse.swtbot.swt.finder.utils.SWTUtils;
import org.junit.Test;
import org.junit.runner.RunWith;
@RunWith(SWTBotJunit4ClassRunner.class)
public class MySecondTest extends SWTBotTestCase {
@Test
public void ThatSWTBotDoesNotRunOnTheUIThread() throws Exception {
assertNull(Display.getCurrent());
assertNotSame(Thread.currentThread(), SWTUtils.display().getThread());
}
}