From 5a587fb74fd9a8c8839b6f8582f5ff15f5183805 Mon Sep 17 00:00:00 2001 From: David Gageot Date: Thu, 7 May 2015 19:04:22 +0200 Subject: Redundant throws clause in tests --- .../src/test/java/org/sonar/home/cache/FileCacheBuilderTest.java | 4 ++-- sonar-home/src/test/java/org/sonar/home/cache/FileCacheTest.java | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'sonar-home/src/test') 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); -- cgit v1.2.3