]> source.dussan.org Git - jgit.git/commitdiff
Fix unthrown exception errors in CloneCommandTest 28/103728/1
authorMatthias Sohn <matthias.sohn@sap.com>
Sat, 26 Aug 2017 07:08:16 +0000 (09:08 +0200)
committerMatthias Sohn <matthias.sohn@sap.com>
Sat, 26 Aug 2017 07:11:02 +0000 (09:11 +0200)
The Eclipse compiler raises errors for unthrown exceptions declared to
be thrown by test methods introduced in 88e45399.

Change-Id: I0d91c89e1b20ceff52c38b759abf906cc94e9902
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
org.eclipse.jgit.test/tst/org/eclipse/jgit/api/CloneCommandTest.java

index 6ff3b25d93a778479000a20f6b40e2bf6b87fc6d..e687a6ca7f767b4c6816478c800f1d5f911dece2 100644 (file)
@@ -156,8 +156,8 @@ public class CloneCommandTest extends RepositoryTestCase {
        }
 
        @Test
-       public void testCloneRepositoryDefaultDirectory() throws IOException, URISyntaxException,
-                       JGitInternalException, GitAPIException {
+       public void testCloneRepositoryDefaultDirectory()
+                       throws URISyntaxException, JGitInternalException {
                CloneCommand command = Git.cloneRepository().setURI(fileUri());
 
                command.verifyDirectories(new URIish(fileUri()));
@@ -166,8 +166,8 @@ public class CloneCommandTest extends RepositoryTestCase {
        }
 
        @Test
-       public void testCloneBareRepositoryDefaultDirectory() throws IOException, URISyntaxException,
-                       JGitInternalException, GitAPIException {
+       public void testCloneBareRepositoryDefaultDirectory()
+                       throws URISyntaxException, JGitInternalException {
                CloneCommand command = Git.cloneRepository().setURI(fileUri()).setBare(true);
 
                command.verifyDirectories(new URIish(fileUri()));