diff --git a/pom.xml b/pom.xml
index 7e516bb8..c3d6af7a 100644
--- a/pom.xml
+++ b/pom.xml
@@ -296,9 +296,9 @@
test
- com.github.stefanbirkner
- system-rules
- 1.19.0
+ uk.org.webcompere
+ system-stubs-junit4
+ 2.1.3
test
@@ -469,10 +469,10 @@
-missing
- http://slf4j.org/api/
- http://commons.apache.org/lang/api-release/
- http://commons.apache.org/io/api-release/
- http://junit.sourceforge.net/javadoc/
+ https://slf4j.org/api/
+ https://commons.apache.org/proper/commons-lang/javadocs/api-release/
+ https://commons.apache.org/proper/commons-io/javadocs/api-release/
+ https://junit.org/junit4/javadoc/latest/
@@ -769,4 +769,4 @@
-
\ No newline at end of file
+
diff --git a/src/test/java/util/JavaLocatorTest.java b/src/test/java/util/JavaLocatorTest.java
index 1e9375c2..27c04130 100644
--- a/src/test/java/util/JavaLocatorTest.java
+++ b/src/test/java/util/JavaLocatorTest.java
@@ -10,11 +10,11 @@
import org.apache.maven.toolchain.Toolchain;
import org.junit.Rule;
import org.junit.Test;
-import org.junit.contrib.java.lang.system.EnvironmentVariables;
+import uk.org.webcompere.systemstubs.rules.EnvironmentVariablesRule;
public class JavaLocatorTest {
- @Rule public final EnvironmentVariables environmentVariables = new EnvironmentVariables();
+ @Rule public final EnvironmentVariablesRule environmentVariables = new EnvironmentVariablesRule();
@Test
public void shouldReturnNotNullWhenJavaIsNotAvailableOnCommandLineAndJavaHomeIsPresent() {