[
https://issues.jboss.org/browse/ARQ-1070?page=com.atlassian.jira.plugin.s...
]
Gerrit Hohl commented on ARQ-1070:
----------------------------------
I'm using arquillian-junit-container. And it also doesn't execute the
@BeforeClass, @Before, @After and @AfterClass annotated methods of my test. Yes, I have an
@Deployment annotated method. But still it would be nice if these methods would still work
the way you would expect it from a JUnit test.
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
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 was sent by Atlassian JIRA
(v7.2.3#72005)