mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
Merged HEAD-BUG-FIX (5.0/Cloud) to HEAD (5.0/Cloud)
75082: Merged WAT2 (5.0/Cloud) to HEAD-BUG-FIX (5.0/Cloud) 73269: Renamed ContentReadEvent to ContentEventImpl git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@75410 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -32,7 +32,7 @@ import java.util.concurrent.atomic.AtomicInteger;
|
||||
|
||||
import junit.framework.TestCase;
|
||||
|
||||
import org.alfresco.events.types.ContentReadEvent;
|
||||
import org.alfresco.events.types.ContentEventImpl;
|
||||
import org.alfresco.events.types.ContentReadRangeEvent;
|
||||
import org.alfresco.repo.content.MimetypeMap;
|
||||
import org.alfresco.repo.content.filestore.FileContentWriter;
|
||||
@@ -206,10 +206,10 @@ public class OpenCmisLocalTest extends TestCase
|
||||
//range request
|
||||
content = doc1.getContentStream(BigInteger.valueOf(2),BigInteger.valueOf(4));
|
||||
assertNotNull(content);
|
||||
List<ContentReadEvent> events = eventPublisher.getQueueByType(ContentReadEvent.class);
|
||||
List<ContentEventImpl> events = eventPublisher.getQueueByType(ContentEventImpl.class);
|
||||
int found = 0;
|
||||
|
||||
for (ContentReadEvent cre : events)
|
||||
for (ContentEventImpl cre : events)
|
||||
{
|
||||
if (doc1NodeRef.getId().equals(cre.getNodeId()))
|
||||
{
|
||||
@@ -237,7 +237,7 @@ public class OpenCmisLocalTest extends TestCase
|
||||
|
||||
}
|
||||
|
||||
private void commonAsserts(byte[] byteContent,ContentReadEvent cre)
|
||||
private void commonAsserts(byte[] byteContent,ContentEventImpl cre)
|
||||
{
|
||||
assertEquals(Client.cmis, cre.getClient());
|
||||
assertEquals(byteContent.length, cre.getSize());
|
||||
|
Reference in New Issue
Block a user