mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
Fixed several failing Publishing tests.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@28961 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -43,6 +43,7 @@ import org.alfresco.util.BaseSpringTest;
|
||||
import org.alfresco.util.GUID;
|
||||
import org.junit.After;
|
||||
import org.junit.Before;
|
||||
import org.mockito.Mockito;
|
||||
|
||||
/**
|
||||
* @author Nick Smith
|
||||
@@ -118,9 +119,14 @@ public abstract class AbstractPublishingIntegrationTest extends BaseSpringTest
|
||||
protected ChannelType mockChannelType()
|
||||
{
|
||||
ChannelType channelType = mock(ChannelType.class);
|
||||
when(channelType.getId()).thenReturn(channelTypeId);
|
||||
when(channelType.getChannelNodeType()).thenReturn(TYPE_DELIVERY_CHANNEL);
|
||||
mockChannelTypeBehaviour(channelType);
|
||||
return channelType;
|
||||
}
|
||||
|
||||
protected void mockChannelTypeBehaviour(ChannelType channelType)
|
||||
{
|
||||
when(channelType.getId()).thenReturn(channelTypeId);
|
||||
when(channelType.getChannelNodeType()).thenReturn(TYPE_DELIVERY_CHANNEL);
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user