use of org.eclipse.swtbot.eclipse.finder.widgets.SWTBotView in project egit by eclipse.
the class ShowInTest method testOpenRepoView.
@Test
public void testOpenRepoView() throws Exception {
try {
SWTBotView view = bot.viewById(RepositoriesView.VIEW_ID);
view.close();
} catch (Exception e) {
// ignore
}
SWTBotTree projectExplorerTree = TestUtil.getExplorerTree();
getProjectItem(projectExplorerTree, PROJ1).select();
String menuString = util.getPluginLocalizedValue("ShowRepositoryAction_label");
ContextMenuHelper.clickContextMenuSync(projectExplorerTree, "Team", menuString);
bot.viewById(RepositoriesView.VIEW_ID).close();
}
Aggregations