Skip to content

Commit

Permalink
Merge branch 'master' into issue-52-flaky-windows-swtbot
Browse files Browse the repository at this point in the history
  • Loading branch information
LorenzoBettini committed Dec 4, 2022
2 parents 612b674 + 1177464 commit e810c75
Showing 1 changed file with 15 additions and 4 deletions.
Expand Up @@ -51,7 +51,9 @@
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 @@ -62,16 +64,25 @@
*/
@RunWith(SWTBotJunit4ClassRunner.class)
public class EmfParsleyFormTests extends EmfParsleySWTBotAbstractTests {

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

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

public EmfParsleyFormTests() {

private Level origLevel;

@Before
public void setLogLevel() {
origLevel = log.getLevel();
log.setLevel(Level.DEBUG);
}

@After
public void resetLogLevel() {
log.setLevel(origLevel);
}

@Test
public void detailViewShowsDetailsOnSelection() throws Exception {
boolean editable = true;
Expand Down

0 comments on commit e810c75

Please sign in to comment.