[arquillian-issues] [JBoss JIRA] (ARQ-1070) Arquillian JUnit Standalone doesn't execute methods annotated by @Before annotation

Lukáš Fryč (JIRA) jira-events at lists.jboss.org
Tue Mar 12 11:05:42 EDT 2013


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

Lukáš Fryč commented on ARQ-1070:
---------------------------------

Alex, could you please try to discuss this problem on Dev forums - they are better suited for discussion: https://community.jboss.org/en/arquillian/dev
                
> Arquillian JUnit Standalone doesn't execute methods annotated by @Before annotation
> -----------------------------------------------------------------------------------
>
>                 Key: ARQ-1070
>                 URL: https://issues.jboss.org/browse/ARQ-1070
>             Project: Arquillian
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>          Components: Base Implementation
>    Affects Versions: 1.0.2.Final
>         Environment: Java(TM) SE Runtime Environment (build 1.7.0_04-b20)
>            Reporter: Jan Papousek
>              Labels: junit
>         Attachments: junit-sample.zip
>
>
> The following test doesn't pass:
> {code}
> @RunWith(Arquillian.class)
> public class AppTest {
>     private boolean before = false;
>     @Before
>     public void before() {
>         this.before = true;
>     }
>     @Test
>     public void testBefore() {
>         Assert.assertTrue(before);
>     }
> }
> {code}
> The same test without @RunWith annotation passes.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira



More information about the arquillian-issues mailing list