/******************************************************************************* * Copyright (c) 2012 University of Mannheim: Chair for Software Engineering * 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: * Ralph Gerbig - initial API and implementation and initial documentation *******************************************************************************/ package de.uni_mannheim.informatik.swt.mlm.tests.core.ui; import org.eclipse.swtbot.eclipse.finder.SWTWorkbenchBot; import org.eclipse.swtbot.swt.finder.junit.SWTBotJunit4ClassRunner; import org.junit.Before; import org.junit.Test; import org.junit.runner.RunWith; @RunWith(SWTBotJunit4ClassRunner.class) public class OpenMelaniePerspectiveTest { private SWTWorkbenchBot bot; @Test public void canOpenMelaniePerspective(){ //First close all old perspectives bot.menu("Window").menu("Close All Perspectives").click(); //Open Melanie Perspective bot.perspectiveByLabel(TestConstants.PERSPECTIVE_MELANIE_NAME).activate(); } @Before public void setup(){ bot = new SWTWorkbenchBot(); } }