Skip to content

Commit

Permalink
removed Flaky
Browse files Browse the repository at this point in the history
this would break the recreation of the project in the workspace: the
project would be already there
  • Loading branch information
LorenzoBettini committed Dec 4, 2022
1 parent e810c75 commit f4915b4
Showing 1 changed file with 10 additions and 14 deletions.
Expand Up @@ -48,13 +48,11 @@
import org.eclipse.swtbot.swt.finder.widgets.SWTBotTable;
import org.eclipse.swtbot.swt.finder.widgets.SWTBotText;
import org.eclipse.swtbot.swt.finder.widgets.SWTBotTreeItem;
import org.eclipse.xtext.testing.Flaky;
import org.hamcrest.Description;
import org.hamcrest.Matcher;
import org.junit.After;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Rule;
import org.junit.Test;
import org.junit.runner.RunWith;

Expand All @@ -67,8 +65,8 @@ public class EmfParsleyFormTests extends EmfParsleySWTBotAbstractTests {

protected final Logger log = Logger.getLogger(getClass());

@Rule
public Flaky.Rule testRule = new Flaky.Rule();
// @Rule
// public Flaky.Rule testRule = new Flaky.Rule();

private Level origLevel;

Expand Down Expand Up @@ -245,17 +243,15 @@ public void testContentAssistInFormContainsProposals() throws Exception {
getEditor(EMF_TREE_EDITOR).close();
}

@Test @Flaky
@Test
public void testContentAssistInFormAndSelect() throws Exception {
if (!isIndigo()) {
SWTFormsBot formbot = setupFormForContentAssistTest();
SWTBotText text = formbot.textWithLabel(STRING_FEATURE_LABEL);
// select the content assist proposal
selectContentAssistProposal(text, "Second Proposal");
// and check that the text has changed
formbot.text("Second Proposal");
getEditor(EMF_TREE_EDITOR).saveAndClose();
}
SWTFormsBot formbot = setupFormForContentAssistTest();
SWTBotText text = formbot.textWithLabel(STRING_FEATURE_LABEL);
// select the content assist proposal
selectContentAssistProposal(text, "Second Proposal");
// and check that the text has changed
formbot.text("Second Proposal");
getEditor(EMF_TREE_EDITOR).saveAndClose();
}

private SWTFormsBot setupFormForContentAssistTest() throws CoreException,
Expand Down

0 comments on commit f4915b4

Please sign in to comment.