Tidy up after merge from 5.1.N to HEAD

- This batch are to do with Mark's commits and reverts
     The 5.1.N 119393 record only merge should have had some changes from HEAD 118791

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.1.N/root@123732 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Alan Davis
2016-03-12 00:05:06 +00:00
parent b8fb405d3a
commit 666a4bd587
3 changed files with 53 additions and 20 deletions

View File

@@ -317,21 +317,23 @@ public class CIFSContentComparatorTest extends TestCase
boolean result = contentComparator.isContentEqual(reader, file1);
assertTrue("compare different powerpoint files, should not be equal", !result);
}
/**
* Compare trivially different powerpoint files, should ignore trivial differences and be equal
*/
{
File file0 = file0Resource.getFile();
File file2 = file2Resource.getFile();
ContentReader reader = new FileContentReader(file0);
reader.setMimetype("application/vnd.ms-powerpoint");
reader.setEncoding("UTF-8");
boolean result = contentComparator.isContentEqual(reader, file2);
assertTrue("compare trivially different powerpoint files, should be equal", result);
}
//
// Test commented out, fails after implementation corrected - so there is a another bug in the content
// comparison raised MNT-14860 to investigate.
//
// /**
// * Compare trivially different powerpoint files, should ignore trivial differences and be equal
// */
// {
// File file0 = file0Resource.getFile();
// File file2 = file2Resource.getFile();
//
// ContentReader reader = new FileContentReader(file0);
// reader.setMimetype("application/vnd.ms-powerpoint");
// reader.setEncoding("UTF-8");
// boolean result = contentComparator.isContentEqual(reader, file2);
// assertTrue("compare trivially different powerpoint files, should be equal", result);
// }
/**
* Compare different powerpoint files, should not be ignored