Merged HEAD-BUG-FIX (5.1/Cloud) to HEAD (5.1/Cloud)

95994: Merged 5.0.N (5.0.1) to HEAD-BUG-FIX (5.1/Cloud)
      95823: MNT-12995: Items are not accessible using the urls received via IMAP
         - Modified the test to pass accordingly to the new IMAP message.


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@96023 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Alan Davis
2015-02-04 07:45:02 +00:00
parent b0d61a119b
commit 85f8b90098

View File

@@ -304,7 +304,10 @@ public class ImapMessageTest extends TestCase
final int count = getMessageSize(folder, uid);
// Get first part
BODY body = getMessageBodyPart(folder, uid, 0, count - 100);
// Split the message into 2 part using a non multiple of 4 - 103 is a prime number
// as the BASE64Decoder may not throw the IOException
// see MNT-12995
BODY body = getMessageBodyPart(folder, uid, 0, count - 103);
// Rename message. The size of letter describing the node will change
// These changes should be committed because it should be visible from client
@@ -315,7 +318,7 @@ public class ImapMessageTest extends TestCase
txn.commit();
// Read second message part
BODY bodyRest = getMessageBodyPart(folder, uid, count - 100, 100);
BODY bodyRest = getMessageBodyPart(folder, uid, count - 103, 103);
// Creating and parsing message from 2 parts
MimeMessage message = new MimeMessage(Session.getDefaultInstance(new Properties()), new SequenceInputStream(new BufferedInputStream(body.getByteArrayInputStream()),