/*******************************************************************************
* Copyright (C) 2011, Chris Aniszczyk <caniszczyk@gmail.com>
*
* 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
*******************************************************************************/
package org.aniszczyk.minerva.ui.tests;
import static org.junit.Assert.assertNotNull;
import org.eclipse.swtbot.eclipse.finder.SWTWorkbenchBot;
import org.eclipse.swtbot.eclipse.finder.widgets.SWTBotPerspective;
import org.eclipse.swtbot.swt.finder.exceptions.WidgetNotFoundException;
import org.eclipse.swtbot.swt.finder.junit.SWTBotJunit4ClassRunner;
import org.junit.After;
import org.junit.BeforeClass;
import org.junit.Test;
import org.junit.runner.RunWith;
@RunWith(SWTBotJunit4ClassRunner.class)
public class SimpleUITestCase {
protected static final SWTWorkbenchBot bot = new SWTWorkbenchBot();
@BeforeClass
public static void closeWelcomePage() {
try {
SWTBotPerspective perspective = bot.perspectiveByLabel("Resource");
assertNotNull(perspective);
} catch (WidgetNotFoundException e) {
// somebody else probably closed it, lets not feel bad about it.
}
}
@Test
public void someTest() {
// TODO
}
@After
public void clickButton() {
// TODO
}
}