diff --git a/test/unit/org/openstreetmap/josm/testutils/JOSMTestRules.java b/test/unit/org/openstreetmap/josm/testutils/JOSMTestRules.java
index 39dae30..cae7e1e 100644
|
a
|
b
|
package org.openstreetmap.josm.testutils;
|
| 4 | 4 | import java.io.File; |
| 5 | 5 | import java.io.IOException; |
| 6 | 6 | |
| | 7 | import org.junit.rules.DisableOnDebug; |
| 7 | 8 | import org.junit.rules.TemporaryFolder; |
| 8 | 9 | import org.junit.rules.TestRule; |
| 9 | 10 | import org.junit.rules.Timeout; |
| … |
… |
import org.openstreetmap.josm.tools.I18n;
|
| 27 | 28 | * @author Michael Zangl |
| 28 | 29 | */ |
| 29 | 30 | public class JOSMTestRules implements TestRule { |
| 30 | | //We should make this the default when running from ant: Timeout.seconds(10); |
| 31 | | private Timeout timeout = null; |
| | 31 | private Timeout timeout = Timeout.seconds(10); |
| 32 | 32 | private TemporaryFolder josmHome; |
| 33 | 33 | private boolean usePreferences = false; |
| 34 | 34 | private APIType useAPI = APIType.NONE; |
| … |
… |
public class JOSMTestRules implements TestRule {
|
| 143 | 143 | } |
| 144 | 144 | }; |
| 145 | 145 | if (timeout != null) { |
| 146 | | statement = timeout.apply(statement, description); |
| | 146 | statement = new DisableOnDebug(timeout).apply(statement, description); |
| 147 | 147 | } |
| 148 | 148 | if (josmHome != null) { |
| 149 | 149 | statement = josmHome.apply(statement, description); |