Skip to content

tests property system.setProperty  #627

@jonenst

Description

@jonenst

should use @DynamicPropertySource
static void register(DynamicPropertyRegistry registry) {
registry.add("spring.elasticsearch.xxx", () -> yyy);

instead of System.setProperty

see https://github.com/powsybl/powsybl-case-server/pull/11/files#diff-36e0324746b1b66aaa0dfccba891937eb10b1ca4ff7661d3469afd5ef981f152R46

It's a better API to test things rather than hoping that we are the last do to system.setProperty before it is read

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions