[dna-issues] [JBoss JIRA] Resolved: (DNA-472) Reduce Code Duplication for Test Setup
Brian Carothers (JIRA)
jira-events at lists.jboss.org
Sat Jul 4 09:18:02 EDT 2009
[ https://jira.jboss.org/jira/browse/DNA-472?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Brian Carothers resolved DNA-472.
---------------------------------
Fix Version/s: 0.6
Resolution: Done
Assignee: Brian Carothers
Committed patch to resolve defect
> 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
> Assignee: Brian Carothers
> Priority: Trivial
> Fix For: 0.6
>
> 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
More information about the dna-issues
mailing list