tea
tea copied to clipboard
Feature: Testing validators in a best practice way
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.