diff --git a/.travis.yml b/.travis.yml
index 5de87b9d..44d535e0 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -5,10 +5,21 @@ secure: "H4tUL1Greyj588Kb1/FnRapFT/57KaApQYAZx2KRORkddYSzPq2tovI1S8AnqzCHpVtfjin
language: java
-jdk:
- - oraclejdk8
- - oraclejdk7
- - openjdk7
+
+matrix:
+ include:
+ - os: linux
+ dist: trusty
+ jdk: oraclejdk8
+ - os: linux
+ dist: trusty
+ jdk: oraclejdk9
+ - os: linux
+ dist: precise
+ jdk: oraclejdk7
+ - os: linux
+ dist: precise
+ jdk: openjdk7
install:
- mvn install -DskipTests=true -Dgpg.skip=true
diff --git a/pom.xml b/pom.xml
index 1706db31..21e17c1c 100644
--- a/pom.xml
+++ b/pom.xml
@@ -102,9 +102,9 @@
- mockito-all
+ mockito-core
org.mockito
- 1.9.5
+ 2.8.47
test
@@ -197,39 +197,6 @@
-
- org.apache.maven.plugins
- maven-checkstyle-plugin
- 2.13
-
- checkstyle.xml
- true
- true
- true
- true
- 0
-
-
-
- checkstyle
- process-sources
-
- check
-
-
- true
- true
-
-
-
-
-
- com.puppycrawl.tools
- checkstyle
- 5.9
-
-
-
org.eluder.coveralls
coveralls-maven-plugin
@@ -251,5 +218,50 @@
+
+
+ java8
+
+ [,1.9)
+
+
+
+
+ org.apache.maven.plugins
+ maven-checkstyle-plugin
+ 2.13
+
+ checkstyle.xml
+ true
+ true
+ true
+ true
+ 0
+
+
+
+ checkstyle
+ process-sources
+
+ check
+
+
+ true
+ true
+
+
+
+
+
+ com.puppycrawl.tools
+ checkstyle
+ 5.9
+
+
+
+
+
+
+
diff --git a/src/test/java/com/spotify/folsom/RecoveryTest.java b/src/test/java/com/spotify/folsom/RecoveryTest.java
index d1668422..5b01c68a 100644
--- a/src/test/java/com/spotify/folsom/RecoveryTest.java
+++ b/src/test/java/com/spotify/folsom/RecoveryTest.java
@@ -92,7 +92,7 @@ public void testOverloadAndTimeoutRecovery() throws Exception {
// Have memcached block indefinitely on all GET requests
final GetAnswer answer = new GetAnswer();
- when(cache.get(any(Key[].class))).then(answer);
+ when(cache.get((Key[]) any())).then(answer);
// Overload the client
final int overload = 10;