diff --git a/source/test-java/org/alfresco/repo/dictionary/DictionaryModelTypeTest.java b/source/test-java/org/alfresco/repo/dictionary/DictionaryModelTypeTest.java index 3bd9fed846..bf4d4cdf84 100644 --- a/source/test-java/org/alfresco/repo/dictionary/DictionaryModelTypeTest.java +++ b/source/test-java/org/alfresco/repo/dictionary/DictionaryModelTypeTest.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2005-2015 Alfresco Software Limited. + * Copyright (C) 2005-2014 Alfresco Software Limited. * * This file is part of Alfresco * @@ -935,6 +935,7 @@ public class DictionaryModelTypeTest extends BaseAlfrescoSpringTest /** * Test for MNT-11653 */ + @SuppressWarnings("deprecation") public void testOverrideMandatoryProperty() { try @@ -991,5 +992,25 @@ public class DictionaryModelTypeTest extends BaseAlfrescoSpringTest return node; } }); + + transactionService.getRetryingTransactionHelper().doInTransaction(new RetryingTransactionCallback() + { + public Object execute() throws Exception + { + // Delete the node + DictionaryModelTypeTest.this.nodeService.deleteNode(node1); + return null; + } + }); + + transactionService.getRetryingTransactionHelper().doInTransaction(new RetryingTransactionCallback() + { + public Object execute() throws Exception + { + // Delete the model + DictionaryModelTypeTest.this.nodeService.deleteNode(modelNode); + return null; + } + }); } }