[ 
https://issues.jboss.org/browse/WELD-1137?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Ron Šmeral resolved WELD-1137.
------------------------------

    Resolution: Done


Merged, closing.
                
> Some Weld ftests fail due to dependence between test methods
> ------------------------------------------------------------
>
>                 Key: WELD-1137
>                 URL: https://issues.jboss.org/browse/WELD-1137
>             Project: Weld
>          Issue Type: Bug
>          Components: Examples
>    Affects Versions: 1.1.8.Final
>         Environment: JBoss EAP 6.0.0.ER7, Weld 1.1.8.Final, Oracle JDK 
> 1.7.0_02, Solaris 10 x86
>            Reporter: Ron Šmeral
>
> {{PermalinkTest}} fails when executed on Solaris 10, even though it works in 
> other environments.
> {noformat}
> java.lang.AssertionError: A name of comment's author expected
>       at org.junit.Assert.fail(Assert.java:91)
>       at org.junit.Assert.assertTrue(Assert.java:43)
>       at 
> org.jboss.weld.examples.permalink.ftest.PermalinkTest.permanentLinkTest(PermalinkTest.java:104)
>       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>       at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>       at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>         ...
> {noformat}
> The test class contains two tests --  {{permanentLinkTest}} and 
> {{addCommentOnTopicTest}}.
> The {{permanentLinkTest}} fails when it's executed first, because its success 
> is contingent on content generated by {{addCommentOnTopicTest}}.
> Given that the order of test execution is arbitrary, {{permanentLinkTest}} 
> actually gets executed first sometimes.
> Thus, correct order of execution should be enforced, for example by 
> annotating the methods with {{@org.jboss.arquillian.junit.InSequence}} or by 
> eliminating dependence between test methods.

--
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

       

_______________________________________________
weld-issues mailing list
weld-issues@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/weld-issues

Reply via email to