diff options
author | Duarte Meneses <duarte.meneses@sonarsource.com> | 2017-12-07 11:38:28 +0100 |
---|---|---|
committer | Duarte Meneses <duarte.meneses@sonarsource.com> | 2017-12-07 15:40:03 +0100 |
commit | 0001182a007e70261d447023f1fa5ad5e1a0b69f (patch) | |
tree | eaae3a5bb2cf5f54a68ca42ac744494d0ead5908 /sonar-core/src | |
parent | 204f88df32a21b401b4bff3190ee0e3cfb7628a3 (diff) | |
download | sonarqube-0001182a007e70261d447023f1fa5ad5e1a0b69f.tar.gz sonarqube-0001182a007e70261d447023f1fa5ad5e1a0b69f.zip |
SONAR-10142 Download compressed plugins
Diffstat (limited to 'sonar-core/src')
-rw-r--r-- | sonar-core/src/test/java/org/sonar/core/util/FileUtilsTest.java | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/sonar-core/src/test/java/org/sonar/core/util/FileUtilsTest.java b/sonar-core/src/test/java/org/sonar/core/util/FileUtilsTest.java index a1054b47650..1aa95c7245d 100644 --- a/sonar-core/src/test/java/org/sonar/core/util/FileUtilsTest.java +++ b/sonar-core/src/test/java/org/sonar/core/util/FileUtilsTest.java @@ -23,6 +23,7 @@ import java.io.File; import java.io.IOException; import java.nio.file.Files; import java.nio.file.Path; +import java.nio.file.Paths; import java.nio.file.attribute.BasicFileAttributes; import javax.annotation.CheckForNull; import org.apache.commons.lang.SystemUtils; @@ -238,6 +239,12 @@ public class FileUtilsTest { assertThat(childDir2).doesNotExist(); } + @Test + public void getPack200FilePath_transforms_jar_name() { + Path jarPath = Paths.get("plugin.jar"); + assertThat(FileUtils.getPack200FilePath(jarPath)).isEqualTo(Paths.get("plugin.pack.gz")); + } + private void expectDirectoryCanNotBeNullNPE() { expectedException.expect(NullPointerException.class); expectedException.expectMessage("Directory can not be null"); |