Skip to content

URF_UNREAD_FIELD: should be ignored on test class fields annotated with JUnit5's @RegisterExtension #574

@hanleyt

Description

@hanleyt

JUnit 5.1 allows you to register an extension programmatically by adding a field to your class as shown below. Similiar to JUnit4s Rule/ClassRule.

@RegisterExtension
JerseyExtension jerseyExtension = new JerseyExtension(this::configureJersey);

(apologies I haven't yet had a chance to add a failing test for this)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions