Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
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/commit/CommitEditorTest.java6
-rw-r--r--org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/test/history/HistoryViewTest.java4
2 files changed, 5 insertions, 5 deletions
diff --git a/org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/test/commit/CommitEditorTest.java b/org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/test/commit/CommitEditorTest.java
index 50fd4e4eb0..d2d373433c 100644
--- a/org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/test/commit/CommitEditorTest.java
+++ b/org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/test/commit/CommitEditorTest.java
@@ -66,7 +66,7 @@ public class CommitEditorTest extends LocalRepositoryTestCase {
@Test
public void openAllEditorPagesOnValidCommit() throws Exception {
- final AtomicReference<IEditorPart> editorRef = new AtomicReference<IEditorPart>();
+ final AtomicReference<IEditorPart> editorRef = new AtomicReference<>();
PlatformUI.getWorkbench().getDisplay().syncExec(new Runnable() {
@Override
@@ -98,7 +98,7 @@ public class CommitEditorTest extends LocalRepositoryTestCase {
@Test
public void showAnnotations() throws Exception {
- final AtomicReference<IEditorPart> editorRef = new AtomicReference<IEditorPart>();
+ final AtomicReference<IEditorPart> editorRef = new AtomicReference<>();
PlatformUI.getWorkbench().getDisplay().syncExec(new Runnable() {
@Override
@@ -110,7 +110,7 @@ public class CommitEditorTest extends LocalRepositoryTestCase {
});
assertNotNull(editorRef.get());
SWTBotEditor commitEditor = bot.activeEditor();
- SWTBotTable table = commitEditor.bot().table(0);
+ SWTBotTable table = commitEditor.bot().table(1);
assertTrue(table.rowCount() > 0);
table.select(0);
ContextMenuHelper.clickContextMenuSync(table,
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 dc2fbb0c0c..e03d0861aa 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
@@ -275,7 +275,7 @@ public class HistoryViewTest extends LocalRepositoryTestCase {
SWTBotTableItem item = table.getTableItem(0);
item.select();
ContextMenuHelper.clickContextMenu(table,
- UIText.GitHistoryPage_CreateBranchMenuLabel);
+ util.getPluginLocalizedValue("HistoryCreateBranch.label"));
SWTBotShell dialog = bot
.shell(UIText.CreateBranchWizard_NewBranchTitle);
dialog.bot().textWithId("BranchName").setText("NewBranch");
@@ -305,7 +305,7 @@ public class HistoryViewTest extends LocalRepositoryTestCase {
});
ContextMenuHelper.clickContextMenu(table,
- UIText.GitHistoryPage_CreateTagMenuLabel);
+ util.getPluginLocalizedValue("HistoryCreateTag.label"));
SWTBotShell dialog = bot.shell(UIText.CreateTagDialog_NewTag);
dialog.bot().textWithLabel(UIText.CreateTagDialog_tagName)
.setText("NewTag");

Back to the top