mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
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:
@@ -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; }
|
||||
|
||||
|
@@ -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.
|
||||
*/
|
||||
|
Reference in New Issue
Block a user