Skip to content

Treat unit test setup methods as constructors for UWF_FIELD_NOT_INITIALIZED_IN_CONSTRUCTOR #453

@ThrawnCA

Description

@ThrawnCA

JUnit and TestNG test classes typically initialise their fields within a setup method, rather than the constructor, which often results in UWF_FIELD_NOT_INITIALIZED_IN_CONSTRUCTOR. Can appropriately-annotated setup methods (@Before, @BeforeMethod, @BeforeClass) be treated as constructors for this purpose?

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