diff --git a/source/java/org/alfresco/repo/web/scripts/RepositoryContainer.java b/source/java/org/alfresco/repo/web/scripts/RepositoryContainer.java index a0bc951686..3f210135d6 100644 --- a/source/java/org/alfresco/repo/web/scripts/RepositoryContainer.java +++ b/source/java/org/alfresco/repo/web/scripts/RepositoryContainer.java @@ -561,8 +561,16 @@ public class RepositoryContainer extends AbstractRuntimeContainer implements Ten @Override public void reset() { - destroy(); - init(); + retryingTransactionHelper.doInTransaction(new RetryingTransactionCallback() + { + public Object execute() throws Exception + { + destroy(); + init(); + + return null; + } + }, true, false); } /* (non-Javadoc) diff --git a/source/java/org/alfresco/repo/web/scripts/forms/AllFormTests.java b/source/java/org/alfresco/repo/web/scripts/forms/AllFormTests.java new file mode 100644 index 0000000000..f67cc9a762 --- /dev/null +++ b/source/java/org/alfresco/repo/web/scripts/forms/AllFormTests.java @@ -0,0 +1,51 @@ +/* + * Copyright (C) 2005-2011 Alfresco Software Limited. + * + * This file is part of Alfresco + * + * Alfresco is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * Alfresco is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with Alfresco. If not, see . + */ +package org.alfresco.repo.web.scripts.forms; + +import org.alfresco.repo.forms.FormService; +import org.alfresco.repo.forms.FormServiceImplTest; +import org.alfresco.repo.forms.processor.action.ActionFormProcessorTest; +import org.alfresco.repo.forms.processor.node.FieldProcessorTest; +import org.alfresco.repo.forms.processor.workflow.TaskFormProcessorTest; +import org.alfresco.repo.forms.processor.workflow.WorkflowFormProcessorTest; +import org.junit.runner.RunWith; +import org.junit.runners.Suite; + +/** + * This class is a holder for the various test classes associated with the {@link FormService}. + * It is not (at the time of writing) intended to be incorporated into the automatic build + * which will find the various test classes and run them individually. + * + * @author Neil McErlean + * @since 4.0 + */ +@RunWith(Suite.class) +@Suite.SuiteClasses({ + FormServiceImplTest.class, + FieldProcessorTest.class, + TaskFormProcessorTest.class, + WorkflowFormProcessorTest.class, + ActionFormProcessorTest.class, + FormRestApiGet_Test.class, + FormRestApiJsonPost_Test.class +}) +public class AllFormTests +{ + // Intentionally empty +}