Uploaded image for project: 'Arquillian'
  1. Arquillian
  2. ARQ-1070

Arquillian JUnit Standalone doesn't execute methods annotated by @Before annotation

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • 1.0.2.Final
    • Base Implementation
      1. download attached maven project
      2. execute AppTest
    • Workaround Exists
    • Hide

      You can use arquillian-junit-container and do not provide @Deployment

      Show
      You can use arquillian-junit-container and do not provide @Deployment

      The following test doesn't pass:

      @RunWith(Arquillian.class)
      public class AppTest {
      
          private boolean before = false;
      
          @Before
          public void before() {
              this.before = true;
          }
      
          @Test
          public void testBefore() {
              Assert.assertTrue(before);
          }
      }
      

      The same test without @RunWith annotation passes.

            Unassigned Unassigned
            jpapouse Jan Papousek (Inactive)
            Votes:
            3 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: