<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
- <version>4.11</version>
+ <version>4.12</version>
</dependency>
<dependency>
<groupId>xmlunit</groupId>
<dependency>
<groupId>org.reflections</groupId>
<artifactId>reflections</artifactId>
- <version>0.9.9-RC1</version>
+ <version>0.9.9</version>
</dependency>
<dependency>
<groupId>com.google.code.gson</groupId>
* Safeguard
*/
@Rule
- public Timeout globalTimeout = new Timeout(30000);
+ public Timeout globalTimeout = Timeout.seconds(30);
/**
* Temporary directory is used to interact with monitored processes, which write in it.
import org.apache.commons.io.FileUtils;
import org.junit.Rule;
import org.junit.Test;
+import org.junit.rules.DisableOnDebug;
import org.junit.rules.TemporaryFolder;
+import org.junit.rules.TestRule;
import org.junit.rules.Timeout;
import org.sonar.process.Lifecycle.State;
import org.sonar.process.test.StandardProcess;
* Safeguard
*/
@Rule
- public Timeout timeout = new Timeout(10000);
+ public TestRule timeout = new DisableOnDebug(Timeout.seconds(10));
@Rule
public TemporaryFolder temp = new TemporaryFolder();
import org.junit.After;
import org.junit.Rule;
import org.junit.Test;
+import org.junit.rules.DisableOnDebug;
import org.junit.rules.TemporaryFolder;
+import org.junit.rules.TestRule;
import org.junit.rules.Timeout;
import org.sonar.process.NetworkUtils;
import org.sonar.process.ProcessConstants;
Client client;
@Rule
- public Timeout timeout = new Timeout(60000);
+ public TestRule timeout = new DisableOnDebug(Timeout.seconds(60));
@Rule
public TemporaryFolder temp = new TemporaryFolder();
import org.junit.Before;
import org.junit.Rule;
import org.junit.Test;
+import org.junit.rules.DisableOnDebug;
+import org.junit.rules.TestRule;
import org.junit.rules.Timeout;
import org.sonar.api.platform.Server;
public class AnalysisReportTaskLauncherTest {
@Rule
- public Timeout timeout = new Timeout(5000);
+ public TestRule timeout = new DisableOnDebug(Timeout.seconds(5));
private AnalysisReportTaskLauncher sut;
private ComputationService service;
import org.junit.BeforeClass;
import org.junit.Rule;
import org.junit.Test;
+import org.junit.rules.DisableOnDebug;
import org.junit.rules.ExpectedException;
import org.junit.rules.TemporaryFolder;
+import org.junit.rules.TestRule;
import org.junit.rules.Timeout;
import org.simpleframework.http.Request;
import org.simpleframework.http.Response;
public ExpectedException thrown = ExpectedException.none();
@Rule
- public Timeout timeout = new Timeout(2000);
+ public TestRule timeout = new DisableOnDebug(Timeout.seconds(2));
private static SocketConnection socketConnection;
private static String baseUrl;