SEARCH-492 Investigate / fix issues with the test framework

- only load persisted models if the dictionary is empty
This commit is contained in:
ahind
2017-08-04 22:09:27 +01:00
parent 4010c14400
commit 47bc715da4
@@ -128,6 +128,11 @@ public class ModelTracker extends AbstractTracker implements Tracker
*/
private void loadPersistedModels()
{
if(AlfrescoSolrDataModel.getInstance().getAlfrescoModels().size() > 0)
{
return;
}
HashMap<String, M2Model> modelMap = new HashMap<String, M2Model>();
if (alfrescoModelDir.exists() && alfrescoModelDir.isDirectory())
{