tea icon indicating copy to clipboard operation
tea copied to clipboard

Feature: Testing validators in a best practice way

Open Starkmann opened this issue 5 months ago • 0 comments

Goal

I would like to learn/have an example of how validators can tested.

Acceptance Criteria

  • [ ] Have fronted form for adding tea
  • [ ] Have validators in model/controller
  • [ ] Have a test for the annotation/registration of these validators

Additional Information

Of course the validator of its own can be tested as unit test. But the goal would be here to test if a model/dto has all validators and the are registered correctly. This can be done by annotation in model but also in as annotation in controller context. I'm thinking of a functional controller/model test.

Starkmann avatar Sep 24 '24 08:09 Starkmann