mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-14 17:58:59 +00:00
Merged HEAD-BUG-FIX (5.0/Cloud) to HEAD (5.0/Cloud)
82377: Merged WAT2 (5.0/Cloud) to HEAD-BUG-FIX (5.0/Cloud) 76489: Removed checking for download events because that functionality has been removed git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@83220 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -206,35 +206,6 @@ public class OpenCmisLocalTest extends TestCase
|
|||||||
//range request
|
//range request
|
||||||
content = doc1.getContentStream(BigInteger.valueOf(2),BigInteger.valueOf(4));
|
content = doc1.getContentStream(BigInteger.valueOf(2),BigInteger.valueOf(4));
|
||||||
assertNotNull(content);
|
assertNotNull(content);
|
||||||
List<ContentEventImpl> events = eventPublisher.getQueueByType(ContentEventImpl.class);
|
|
||||||
int found = 0;
|
|
||||||
|
|
||||||
for (ContentEventImpl cre : events)
|
|
||||||
{
|
|
||||||
if (doc1NodeRef.getId().equals(cre.getNodeId()))
|
|
||||||
{
|
|
||||||
found ++;
|
|
||||||
commonAsserts(byteContent, cre);
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
assertEquals(1, found);
|
|
||||||
|
|
||||||
List<ContentReadRangeEvent> revents = eventPublisher.getQueueByType(ContentReadRangeEvent.class);
|
|
||||||
for (ContentReadRangeEvent cre : revents)
|
|
||||||
{
|
|
||||||
if (doc1NodeRef.getId().equals(cre.getNodeId()))
|
|
||||||
{
|
|
||||||
found ++;
|
|
||||||
commonAsserts(byteContent, cre);
|
|
||||||
assertEquals("2 - 4", cre.getRange());
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
assertEquals(2, found);
|
|
||||||
//Found and validated 2 events.
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private void commonAsserts(byte[] byteContent,ContentEventImpl cre)
|
private void commonAsserts(byte[] byteContent,ContentEventImpl cre)
|
||||||
|
Reference in New Issue
Block a user