Skip to content

Release 2.12.0

Compare
Choose a tag to compare
@Ragin-LundF Ragin-LundF released this 21 May 07:35
· 35 commits to main since this release
791cafc

Updated Libs

  • Spring Boot to 3.2.5
  • Cucumber Libs to 7.18.0
  • liquibase-core to 4.27.0

Features

Added a new default matcher (${json-unit.matches:isNotEqualTo}string) to compare, that a value is not equal to a given string.
The string can be anything after the closing bracket:

{ "string": "${json-unit.matches:isNotEqualTo}another string" }
  Scenario: Validate field with a string that it is not the value
    When executing a GET call to "/api/v1/fieldValidation"
    Then I ensure that the status code of the response is 200
    And I ensure that the body of the response is equal to
    """
      {
        "string": "${json-unit.matches:isNotEqualTo}another string",
        "number": 12,
        "boolean": true,
        "list": [
          "First",
          "Second"
        ],
        "object": {
          "firstname": "John",
          "lastname": "Doe"
        },
        "uuid": "${json-unit.matches:isValidUUID}",
        "objectList": [
          {
            "first": 1,
            "second": 2
          },
          {
            "first": 3,
            "second": 4
          }
        ]
      }
    """

See src/test/resources/features/body_validation/field_compare.feature