Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Wolf2016-05-21 10:57:06 +0000
committerThomas Wolf2016-05-22 20:47:10 +0000
commit118f42f3321c2aa9e98c1e5d388d43950865b877 (patch)
treea8a82b0c7428e02a57ae7b3f4b516d4a7d0d894c /org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/test
parent4d4255306b7ba22ef61d8144179281b8d209c3a0 (diff)
downloadegit-118f42f3321c2aa9e98c1e5d388d43950865b877.tar.gz
egit-118f42f3321c2aa9e98c1e5d388d43950865b877.tar.xz
egit-118f42f3321c2aa9e98c1e5d388d43950865b877.zip
Replace uses of deprecated Repository.getRef()
Use Repository.findRef() or Repository.exactRef(), as appropriate. No functional change. Change-Id: Ie481c7fa5ac69d4778cf9f70ac2b019bee6e53c9 Signed-off-by: Thomas Wolf <thomas.wolf@paranor.ch>
Diffstat (limited to 'org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/test')
-rw-r--r--org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/test/history/HistoryViewTest.java2
-rw-r--r--org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/test/stagview/StagingViewTest.java2
2 files changed, 2 insertions, 2 deletions
diff --git a/org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/test/history/HistoryViewTest.java b/org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/test/history/HistoryViewTest.java
index ba34382ae..dc2fbb0c0 100644
--- a/org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/test/history/HistoryViewTest.java
+++ b/org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/test/history/HistoryViewTest.java
@@ -401,7 +401,7 @@ public class HistoryViewTest extends LocalRepositoryTestCase {
@Ignore
public void testRebaseAlreadyUpToDate() throws Exception {
Repository repo = lookupRepository(repoFile);
- Ref stable = repo.getRef("stable");
+ Ref stable = repo.findRef("stable");
SWTBotTable table = getHistoryViewTable(PROJ1);
SWTBotTableItem stableItem = getTableItemWithId(table, stable.getObjectId());
diff --git a/org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/test/stagview/StagingViewTest.java b/org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/test/stagview/StagingViewTest.java
index 739e98972..e8155b833 100644
--- a/org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/test/stagview/StagingViewTest.java
+++ b/org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/test/stagview/StagingViewTest.java
@@ -115,7 +115,7 @@ public class StagingViewTest extends LocalRepositoryTestCase {
git.checkout().setName("master").call();
commitOneFileChange("on master");
- git.merge().include(repository.getRef("side")).call();
+ git.merge().include(repository.findRef("side")).call();
assertEquals(RepositoryState.MERGING, repository.getRepositoryState());
StagingViewTester stagingView = StagingViewTester

Back to the top