softwareonastring.com
How can you check a validation method is called if it just returns an error code
The strategy laid out in Testing strategy for validation and action methods calls for a single test per action method, to show that it actually calls the validation method. With an exception throwi…