Author: dvinnichek
Date: 2010-09-23 08:44:53 -0400 (Thu, 23 Sep 2010)
New Revision: 25123
Modified:
trunk/jst/tests/org.jboss.tools.jst.web.ui.test/src/org/jboss/tools/jst/web/ui/test/WebWizardsTest.java
Log:
fix for
org.jboss.tools.jst.web.ui.test.WebWizardsTest.testNewXhtmlWizardInstanceIsCreated()
(
https://jira.jboss.org/browse/JBIDE-7109)
Modified:
trunk/jst/tests/org.jboss.tools.jst.web.ui.test/src/org/jboss/tools/jst/web/ui/test/WebWizardsTest.java
===================================================================
---
trunk/jst/tests/org.jboss.tools.jst.web.ui.test/src/org/jboss/tools/jst/web/ui/test/WebWizardsTest.java 2010-09-23
12:04:13 UTC (rev 25122)
+++
trunk/jst/tests/org.jboss.tools.jst.web.ui.test/src/org/jboss/tools/jst/web/ui/test/WebWizardsTest.java 2010-09-23
12:44:53 UTC (rev 25123)
@@ -87,7 +87,10 @@
assertEquals("The Page should be","HTMLWizardNewFileCreationPage",
htmlWizardNewFileCreationPage.getName()); //$NON-NLS-1$//$NON-NLS-2$
IWizardPage newXHTMLTemplatesWizardPage=htmlWizardNewFileCreationPage.getNextPage();
assertEquals("The Page should be","NewXHTMLTemplatesWizardPage",
newXHTMLTemplatesWizardPage.getName()); //$NON-NLS-1$//$NON-NLS-2$
- assertTrue("Start page is not
loaded",newXHTMLTemplatesWizardPage.getNextPage() instanceof DefaultStandardStep);
//$NON-NLS-1$
+ if (newXHTMLTemplatesWizardPage.canFlipToNextPage()) {
+ IWizardPage newXHTMLTagLibrariesWizardPage =
newXHTMLTemplatesWizardPage.getNextPage();
+ assertTrue("Start page is not loaded", newXHTMLTagLibrariesWizardPage
instanceof DefaultStandardStep); //$NON-NLS-1$
+ }
} finally {
dialog.close();
}