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:
Derek Hulley
2006-01-18 16:30:33 +00:00
parent 2ade4922f6
commit 572f151402
10 changed files with 10 additions and 13 deletions

View File

@@ -102,7 +102,7 @@ public class RoutingContentServiceTest extends BaseSpringTest
}
@Override
protected void onTearDownInTransaction()
protected void onTearDownInTransaction() throws Exception
{
authenticationComponent.clearCurrentSecurityContext();
super.onTearDownInTransaction();

View File

@@ -56,7 +56,6 @@ import org.alfresco.service.namespace.NamespaceService;
import org.alfresco.service.namespace.QName;
import org.alfresco.service.namespace.RegexQNamePattern;
import org.alfresco.util.BaseSpringTest;
import org.alfresco.util.debug.NodeStoreInspector;
/**
* Node operations service unit tests
@@ -226,7 +225,7 @@ public class CopyServiceImplTest extends BaseSpringTest
}
@Override
protected void onTearDownInTransaction()
protected void onTearDownInTransaction() throws Exception
{
authenticationComponent.clearCurrentSecurityContext();
super.onTearDownInTransaction();

View File

@@ -55,7 +55,7 @@ public class DescriptorServiceTest extends BaseSpringTest
}
@Override
protected void onTearDownInTransaction()
protected void onTearDownInTransaction() throws Exception
{
authenticationComponent.clearCurrentSecurityContext();
super.onTearDownInTransaction();

View File

@@ -73,7 +73,7 @@ public class ExporterComponentTest extends BaseSpringTest
}
@Override
protected void onTearDownInTransaction()
protected void onTearDownInTransaction() throws Exception
{
authenticationComponent.clearCurrentSecurityContext();
super.onTearDownInTransaction();

View File

@@ -61,7 +61,7 @@ public class ImporterComponentTest extends BaseSpringTest
@Override
protected void onTearDownInTransaction()
protected void onTearDownInTransaction() throws Exception
{
authenticationComponent.clearCurrentSecurityContext();
super.onTearDownInTransaction();

View File

@@ -55,7 +55,6 @@ import org.alfresco.service.cmr.repository.NodeRef;
import org.alfresco.service.cmr.repository.NodeService;
import org.alfresco.service.cmr.repository.Path;
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.QName;
import org.alfresco.service.namespace.RegexQNamePattern;
@@ -158,7 +157,7 @@ public abstract class BaseNodeServiceTest extends BaseSpringTest
}
@Override
protected void onTearDownInTransaction()
protected void onTearDownInTransaction() throws Exception
{
authenticationComponent.clearCurrentSecurityContext();
super.onTearDownInTransaction();

View File

@@ -136,7 +136,7 @@ public class BaseRuleTest extends BaseSpringTest
}
@Override
protected void onTearDownInTransaction()
protected void onTearDownInTransaction() throws Exception
{
authenticationComponent.clearCurrentSecurityContext();
super.onTearDownInTransaction();

View File

@@ -134,7 +134,7 @@ public class AbstractPermissionTest extends BaseSpringTest
authenticationComponent.clearCurrentSecurityContext();
}
protected void onTearDownInTransaction()
protected void onTearDownInTransaction() throws Exception
{
flushAndClear();
super.onTearDownInTransaction();

View File

@@ -59,7 +59,7 @@ public class PersonTest extends BaseSpringTest
}
protected void onTearDownInTransaction()
protected void onTearDownInTransaction() throws Exception
{
super.onTearDownInTransaction();
flushAndClear();

View File

@@ -17,7 +17,6 @@
package org.alfresco.util;
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.repository.ContentService;
import org.alfresco.service.cmr.repository.NodeRef;
@@ -85,7 +84,7 @@ public abstract class BaseAlfrescoSpringTest extends BaseSpringTest
}
@Override
protected void onTearDownInTransaction()
protected void onTearDownInTransaction() throws Exception
{
authenticationService.clearCurrentSecurityContext();
super.onTearDownInTransaction();