Skip to content

tests are not strict enough #70

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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