mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
Fixed ALF-10333: Publishing: Multiple publishing events are processed sequentially rather than in parallel
Publishing: Remove some operations from the Channel and ChannelType interface that really shouldn't be exposed. Also removed the PublishingQueue interface - the two operations it had are now on the PublishingService. WQS: Removed obsolete references to publishing channels. git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@30794 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -158,9 +158,9 @@ public class PublishingTestHelper
|
||||
}
|
||||
}
|
||||
|
||||
public ChannelType mockChannelType(String channelTypeId)
|
||||
public AbstractChannelType mockChannelType(String channelTypeId)
|
||||
{
|
||||
ChannelType channelType = channelService.getChannelType(channelTypeId);
|
||||
AbstractChannelType channelType = (AbstractChannelType) channelService.getChannelType(channelTypeId);
|
||||
if (channelType != null)
|
||||
{
|
||||
reset(channelType);
|
||||
@@ -168,7 +168,7 @@ public class PublishingTestHelper
|
||||
}
|
||||
else
|
||||
{
|
||||
channelType = mock(ChannelType.class);
|
||||
channelType = mock(AbstractChannelType.class);
|
||||
when(channelType.getId()).thenReturn(channelTypeId);
|
||||
channelService.register(channelType);
|
||||
}
|
||||
@@ -224,8 +224,7 @@ public class PublishingTestHelper
|
||||
|
||||
public String scheduleEvent(PublishingDetails details)
|
||||
{
|
||||
PublishingQueue queue = publishingService.getPublishingQueue();
|
||||
String eventId = queue.scheduleNewEvent(details);
|
||||
String eventId = publishingService.scheduleNewEvent(details);
|
||||
events.add(eventId);
|
||||
return eventId;
|
||||
}
|
||||
|
Reference in New Issue
Block a user