Skip to content

test: align test models with null-marked defaults#258

Merged
zantvoort merged 1 commit into
mainfrom
test/null-marked-test-alignment
Jul 14, 2026
Merged

test: align test models with null-marked defaults#258
zantvoort merged 1 commit into
mainfrom
test/null-marked-test-alignment

Conversation

@zantvoort

Copy link
Copy Markdown
Collaborator

Summary

Follow-up to #257 (null-marked models by default). Now that record components are
non-null unless annotated, several test models that relied on implicit nullability
no longer compile/validate as intended. This aligns them with the new contract.

Changes

  • Annotate firstName/lastName on Vet and Owner, and address/city on
    Address, with @Nullable in the schema validator tests for H2, MariaDB, MySQL,
    MSSQLServer, Oracle, PostgreSQL, and SQLite.
  • Pass a non-null Instant.now() (instead of null) for the Visit timestamp in
    SpringTransactionBridgeTest.

Test-only; no production code affected.

Following #257 (null-marked models by default), record components that were
implicitly nullable now require explicit @nullable. Annotate the Vet, Address,
and Owner records in the H2/MariaDB/MySQL/MSSQLServer/Oracle/PostgreSQL/SQLite
schema validator tests, and pass a non-null Instant for Visit inserts in the
Spring transaction bridge test.
@zantvoort zantvoort merged commit df2a928 into main Jul 14, 2026
6 checks passed
@zantvoort zantvoort deleted the test/null-marked-test-alignment branch July 14, 2026 13:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant