mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-31 17:39:05 +00:00
[MNT-21818] Perform cache cleaning after each test is run
This commit is contained in:
@@ -346,4 +346,9 @@ public interface FilePlanService
|
||||
*/
|
||||
NodeRef createRecordCategory(NodeRef parent, String name, Map<QName, Serializable> properties);
|
||||
|
||||
/**
|
||||
* Clears the records management root node cache
|
||||
*/
|
||||
void clearRootRecordsManagementCache();
|
||||
|
||||
}
|
||||
|
@@ -177,6 +177,14 @@ public class FilePlanServiceImpl extends ServiceBaseImpl
|
||||
this.rootContainerCache = rootContainerCache;
|
||||
}
|
||||
|
||||
/**
|
||||
* @see org.alfresco.module.org_alfresco_module_rm.fileplan.FilePlanService#clearRootRecordsManagementCache()
|
||||
*/
|
||||
public void clearRootRecordsManagementCache()
|
||||
{
|
||||
this.rootContainerCache.clear();
|
||||
}
|
||||
|
||||
/**
|
||||
* @param rootRecordsManagementCache root records management node cache
|
||||
*/
|
||||
|
@@ -458,6 +458,11 @@ public abstract class BaseRMTestCase extends RetryingTransactionHelperTestCase
|
||||
filter.disableBehaviour();
|
||||
try
|
||||
{
|
||||
if (filePlanService != null)
|
||||
{
|
||||
filePlanService.clearRootRecordsManagementCache();
|
||||
}
|
||||
|
||||
if (filePlan != null && nodeService.exists(filePlan))
|
||||
{
|
||||
List<NodeRef> holds = holdService.getHolds(filePlan);
|
||||
|
Reference in New Issue
Block a user