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

107650: Upgrade Chemistry OpenCMIS to 0.13.0


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@107761 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Alan Davis
2015-07-07 08:06:49 +00:00
parent f6367cb8fe
commit d70ddcbe31

View File

@@ -296,7 +296,7 @@ public class OpenCmisLocalTest extends TestCase
ThresholdOutputStream tos = streamFactory.newOutputStream(); ThresholdOutputStream tos = streamFactory.newOutputStream();
OutputStreamWriter writer = new OutputStreamWriter(tos); OutputStreamWriter writer = new OutputStreamWriter(tos);
writer.write(content); writer.write(content);
ContentStreamImpl contentStream = new ContentStreamImpl(filename, BigInteger.valueOf(tos.getSize()), MimetypeMap.MIMETYPE_TEXT_PLAIN, tos.getInputStream()); ContentStreamImpl contentStream = new ContentStreamImpl(filename, BigInteger.valueOf(tos.getLength()), MimetypeMap.MIMETYPE_TEXT_PLAIN, tos.getInputStream());
return contentStream; return contentStream;
} }