Skip to content

tests are not strict enough #70

@jonenst

Description

@jonenst

webClient.get.expectBody(Toto.class) doesn't throw on missing fields, it just uses the default value of the bean, so for example for boolean values it defaults to false, which is our case was also the expected value.

This bug allowed a bug to slip in: the "private: false" field was missing entirely but the test still worked

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