summaryrefslogtreecommitdiffstats
path: root/org.eclipse.jgit.test
diff options
context:
space:
mode:
authorDavid Pursehouse <david.pursehouse@gmail.com>2017-02-08 11:12:28 +0900
committerDavid Pursehouse <david.pursehouse@gmail.com>2017-02-09 15:10:15 +0900
commit51239129b31a3e1288c2eb766d067f51ffd00e29 (patch)
treefddc36d0f0cc5d8a58659727a1467036e802bf8f /org.eclipse.jgit.test
parent16dc88fe10274ad93eb7b55c06532d4e04e6e2e8 (diff)
downloadjgit-51239129b31a3e1288c2eb766d067f51ffd00e29.tar.gz
jgit-51239129b31a3e1288c2eb766d067f51ffd00e29.zip
FetchCommandTest: Don't declare specific exceptions in test methods
Change-Id: Ie0f8a0f7a9c2c383be6ae8265353daac7f5a89fa Signed-off-by: David Pursehouse <david.pursehouse@gmail.com>
Diffstat (limited to 'org.eclipse.jgit.test')
-rw-r--r--org.eclipse.jgit.test/tst/org/eclipse/jgit/api/FetchCommandTest.java9
1 files changed, 2 insertions, 7 deletions
diff --git a/org.eclipse.jgit.test/tst/org/eclipse/jgit/api/FetchCommandTest.java b/org.eclipse.jgit.test/tst/org/eclipse/jgit/api/FetchCommandTest.java
index 56a1f38013..a36f6c551a 100644
--- a/org.eclipse.jgit.test/tst/org/eclipse/jgit/api/FetchCommandTest.java
+++ b/org.eclipse.jgit.test/tst/org/eclipse/jgit/api/FetchCommandTest.java
@@ -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();