[
https://jira.jboss.org/jira/browse/DNA-472?page=com.atlassian.jira.plugin...
]
Brian Carothers updated DNA-472:
--------------------------------
Attachment: DNA-472.patch
Attached patch that sets up an abstract base class with hooks for customization on a per
test case basis. Net reduction of about 500 lines of repeated code in the test library.
Reduce Code Duplication for Test Setup
--------------------------------------
Key: DNA-472
URL:
https://jira.jboss.org/jira/browse/DNA-472
Project: DNA
Issue Type: Feature Request
Components: JCR, Testing
Affects Versions: 0.5
Reporter: Brian Carothers
Priority: Trivial
Attachments: DNA-472.patch
There are several tests that require substantial portions of the JCR layer to be
initialized in order to test their functionality. The amount of code needed to do the
initialization started out as a cut and paste of 15 or 20 lines but has grown into a near
cut and paste of about 70 lines plus the same 10 variables. Each time an argument is
added to a JcrWorkspace or JcrSession constructor, the code is getting changed in seven
files.
It would be helpful to have a base class that performs this initialization in standard
way to reduce code duplication.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira