Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobin Rosenberg2013-04-15 18:39:23 -0400
committerMatthias Sohn2013-04-24 08:56:17 -0400
commit3ca51dd98bb3760ad197704d21d9d0f5f6b23a1c (patch)
treededc6e93b5be3a3cf47e04e39ae8152cec6d9728 /org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/submodule
parent54e294f950a0db5ae6833567d6703eba82c4f112 (diff)
downloadegit-3ca51dd98bb3760ad197704d21d9d0f5f6b23a1c.tar.gz
egit-3ca51dd98bb3760ad197704d21d9d0f5f6b23a1c.tar.xz
egit-3ca51dd98bb3760ad197704d21d9d0f5f6b23a1c.zip
Remove unnecessary usage of the internal FileRepository class
Change-Id: Iae7b4e550d75798dc66edf6c9e03ea826f072f33 Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
Diffstat (limited to 'org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/submodule')
-rw-r--r--org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/submodule/SubmoduleAddTest.java4
-rw-r--r--org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/submodule/SubmoduleSyncTest.java3
-rw-r--r--org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/submodule/SubmoduleUpdateTest.java3
3 files changed, 4 insertions, 6 deletions
diff --git a/org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/submodule/SubmoduleAddTest.java b/org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/submodule/SubmoduleAddTest.java
index 870ae5e97..49ea478a7 100644
--- a/org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/submodule/SubmoduleAddTest.java
+++ b/org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/submodule/SubmoduleAddTest.java
@@ -22,7 +22,7 @@ import org.eclipse.egit.ui.test.ContextMenuHelper;
import org.eclipse.egit.ui.test.TestUtil;
import org.eclipse.egit.ui.view.repositories.GitRepositoriesViewTestBase;
import org.eclipse.jface.dialogs.IDialogConstants;
-import org.eclipse.jgit.internal.storage.file.FileRepository;
+import org.eclipse.jgit.lib.Repository;
import org.eclipse.swtbot.swt.finder.junit.SWTBotJunit4ClassRunner;
import org.eclipse.swtbot.swt.finder.widgets.SWTBotShell;
import org.eclipse.swtbot.swt.finder.widgets.SWTBotTree;
@@ -57,7 +57,7 @@ public class SubmoduleAddTest extends GitRepositoriesViewTestBase {
assertProjectExistence(PROJ1, true);
refreshAndWait();
assertHasRepo(repositoryFile);
- FileRepository repo = lookupRepository(repositoryFile);
+ Repository repo = lookupRepository(repositoryFile);
SWTBotTree tree = getOrOpenView().bot().tree();
tree.getAllItems()[0].select();
diff --git a/org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/submodule/SubmoduleSyncTest.java b/org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/submodule/SubmoduleSyncTest.java
index f8972a72b..07345cb0f 100644
--- a/org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/submodule/SubmoduleSyncTest.java
+++ b/org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/submodule/SubmoduleSyncTest.java
@@ -27,7 +27,6 @@ import org.eclipse.jgit.lib.ConfigConstants;
import org.eclipse.jgit.lib.Constants;
import org.eclipse.jgit.lib.Repository;
import org.eclipse.jgit.storage.file.FileBasedConfig;
-import org.eclipse.jgit.internal.storage.file.FileRepository;
import org.eclipse.jgit.transport.URIish;
import org.eclipse.swtbot.swt.finder.junit.SWTBotJunit4ClassRunner;
import org.eclipse.swtbot.swt.finder.widgets.SWTBotTree;
@@ -61,7 +60,7 @@ public class SubmoduleSyncTest extends GitRepositoriesViewTestBase {
assertProjectExistence(PROJ1, true);
refreshAndWait();
assertHasRepo(repositoryFile);
- FileRepository repo = lookupRepository(repositoryFile);
+ Repository repo = lookupRepository(repositoryFile);
SubmoduleAddCommand command = new SubmoduleAddCommand(repo);
String path = "sub";
diff --git a/org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/submodule/SubmoduleUpdateTest.java b/org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/submodule/SubmoduleUpdateTest.java
index a0815bdd6..21f0a0e9e 100644
--- a/org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/submodule/SubmoduleUpdateTest.java
+++ b/org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/submodule/SubmoduleUpdateTest.java
@@ -29,7 +29,6 @@ import org.eclipse.jgit.lib.Constants;
import org.eclipse.jgit.lib.ObjectId;
import org.eclipse.jgit.lib.Ref;
import org.eclipse.jgit.lib.Repository;
-import org.eclipse.jgit.internal.storage.file.FileRepository;
import org.eclipse.jgit.transport.URIish;
import org.eclipse.swtbot.swt.finder.junit.SWTBotJunit4ClassRunner;
import org.eclipse.swtbot.swt.finder.widgets.SWTBotTree;
@@ -63,7 +62,7 @@ public class SubmoduleUpdateTest extends GitRepositoriesViewTestBase {
assertProjectExistence(PROJ1, true);
refreshAndWait();
assertHasRepo(repositoryFile);
- FileRepository repo = lookupRepository(repositoryFile);
+ Repository repo = lookupRepository(repositoryFile);
ObjectId repoHead = repo.resolve(Constants.HEAD);
SubmoduleAddCommand command = new SubmoduleAddCommand(repo);

Back to the top