diff options
Diffstat (limited to 'sonar-home')
-rw-r--r-- | sonar-home/src/test/java/org/sonar/home/cache/FileCacheBuilderTest.java | 4 | ||||
-rw-r--r-- | sonar-home/src/test/java/org/sonar/home/cache/FileCacheTest.java | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/sonar-home/src/test/java/org/sonar/home/cache/FileCacheBuilderTest.java b/sonar-home/src/test/java/org/sonar/home/cache/FileCacheBuilderTest.java index 22af2e52a73..59125570012 100644 --- a/sonar-home/src/test/java/org/sonar/home/cache/FileCacheBuilderTest.java +++ b/sonar-home/src/test/java/org/sonar/home/cache/FileCacheBuilderTest.java @@ -42,7 +42,7 @@ public class FileCacheBuilderTest { } @Test - public void user_home_property_can_be_null() throws Exception { + public void user_home_property_can_be_null() { FileCache cache = new FileCacheBuilder().setUserHome((String) null).build(); // does not fail. It uses default path or env variable @@ -51,7 +51,7 @@ public class FileCacheBuilderTest { } @Test - public void use_default_path_or_env_variable() throws Exception { + public void use_default_path_or_env_variable() { FileCache cache = new FileCacheBuilder().build(); assertThat(cache.getDir()).isDirectory().exists(); diff --git a/sonar-home/src/test/java/org/sonar/home/cache/FileCacheTest.java b/sonar-home/src/test/java/org/sonar/home/cache/FileCacheTest.java index 2387a796ab7..c831e5af598 100644 --- a/sonar-home/src/test/java/org/sonar/home/cache/FileCacheTest.java +++ b/sonar-home/src/test/java/org/sonar/home/cache/FileCacheTest.java @@ -122,7 +122,7 @@ public class FileCacheTest { } @Test - public void unzip_from_cache() throws IOException, URISyntaxException, InterruptedException, ExecutionException { + public void unzip_from_cache() throws IOException, URISyntaxException { final File samplePlugin = new File(this.getClass().getResource("/sonar-checkstyle-plugin-2.8.jar").toURI()); FileHashes hashes = mock(FileHashes.class); final FileCache cache = new FileCache(tempFolder.newFolder(), log, hashes); |