diff options
author | Thomas Wolf | 2019-03-16 21:45:17 +0000 |
---|---|---|
committer | Thomas Wolf | 2019-03-16 21:45:17 +0000 |
commit | b385340dae9e2b715fe8e10e3c98ed5c698e28bf (patch) | |
tree | 295a763ae428d18b06179d8d4e3760794d9f70c9 /org.eclipse.egit.ui.test/src/org/eclipse | |
parent | df545e2b32e999d98b8f9240360744491a2797c4 (diff) | |
download | egit-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/org/eclipse')
-rw-r--r-- | org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/test/team/actions/TagActionTest.java | 10 |
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 28f7de1935..fce9cb21a7 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(); |