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

TestEnricher should be called in @BeforeClass

XMLWordPrintable

      The TestEnricher API could be extended such that static fields can be initialized.

      @Inject
      public static BundleContext context;

      @BeforeClass
      public static void beforeClass()

      { System.out.println("BeforeClass: " + context); }

      There would be two calls to TestEnricher.

      #1 After test class load, but before a call to @BeforeClass.
      #2 After instantiation of the test class, but before a call to @Before

      (#2 is the current behaviour)

              aslak@redhat.com Aslak Knutsen
              tdiesler@redhat.com Thomas Diesler
              Votes:
              4 Vote for this issue
              Watchers:
              8 Start watching this issue

                Created:
                Updated:
                Resolved: