[jboss-jira] [JBoss JIRA] Created: (JBCACHE-822) Reconsider validation of EvictionPolicyConfig objects

Brian Stansberry (JIRA) jira-events at jboss.com
Fri Oct 27 14:56:42 EDT 2006


Reconsider validation of EvictionPolicyConfig objects
-----------------------------------------------------

                 Key: JBCACHE-822
                 URL: http://jira.jboss.com/jira/browse/JBCACHE-822
             Project: JBoss Cache
          Issue Type: Sub-task
      Security Level: Public (Everyone can see)
            Reporter: Brian Stansberry
         Assigned To: Manik Surtani


In the legacy code, various impls of EvictionConfiguration would validate input during calls to parseXmlConfig.  Problem is that if a config was instantiated and configured programatically, no validation occurred. Further the old parseXmlConfig validations basically just tested whether a configuration element was present, not whether it had a reasonable value.  

The new validate() methods really should just test for reasonable values; whether the value was configured externally or was there by default is irrelevant.

Main task here is to remove some old unit tests that checked whether a value was set or not during xml parsing and replace with tests that check whether the reasonable value requirement is enforced.

Probably will do this after alpha.

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

        



More information about the jboss-jira mailing list