chemistry-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From f...@apache.org
Subject svn commit: r1571329 - /chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-tck/src/main/java/org/apache/chemistry/opencmis/tck/tests/crud/SetAndDeleteContentTest.java
Date Mon, 24 Feb 2014 16:19:50 GMT
Author: fmui
Date: Mon Feb 24 16:19:50 2014
New Revision: 1571329

URL: http://svn.apache.org/r1571329
Log:
TCK: added property checks after deleteContentStream

Modified:
    chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-tck/src/main/java/org/apache/chemistry/opencmis/tck/tests/crud/SetAndDeleteContentTest.java

Modified: chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-tck/src/main/java/org/apache/chemistry/opencmis/tck/tests/crud/SetAndDeleteContentTest.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-tck/src/main/java/org/apache/chemistry/opencmis/tck/tests/crud/SetAndDeleteContentTest.java?rev=1571329&r1=1571328&r2=1571329&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-tck/src/main/java/org/apache/chemistry/opencmis/tck/tests/crud/SetAndDeleteContentTest.java
(original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-tck/src/main/java/org/apache/chemistry/opencmis/tck/tests/crud/SetAndDeleteContentTest.java
Mon Feb 24 16:19:50 2014
@@ -114,6 +114,23 @@ public class SetAndDeleteContentTest ext
                     f = createResult(FAILURE, "Document still has content after deleteContentStream()
has been called!");
                     addResult(assertNull(contentDoc.getContentStream(), null, f));
 
+                    f = createResult(
+                            FAILURE,
+                            "Document still has a MIME type after deleteContentStream() has
been called: "
+                                    + contentDoc.getContentStreamMimeType());
+                    addResult(assertNull(contentDoc.getContentStreamMimeType(), null, f));
+
+                    f = createResult(FAILURE,
+                            "Document still has a content length after deleteContentStream()
has been called: "
+                                    + contentDoc.getContentStreamLength());
+                    addResult(assertEquals(-1L, contentDoc.getContentStreamLength(), null,
f));
+
+                    f = createResult(
+                            FAILURE,
+                            "Document still has a file name after deleteContentStream() has
been called: "
+                                    + contentDoc.getContentStreamFileName());
+                    addResult(assertNull(contentDoc.getContentStreamFileName(), null, f));
+
                     workDoc = contentDoc;
                 } catch (CmisNotSupportedException e) {
                     addResult(createResult(WARNING, "deleteContentStream() is not supported!"));



Mime
View raw message