diff options
author | David Gageot <david@gageot.net> | 2015-05-07 19:04:22 +0200 |
---|---|---|
committer | David Gageot <david@gageot.net> | 2015-05-07 19:12:29 +0200 |
commit | 5a587fb74fd9a8c8839b6f8582f5ff15f5183805 (patch) | |
tree | b0201ec0afc1dad985a53c06c703a429d4bf095b /sonar-home/src | |
parent | 18834f5bf7f0bdd34912c46a83caaaac70db1e87 (diff) | |
download | sonarqube-5a587fb74fd9a8c8839b6f8582f5ff15f5183805.tar.gz sonarqube-5a587fb74fd9a8c8839b6f8582f5ff15f5183805.zip |
Redundant throws clause in tests
Diffstat (limited to 'sonar-home/src')
-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); |