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:
Erik Winlof
2014-09-04 06:51:29 +00:00
parent 5dc1d70853
commit 66693dd50c

View File

@@ -206,35 +206,6 @@ public class OpenCmisLocalTest extends TestCase
//range request
content = doc1.getContentStream(BigInteger.valueOf(2),BigInteger.valueOf(4));
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)