Refactoring version-specific validation code and documentation.

Description

(Imported from Google Code)
Now that there are five competing sets of allowed/banned elements/attributes in all of the classes, validate() methods are starting to become difficult to read and understand.

  • Need to refactor the code cleanly.

  • Need to update the validate() Javadoc with consistency.

  • Need to update the class header Javadoc with consistency.

Activity

Show:
Brian Uri
April 3, 2013, 1:44 PM

Finally complete in Rev 840.

Brian Uri
April 3, 2013, 12:27 AM

Rev 841 completes the summary package.

Brian Uri
April 2, 2013, 6:55 PM

Rev 836 - 840 update more tests.

Brian Uri
April 1, 2013, 12:33 PM

Rev 833 overhauls the format package of unit tests as an example. 137 fewer test code lines and equal coverage.

Brian Uri
April 1, 2013, 1:44 AM

Common Test List:

testNameAndNamespace()
testConstructors()
Element
Data via Builder
testConstructorsMinimal()
Element
Data via Builder
Element - Data via Builder equality
testValidationErrors()
(each error condition)
testValidationWarnings()
No warnings
(each warning condition)
testEquality()
Element - Data via Builder equality
(each field difference)
testOutput()
HTML
Text
XML
testVersionSpecific()
testBuilderIsEmpty()
Empty
Not Empty

Fixed

Assignee

Brian Uri

Reporter

Brian Uri

Labels

None

Fix versions

Priority

Medium