Refactoring test code to separate it from BaseUnitTest. RM-2027. +review RM

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/HEAD@100172 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Neil McErlean
2015-03-26 15:07:28 +00:00
parent 40bfbb7cd4
commit 22ead45f3f
3 changed files with 74 additions and 39 deletions

View File

@@ -59,7 +59,17 @@ public class ClassificationServiceImpl extends ServiceBaseImpl
/** The classification reasons currently configured in this server. */
private List<ClassificationReason> configuredReasons;
private Configuration config = new Configuration(DEFAULT_LEVELS_FILE, DEFAULT_REASONS_FILE);
private final Configuration config;
public ClassificationServiceImpl()
{
this.config = new Configuration(DEFAULT_LEVELS_FILE, DEFAULT_REASONS_FILE);
}
ClassificationServiceImpl(Configuration config)
{
this.config = config;
}
public void setAttributeService(AttributeService service) { this.attributeService = service; }

View File

@@ -50,7 +50,7 @@ class Configuration
}
/**
* Gets the list (in descending order) of classification levels - as defined in the system configuration.
* Gets the list (in descending order) of classification levels - as defined in the classpath.
*
* @return the configured classification levels in descending order, or an empty list if there are none.
*/