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

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

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • 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

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated: