+
Skip to content

@AfterExample triggered for wrong example #246

Closed
@nigelcharman

Description

@nigelcharman

When using the @AfterExample annotation, the initial instance of the fixture is used, rather than the instance relating to the specific example. This is visible with the per_example_parallel branch of concordion-scope-examples.

The cause appears to be since the listener is created once for all examples in ConcordionBuilder:

        FixtureExampleHook fixtureExampleHook = new FixtureExampleHook(fixture);
        withOuterExampleListener(fixtureExampleHook);
        withExampleListener(fixtureExampleHook);

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载