[arquillian-issues] [JBoss JIRA] (ARQ-1250) arquillian-junit-standalone doesn't execute @Before

Lukáš Fryč (JIRA) jira-events at lists.jboss.org
Thu Dec 20 08:11:08 EST 2012


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

Lukáš Fryč updated ARQ-1250:
----------------------------

    Issue Type: Bug  (was: Feature Request)

    
> arquillian-junit-standalone doesn't execute @Before
> ---------------------------------------------------
>
>                 Key: ARQ-1250
>                 URL: https://issues.jboss.org/browse/ARQ-1250
>             Project: Arquillian
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>    Affects Versions: 1.0.3.Final
>            Reporter: Lukáš Fryč
>
> In following code, {{before()}} method won't be called at all:
> {code:java}
> @RunWith(Arquillian.class)
> public class BeforeTestCase {
>     private boolean initialized = false;
>     @Before
>     public void before() {
>         initialized = true;
>     }
>     @Test
>     public void test() {
>         Assert.assertTrue("@Before should have initialized test", initialized);
>     }
> }
> {code}
> {code:xml}
> <dependency>
>     <groupId>org.jboss.arquillian.junit</groupId>
>     <artifactId>arquillian-junit-standalone</artifactId>
>     <scope>test</scope>
> </dependency>
> {code}
> When changed to {{arquillian-junit-container}}, everything works fine.

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