[JBoss JIRA] Created: (DNA-472) Reduce Code Duplication for Test Setup
by Brian Carothers (JIRA)
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
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
14 years, 10 months