blob: 59b2b6a3a4fda2b9de8435fda5115dc7e9c20bc7 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2012-2013 EclipseSource Muenchen GmbH 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:
* Edgar Mueller - initial API and implementation
******************************************************************************/
package org.eclipse.emf.emfstore.client.test.ui.controllers;
import org.eclipse.emf.emfstore.client.ui.ESUIControllerFactory;
import org.eclipse.emf.emfstore.server.exceptions.ESException;
import org.eclipse.swtbot.swt.finder.finders.UIThreadRunnable;
import org.eclipse.swtbot.swt.finder.results.VoidResult;
import org.junit.Test;
/**
*
* @author emueller
*
*/
public class NoLocalChangesCommitControllerTest extends AbstractUIControllerTest {
@Override
@Test
public void testController() throws ESException {
UIThreadRunnable.asyncExec(new VoidResult() {
public void run() {
ESUIControllerFactory.INSTANCE.commitProject(
getBot().getDisplay().getActiveShell(),
getLocalProject());
}
});
getBot().shell("No local changes");
getBot().button("OK").click();
}
}