Commit eeb948b9 authored by Aurelien Pupier's avatar Aurelien Pupier
Browse files

BS-14307: Clean code: use SWTGefBotRule

parent 3e8ec832
......@@ -19,41 +19,29 @@ package org.bonitasoft.studio.diagram.test;
import java.io.IOException;
import org.assertj.core.api.Assertions;
import org.bonitasoft.studio.common.jface.FileActionDialog;
import org.bonitasoft.studio.model.process.MainProcess;
import org.bonitasoft.studio.model.process.Pool;
import org.bonitasoft.studio.model.process.SendTask;
import org.bonitasoft.studio.model.process.ServiceTask;
import org.bonitasoft.studio.properties.i18n.Messages;
import org.bonitasoft.studio.swtbot.framework.diagram.BotProcessDiagramPerspective;
import org.bonitasoft.studio.swtbot.framework.rule.SWTGefBotRule;
import org.bonitasoft.studio.test.swtbot.util.SWTBotTestUtil;
import org.eclipse.gmf.runtime.diagram.ui.editparts.DiagramEditPart;
import org.eclipse.swtbot.eclipse.gef.finder.SWTBotGefTestCase;
import org.eclipse.swtbot.eclipse.gef.finder.widgets.SWTBotGefEditPart;
import org.eclipse.swtbot.swt.finder.junit.SWTBotJunit4ClassRunner;
import org.junit.Before;
import org.junit.Rule;
import org.junit.Test;
import org.junit.runner.RunWith;
@RunWith(SWTBotJunit4ClassRunner.class)
public class ConvertActivityTypeWithBoundariesIT extends SWTBotGefTestCase {
private final static String STEP_WITH_BOUNDARY_NAME = "Step1";
boolean disablePopupState;
@Override
@Before
public void setUp() throws Exception {
super.setUp();
disablePopupState = FileActionDialog.getDisablePopup();
FileActionDialog.setDisablePopup(true);
}
@Rule
public SWTGefBotRule botRule = new SWTGefBotRule(bot);
@Override
public void tearDown() throws Exception {
super.tearDown();
FileActionDialog.setDisablePopup(disablePopupState);
}
private final static String STEP_WITH_BOUNDARY_NAME = "Step1";
@Test
public void testConvertWithRemovedTimerBoundary() throws Exception {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment