[jbosstools-issues] [JBoss JIRA] (JBIDE-9482) SelectionBarTest.testSelectionBarCommandState failure

Denis Maliarevich (Commented) (JIRA) jira-events at lists.jboss.org
Tue Oct 4 11:06:16 EDT 2011


    [ https://issues.jboss.org/browse/JBIDE-9482?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12632183#comment-12632183 ] 

Denis Maliarevich commented on JBIDE-9482:
------------------------------------------

But it fails locally, each other time. :(

The test checks the command state on the Preview tab. Therefor after switching to Preview some time is required for this tab to be rendered. 
My guess that the command's state check is performed before the rendering/update is finished. It causes the failure.

Thus "JobUtils.waitForIdle()" was added. Now the test is passed locally on my environment. Added delay time also prefents ocasionsl test failing on Jenkins.

                
> SelectionBarTest.testSelectionBarCommandState failure
> -----------------------------------------------------
>
>                 Key: JBIDE-9482
>                 URL: https://issues.jboss.org/browse/JBIDE-9482
>             Project: Tools (JBoss Tools)
>          Issue Type: Bug
>          Components: Visual Page Editor core
>    Affects Versions: 3.3.0.M3
>            Reporter: Alexey Kazakov
>            Assignee: Denis Maliarevich
>             Fix For: 3.3.0.M4
>
>
> {code}
> -------------------------------------------------------
>  T E S T S
> -------------------------------------------------------
> Running org.jboss.tools.jst.jsp.test.JstJspAllTests
> Tests run: 9, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 45.261 sec <<< FAILURE!
> testSelectionBarCommandState(org.jboss.tools.jst.jsp.test.selbar.SelectionBarTest)  Time elapsed: 3.541 sec  <<< FAILURE!
> junit.framework.AssertionFailedError: check command enabled command status expected:<true> but was:<false>
> 	at junit.framework.Assert.fail(Assert.java:47)
> 	at junit.framework.Assert.failNotEquals(Assert.java:283)
> 	at junit.framework.Assert.assertEquals(Assert.java:64)
> 	at junit.framework.Assert.assertEquals(Assert.java:143)
> 	at org.jboss.tools.jst.jsp.test.selbar.SelectionBarTest.testSelectionBarCommandState(SelectionBarTest.java:62)
> ...
> {code}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jbosstools-issues mailing list