]> source.dussan.org Git - jgit.git/commitdiff
FetchCommandTest: Don't declare specific exceptions in test methods 01/90601/2
authorDavid Pursehouse <david.pursehouse@gmail.com>
Wed, 8 Feb 2017 02:12:28 +0000 (11:12 +0900)
committerDavid Pursehouse <david.pursehouse@gmail.com>
Thu, 9 Feb 2017 06:10:15 +0000 (15:10 +0900)
Change-Id: Ie0f8a0f7a9c2c383be6ae8265353daac7f5a89fa
Signed-off-by: David Pursehouse <david.pursehouse@gmail.com>
org.eclipse.jgit.test/tst/org/eclipse/jgit/api/FetchCommandTest.java

index 56a1f38013af05a24f621e2b1d36e576de9dde26..a36f6c551a804c53c39da8ec1cb087af48aca7e5 100644 (file)
@@ -45,12 +45,8 @@ package org.eclipse.jgit.api;
 import static org.junit.Assert.assertEquals;
 import static org.junit.Assert.assertNull;
 
-import java.io.IOException;
-import java.net.URISyntaxException;
 import java.util.Collection;
 
-import org.eclipse.jgit.api.errors.GitAPIException;
-import org.eclipse.jgit.api.errors.JGitInternalException;
 import org.eclipse.jgit.junit.RepositoryTestCase;
 import org.eclipse.jgit.lib.Constants;
 import org.eclipse.jgit.lib.ObjectId;
@@ -74,7 +70,7 @@ public class FetchCommandTest extends RepositoryTestCase {
        private Git remoteGit;
 
        @Before
-       public void setupRemoteRepository() throws IOException, URISyntaxException {
+       public void setupRemoteRepository() throws Exception {
                git = new Git(db);
 
                // create other repository
@@ -91,8 +87,7 @@ public class FetchCommandTest extends RepositoryTestCase {
        }
 
        @Test
-       public void testFetch() throws JGitInternalException, IOException,
-                       GitAPIException {
+       public void testFetch() throws Exception {
 
                // create some refs via commits and tag
                RevCommit commit = remoteGit.commit().setMessage("initial commit").call();