[hibernate-issues] [Hibernate-JIRA] Updated: (HV-52) unified unit testing pattern for standalone validators

Hardy Ferentschik (JIRA) noreply at atlassian.com
Thu Feb 12 09:05:40 EST 2009


     [ http://opensource.atlassian.com/projects/hibernate/browse/HV-52?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Hardy Ferentschik updated HV-52:
--------------------------------

    Component/s: legacy

Move issues into the legacy component since they are pre 3.x which is based on a different codebase

> unified unit testing pattern for standalone validators
> ------------------------------------------------------
>
>                 Key: HV-52
>                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HV-52
>             Project: Hibernate Validator
>          Issue Type: Patch
>          Components: legacy
>    Affects Versions: 3.0.0.ga
>            Reporter: Sanne Grinovero
>            Priority: Minor
>         Attachments: validator-testing-cleanup.patch
>
>
> Hi,
> I've seen some bugs in the validator I would like to help solving, but the main issue I've seen is that to
> write unittests the code is quite verbose; the consequence is that mission-critical code is well tested
> but most trivial code is untested.
> It looks like to me that most  JIRA issues here are relevant to this "untested trivial" code...
> I would appreciate if you could apply this patch that greatly simplifies writing of unit tests for standalone validators,
> as I would like to send some more patches using this code to develop test-first.
> This affects only the "test" source, diffed from 3.0.0.GA, and includes some new testing of 
> @NotEmpty and @Digits; I would add much more tests if you're not against it.
> With "standalone validators" i mean that this is not useful for graph/integration testing,
> just each validator on some property.
> Sanne

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the hibernate-issues mailing list