mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-24 17:32:48 +00:00
Fallout from Spring upgrade
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@2138 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -102,7 +102,7 @@ public class RoutingContentServiceTest extends BaseSpringTest
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void onTearDownInTransaction()
|
protected void onTearDownInTransaction() throws Exception
|
||||||
{
|
{
|
||||||
authenticationComponent.clearCurrentSecurityContext();
|
authenticationComponent.clearCurrentSecurityContext();
|
||||||
super.onTearDownInTransaction();
|
super.onTearDownInTransaction();
|
||||||
|
@@ -56,7 +56,6 @@ import org.alfresco.service.namespace.NamespaceService;
|
|||||||
import org.alfresco.service.namespace.QName;
|
import org.alfresco.service.namespace.QName;
|
||||||
import org.alfresco.service.namespace.RegexQNamePattern;
|
import org.alfresco.service.namespace.RegexQNamePattern;
|
||||||
import org.alfresco.util.BaseSpringTest;
|
import org.alfresco.util.BaseSpringTest;
|
||||||
import org.alfresco.util.debug.NodeStoreInspector;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Node operations service unit tests
|
* Node operations service unit tests
|
||||||
@@ -226,7 +225,7 @@ public class CopyServiceImplTest extends BaseSpringTest
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void onTearDownInTransaction()
|
protected void onTearDownInTransaction() throws Exception
|
||||||
{
|
{
|
||||||
authenticationComponent.clearCurrentSecurityContext();
|
authenticationComponent.clearCurrentSecurityContext();
|
||||||
super.onTearDownInTransaction();
|
super.onTearDownInTransaction();
|
||||||
|
@@ -55,7 +55,7 @@ public class DescriptorServiceTest extends BaseSpringTest
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void onTearDownInTransaction()
|
protected void onTearDownInTransaction() throws Exception
|
||||||
{
|
{
|
||||||
authenticationComponent.clearCurrentSecurityContext();
|
authenticationComponent.clearCurrentSecurityContext();
|
||||||
super.onTearDownInTransaction();
|
super.onTearDownInTransaction();
|
||||||
|
@@ -73,7 +73,7 @@ public class ExporterComponentTest extends BaseSpringTest
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void onTearDownInTransaction()
|
protected void onTearDownInTransaction() throws Exception
|
||||||
{
|
{
|
||||||
authenticationComponent.clearCurrentSecurityContext();
|
authenticationComponent.clearCurrentSecurityContext();
|
||||||
super.onTearDownInTransaction();
|
super.onTearDownInTransaction();
|
||||||
|
@@ -61,7 +61,7 @@ public class ImporterComponentTest extends BaseSpringTest
|
|||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void onTearDownInTransaction()
|
protected void onTearDownInTransaction() throws Exception
|
||||||
{
|
{
|
||||||
authenticationComponent.clearCurrentSecurityContext();
|
authenticationComponent.clearCurrentSecurityContext();
|
||||||
super.onTearDownInTransaction();
|
super.onTearDownInTransaction();
|
||||||
|
@@ -55,7 +55,6 @@ import org.alfresco.service.cmr.repository.NodeRef;
|
|||||||
import org.alfresco.service.cmr.repository.NodeService;
|
import org.alfresco.service.cmr.repository.NodeService;
|
||||||
import org.alfresco.service.cmr.repository.Path;
|
import org.alfresco.service.cmr.repository.Path;
|
||||||
import org.alfresco.service.cmr.repository.StoreRef;
|
import org.alfresco.service.cmr.repository.StoreRef;
|
||||||
import org.alfresco.service.cmr.security.AuthenticationService;
|
|
||||||
import org.alfresco.service.namespace.NamespaceService;
|
import org.alfresco.service.namespace.NamespaceService;
|
||||||
import org.alfresco.service.namespace.QName;
|
import org.alfresco.service.namespace.QName;
|
||||||
import org.alfresco.service.namespace.RegexQNamePattern;
|
import org.alfresco.service.namespace.RegexQNamePattern;
|
||||||
@@ -158,7 +157,7 @@ public abstract class BaseNodeServiceTest extends BaseSpringTest
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void onTearDownInTransaction()
|
protected void onTearDownInTransaction() throws Exception
|
||||||
{
|
{
|
||||||
authenticationComponent.clearCurrentSecurityContext();
|
authenticationComponent.clearCurrentSecurityContext();
|
||||||
super.onTearDownInTransaction();
|
super.onTearDownInTransaction();
|
||||||
|
@@ -136,7 +136,7 @@ public class BaseRuleTest extends BaseSpringTest
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void onTearDownInTransaction()
|
protected void onTearDownInTransaction() throws Exception
|
||||||
{
|
{
|
||||||
authenticationComponent.clearCurrentSecurityContext();
|
authenticationComponent.clearCurrentSecurityContext();
|
||||||
super.onTearDownInTransaction();
|
super.onTearDownInTransaction();
|
||||||
|
@@ -134,7 +134,7 @@ public class AbstractPermissionTest extends BaseSpringTest
|
|||||||
authenticationComponent.clearCurrentSecurityContext();
|
authenticationComponent.clearCurrentSecurityContext();
|
||||||
}
|
}
|
||||||
|
|
||||||
protected void onTearDownInTransaction()
|
protected void onTearDownInTransaction() throws Exception
|
||||||
{
|
{
|
||||||
flushAndClear();
|
flushAndClear();
|
||||||
super.onTearDownInTransaction();
|
super.onTearDownInTransaction();
|
||||||
|
@@ -59,7 +59,7 @@ public class PersonTest extends BaseSpringTest
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
protected void onTearDownInTransaction()
|
protected void onTearDownInTransaction() throws Exception
|
||||||
{
|
{
|
||||||
super.onTearDownInTransaction();
|
super.onTearDownInTransaction();
|
||||||
flushAndClear();
|
flushAndClear();
|
||||||
|
@@ -17,7 +17,6 @@
|
|||||||
package org.alfresco.util;
|
package org.alfresco.util;
|
||||||
|
|
||||||
import org.alfresco.repo.security.authentication.AuthenticationComponent;
|
import org.alfresco.repo.security.authentication.AuthenticationComponent;
|
||||||
import org.alfresco.repo.security.authentication.AuthenticationException;
|
|
||||||
import org.alfresco.service.cmr.action.ActionService;
|
import org.alfresco.service.cmr.action.ActionService;
|
||||||
import org.alfresco.service.cmr.repository.ContentService;
|
import org.alfresco.service.cmr.repository.ContentService;
|
||||||
import org.alfresco.service.cmr.repository.NodeRef;
|
import org.alfresco.service.cmr.repository.NodeRef;
|
||||||
@@ -85,7 +84,7 @@ public abstract class BaseAlfrescoSpringTest extends BaseSpringTest
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void onTearDownInTransaction()
|
protected void onTearDownInTransaction() throws Exception
|
||||||
{
|
{
|
||||||
authenticationService.clearCurrentSecurityContext();
|
authenticationService.clearCurrentSecurityContext();
|
||||||
super.onTearDownInTransaction();
|
super.onTearDownInTransaction();
|
||||||
|
Reference in New Issue
Block a user