Skip to content

Commit

Permalink
add retry rule.
Browse files Browse the repository at this point in the history
  • Loading branch information
pabender committed Sep 23, 2018
1 parent 4e9d3fe commit ebb31ce
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions java/test/jmri/jmrit/throttle/ThrottleFrameTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,13 @@
import jmri.InstanceManager;
import jmri.DccLocoAddress;
import jmri.util.JUnitUtil;
import jmri.util.junit.rules.RetryRule;
import jmri.util.swing.JemmyUtil;
import org.junit.After;
import org.junit.Assert;
import org.junit.Assume;
import org.junit.Before;
import org.junit.Rule;
import org.junit.Test;

/**
Expand All @@ -18,6 +20,9 @@
*/
public class ThrottleFrameTest {

@Rule
public RetryRule retryRule = new RetryRule(3); // allow 3 retries

@Test
public void testCtor() {
Assume.assumeFalse(GraphicsEnvironment.isHeadless());
Expand Down

0 comments on commit ebb31ce

Please sign in to comment.