Skip to content

GraphQlTester Kotlin extensions do not allow null types in entity* specs #1424

@hameno

Description

@hameno

It seems like with Spring Boot 4.0 it became impossible to perform checks agains null values.

Example:

path("$.data.testConnection.edges.*.sortIndex").entityList<Number>().containsExactly(null)

The data for this is:

{
  "data": {
    "testConnection": {
      "edges": [
        {
          "sortIndex": null
        }
      ]
    }
  }
}

The field sortIndex is defined as

sortIndex: Int

Is this not possible anymore?

Metadata

Metadata

Assignees

Labels

in: testIssues related to the test moduletype: bugA general bug

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions