Author: rhopp
Date: 2012-06-28 05:40:08 -0400 (Thu, 28 Jun 2012)
New Revision: 42274
Modified:
trunk/central/tests/org.jboss.tools.central.test.ui.bot/src/org/jboss/tools/central/test/ui/bot/CreateProjectsWithServerTest.java
Log:
Fix for Spring MVC project readme & closing Problems view.
Modified:
trunk/central/tests/org.jboss.tools.central.test.ui.bot/src/org/jboss/tools/central/test/ui/bot/CreateProjectsWithServerTest.java
===================================================================
---
trunk/central/tests/org.jboss.tools.central.test.ui.bot/src/org/jboss/tools/central/test/ui/bot/CreateProjectsWithServerTest.java 2012-06-28
00:11:53 UTC (rev 42273)
+++
trunk/central/tests/org.jboss.tools.central.test.ui.bot/src/org/jboss/tools/central/test/ui/bot/CreateProjectsWithServerTest.java 2012-06-28
09:40:08 UTC (rev 42274)
@@ -139,7 +139,7 @@
checkExample(null, IDELabel.JBossCentralEditor.JAVA_EE_PROJECT, true);
checkExample(null, IDELabel.JBossCentralEditor.HTML5_PROJECT, true);
checkExample(null, IDELabel.JBossCentralEditor.RICHFACES_PROJECT, true);
- checkExample(null, IDELabel.JBossCentralEditor.SPRING_MVC_PROJECT, false);
+ checkExample(null, IDELabel.JBossCentralEditor.SPRING_MVC_PROJECT, true);
bot.toolbarDropDownButtonWithTooltip("New").click();
bot.waitForShell("New");
@@ -177,8 +177,13 @@
bot.viewByTitle("Project Explorer").close();
}catch (WidgetNotFoundException ex){
//do nothing
- log.info("Project Explorer is already closed");
+ log.info("Project Explorer is already closed");
}
+ try {
+ bot.viewByTitle("Problems").close();
+ }catch (WidgetNotFoundException ex){
+ //let be...
+ }
String serverName = bot.tree().getAllItems()[0].getText().substring(0,
bot.tree().getAllItems()[0].getText().indexOf(' '));
servers.findServerByName(servers.bot().tree(), serverName).contextMenu("Add and
Remove...").click();
bot.shell("Add and Remove...").activate();
@@ -277,7 +282,7 @@
bot.activeView().close();
}else if (readmeText.toLowerCase().contains("readme.md") ||
readmeText.toLowerCase().contains("readme.txt")){
bot.clickButton("Finish");
- //assertTrue("Readme should have opened in Text Editor",
bot.activeEditor().getReference().getEditor(false).getClass().getName().contains("org.eclipse.ui.editors.text.TextEditor"));
//because readmes are opening in browser now.. It's a bug. Jira is created.
+ assertTrue("Readme should have opened in Text Editor",
bot.activeEditor().getReference().getEditor(false).getClass().getName().contains("org.eclipse.ui.editors.text.TextEditor"));
//because readmes are opening in browser now.. It's a bug. Jira is created.
bot.activeEditor().close();
}else if (readmeText.toLowerCase().contains("readme.htm")){
bot.clickButton("Finish");
Show replies by date