mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
Unit test were failing (NoSuchBeanDefinitionException)
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/HEAD@46935 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -24,17 +24,17 @@ import org.alfresco.module.org_alfresco_module_rm.event.RecordsManagementEvent;
|
|||||||
import org.alfresco.module.org_alfresco_module_rm.event.RecordsManagementEventService;
|
import org.alfresco.module.org_alfresco_module_rm.event.RecordsManagementEventService;
|
||||||
import org.alfresco.module.org_alfresco_module_rm.event.RecordsManagementEventType;
|
import org.alfresco.module.org_alfresco_module_rm.event.RecordsManagementEventType;
|
||||||
import org.alfresco.module.org_alfresco_module_rm.model.RecordsManagementModel;
|
import org.alfresco.module.org_alfresco_module_rm.model.RecordsManagementModel;
|
||||||
|
import org.alfresco.module.org_alfresco_module_rm.test.util.BaseRMTestCase;
|
||||||
import org.alfresco.repo.security.authentication.AuthenticationUtil;
|
import org.alfresco.repo.security.authentication.AuthenticationUtil;
|
||||||
import org.alfresco.repo.transaction.RetryingTransactionHelper;
|
import org.alfresco.repo.transaction.RetryingTransactionHelper;
|
||||||
import org.alfresco.service.cmr.repository.StoreRef;
|
import org.alfresco.service.cmr.repository.StoreRef;
|
||||||
import org.alfresco.util.BaseSpringTest;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Event service implementation unit test
|
* Event service implementation unit test
|
||||||
*
|
*
|
||||||
* @author Roy Wetherall
|
* @author Roy Wetherall
|
||||||
*/
|
*/
|
||||||
public class RecordsManagementEventServiceImplTest extends BaseSpringTest implements RecordsManagementModel
|
public class RecordsManagementEventServiceImplTest extends BaseRMTestCase implements RecordsManagementModel
|
||||||
{
|
{
|
||||||
protected static StoreRef SPACES_STORE = new StoreRef(StoreRef.PROTOCOL_WORKSPACE, "SpacesStore");
|
protected static StoreRef SPACES_STORE = new StoreRef(StoreRef.PROTOCOL_WORKSPACE, "SpacesStore");
|
||||||
|
|
||||||
@@ -42,9 +42,9 @@ public class RecordsManagementEventServiceImplTest extends BaseSpringTest implem
|
|||||||
private RetryingTransactionHelper transactionHelper;
|
private RetryingTransactionHelper transactionHelper;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void onSetUpInTransaction() throws Exception
|
protected void setUp() throws Exception
|
||||||
{
|
{
|
||||||
super.onSetUpInTransaction();
|
super.setUp();
|
||||||
|
|
||||||
// Get the service required in the tests
|
// Get the service required in the tests
|
||||||
this.rmEventService = (RecordsManagementEventService)this.applicationContext.getBean("RecordsManagementEventService");
|
this.rmEventService = (RecordsManagementEventService)this.applicationContext.getBean("RecordsManagementEventService");
|
||||||
@@ -56,9 +56,6 @@ public class RecordsManagementEventServiceImplTest extends BaseSpringTest implem
|
|||||||
|
|
||||||
public void testGetEventTypes()
|
public void testGetEventTypes()
|
||||||
{
|
{
|
||||||
setComplete();
|
|
||||||
endTransaction();
|
|
||||||
|
|
||||||
transactionHelper.doInTransaction(new RetryingTransactionHelper.RetryingTransactionCallback<Void>()
|
transactionHelper.doInTransaction(new RetryingTransactionHelper.RetryingTransactionCallback<Void>()
|
||||||
{
|
{
|
||||||
public Void execute() throws Throwable
|
public Void execute() throws Throwable
|
||||||
@@ -76,9 +73,6 @@ public class RecordsManagementEventServiceImplTest extends BaseSpringTest implem
|
|||||||
|
|
||||||
public void testGetEvents()
|
public void testGetEvents()
|
||||||
{
|
{
|
||||||
setComplete();
|
|
||||||
endTransaction();
|
|
||||||
|
|
||||||
transactionHelper.doInTransaction(new RetryingTransactionHelper.RetryingTransactionCallback<Void>()
|
transactionHelper.doInTransaction(new RetryingTransactionHelper.RetryingTransactionCallback<Void>()
|
||||||
{
|
{
|
||||||
public Void execute() throws Throwable
|
public Void execute() throws Throwable
|
||||||
@@ -96,9 +90,6 @@ public class RecordsManagementEventServiceImplTest extends BaseSpringTest implem
|
|||||||
|
|
||||||
public void testAddRemoveEvents()
|
public void testAddRemoveEvents()
|
||||||
{
|
{
|
||||||
setComplete();
|
|
||||||
endTransaction();
|
|
||||||
|
|
||||||
transactionHelper.doInTransaction(new RetryingTransactionHelper.RetryingTransactionCallback<Void>()
|
transactionHelper.doInTransaction(new RetryingTransactionHelper.RetryingTransactionCallback<Void>()
|
||||||
{
|
{
|
||||||
public Void execute() throws Throwable
|
public Void execute() throws Throwable
|
||||||
|
Reference in New Issue
Block a user