Skip to content

Commit

Permalink
add jdk14 to test matrix
Browse files Browse the repository at this point in the history
  • Loading branch information
chewiebug committed Apr 29, 2020
1 parent ff09b5e commit d04f11d
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .travis.yml
Expand Up @@ -8,10 +8,12 @@ jdk:
- oraclejdk11
- oraclejdk12
- oraclejdk13
- oraclejdk14
- openjdk8
- openjdk11
- openjdk12
- openjdk13
- openjdk14

# enable cache to stop downloading all maven plugins every time
cache:
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Expand Up @@ -195,7 +195,7 @@
<jdk.source.version>1.8</jdk.source.version>
<jdk.target.version>1.8</jdk.target.version>
<tools.maven.plugin.version>1.4</tools.maven.plugin.version>
<jacoco.maven.plugin.version>0.8.4</jacoco.maven.plugin.version>
<jacoco.maven.plugin.version>0.8.5</jacoco.maven.plugin.version>
<maven.source.plugin.version>3.0.1</maven.source.plugin.version>
<maven.javadoc.plugin.version>3.0.1</maven.javadoc.plugin.version>
<maven.gpg.plugin.version>1.6</maven.gpg.plugin.version>
Expand Down
Expand Up @@ -89,8 +89,14 @@ public void loadModelIllegalArgument() throws Exception {
}
catch (DataReaderException e) {
assertNotNull("cause", e.getCause());
Class expectedClass;
if (System.getProperty("java.version").startsWith("14")) {
expectedClass = IOException.class;
} else {
expectedClass = IllegalArgumentException.class;
}
assertEquals("expected exception in cause",
IllegalArgumentException.class.getName(),
expectedClass.getName(),
e.getCause().getClass().getName());
}
}
Expand Down

0 comments on commit d04f11d

Please sign in to comment.