Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Wolf2019-03-16 17:45:17 -0400
committerThomas Wolf2019-03-16 17:45:17 -0400
commitb385340dae9e2b715fe8e10e3c98ed5c698e28bf (patch)
tree295a763ae428d18b06179d8d4e3760794d9f70c9 /org.eclipse.egit.ui.test/src
parentdf545e2b32e999d98b8f9240360744491a2797c4 (diff)
downloadegit-b385340dae9e2b715fe8e10e3c98ed5c698e28bf.tar.gz
egit-b385340dae9e2b715fe8e10e3c98ed5c698e28bf.tar.xz
egit-b385340dae9e2b715fe8e10e3c98ed5c698e28bf.zip
Replace usages of deprecated Repository methods
getTags() and peel() are deprecated; replace by equivalent other methods. Change-Id: I1edc2ff88f0f79ea3749a53bf89ffac46d4b4c62 Signed-off-by: Thomas Wolf <thomas.wolf@paranor.ch>
Diffstat (limited to 'org.eclipse.egit.ui.test/src')
-rw-r--r--org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/test/team/actions/TagActionTest.java10
1 files changed, 5 insertions, 5 deletions
diff --git a/org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/test/team/actions/TagActionTest.java b/org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/test/team/actions/TagActionTest.java
index 28f7de193..fce9cb21a 100644
--- a/org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/test/team/actions/TagActionTest.java
+++ b/org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/test/team/actions/TagActionTest.java
@@ -15,7 +15,7 @@ package org.eclipse.egit.ui.test.team.actions;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
-import static org.junit.Assert.assertTrue;
+import static org.junit.Assert.assertNotNull;
import java.io.File;
@@ -86,8 +86,8 @@ public class TagActionTest extends LocalRepositoryTestCase {
.setText("Here's the message text");
tagDialog.bot().button(UIText.CreateTagDialog_CreateTagButton).click();
waitInUI();
- assertTrue(lookupRepository(repositoryFile).getTags().keySet()
- .contains("AnotherTag"));
+ assertNotNull(lookupRepository(repositoryFile)
+ .exactRef(Constants.R_TAGS + "AnotherTag"));
}
@Test
@@ -136,8 +136,8 @@ public class TagActionTest extends LocalRepositoryTestCase {
.setText("Here's the first message");
tagDialog.bot().button(UIText.CreateTagDialog_CreateTagButton).click();
waitInUI();
- assertTrue(lookupRepository(repositoryFile).getTags().keySet()
- .contains("MessageChangeTag"));
+ assertNotNull(lookupRepository(repositoryFile)
+ .exactRef(Constants.R_TAGS + "MessageChangeTag"));
tagDialog = openTagDialog();
tagDialog.bot().tableWithLabel(UIText.CreateTagDialog_existingTags)
.getTableItem("MessageChangeTag").select();

Back to the top