Skip to content

TestPropertyProvider implemented at test class does not call getProperties() implemenation on the test #1233

@sdedic

Description

@sdedic

Expected Behavior

According to the javadoc documentation and e.g. to test in micronaut core, implementing io.micronaut.test.support.TestPropertyProvider ought call getProperties() on the instance.

Actual Behaviour

getProperties() is not called before test method execution

Steps To Reproduce

  1. Clone https://github.com/sdedic/micronaut-dbbugs2/tree/value_annotation_inconsistent, branch value_annotation_inconsistent
  2. Look up PropertyExampleTest
  3. run testGetPropertiesCalled

Environment Information

  • Ubuntu Linux 22.04
  • JDK 21

Example Application

https://github.com/sdedic/micronaut-dbbugs2/tree/value_annotation_inconsistent

Version

4.7.6

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions