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

ClassContextImpl is not active during TestNG @BeforeMethod

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • 1.1.1.Final
    • Base Implementation
    • None

      When I call this Arquillian Graphene's method in method annotated with TestNG @BeforeMethod, then it is not possible to get Graphene's configuration.

      On this line, configuration.get() returns null.

      The configuration should be retrieved from Instance<GrapheneConfiguration>. However, it is not.

      When I compare this to JUnit @Before, I came to this:
      At ManagerImpl.java here, the configuration is retrieved from context ClassContextImpl.

      However, that context is not marked as active when executing from TestNG (among the others contexts).

            Unassigned Unassigned
            jhuska_jira Juraj Húska (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: