diff options
author | Duarte Meneses <duarte.meneses@sonarsource.com> | 2019-04-18 17:10:22 -0500 |
---|---|---|
committer | SonarTech <sonartech@sonarsource.com> | 2019-04-30 20:21:07 +0200 |
commit | 67bbf9427067ce40fbe792b88f18af837ddb3a9f (patch) | |
tree | d8ec93cb4f8846aca81912c4b8660b96e7902560 /sonar-plugin-api/src | |
parent | 9d399028925cbc4910751fe590435590a14b78c3 (diff) | |
download | sonarqube-67bbf9427067ce40fbe792b88f18af837ddb3a9f.tar.gz sonarqube-67bbf9427067ce40fbe792b88f18af837ddb3a9f.zip |
Upgrade assertj-core to 3.12.2 and assertj-guava to 3.2.1 for compatibility with Java 11
Diffstat (limited to 'sonar-plugin-api/src')
-rw-r--r-- | sonar-plugin-api/src/test/java/org/sonar/api/utils/ZipUtilsTest.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sonar-plugin-api/src/test/java/org/sonar/api/utils/ZipUtilsTest.java b/sonar-plugin-api/src/test/java/org/sonar/api/utils/ZipUtilsTest.java index ef56bedcfde..b3c24c13c01 100644 --- a/sonar-plugin-api/src/test/java/org/sonar/api/utils/ZipUtilsTest.java +++ b/sonar-plugin-api/src/test/java/org/sonar/api/utils/ZipUtilsTest.java @@ -25,6 +25,8 @@ import java.io.FileInputStream; import java.io.IOException; import java.io.InputStream; import java.net.URL; +import java.util.ArrayList; +import java.util.Collections; import java.util.Iterator; import java.util.zip.ZipEntry; import java.util.zip.ZipFile; @@ -54,7 +56,7 @@ public class ZipUtilsTest { assertThat(zip).exists().isFile(); assertThat(zip.length()).isGreaterThan(1L); - Iterator<? extends ZipEntry> zipEntries = Iterators.forEnumeration(new ZipFile(zip).entries()); + ArrayList<? extends ZipEntry> zipEntries = Collections.list(new ZipFile(zip).entries()); assertThat(zipEntries).hasSize(4); File unzipDir = temp.newFolder(); |