chemistry-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From f...@apache.org
Subject svn commit: r1100911 - in /chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-tck/src/main/java/org/apache/chemistry/opencmis/tck: impl/AbstractSessionTest.java report/HtmlReport.java
Date Mon, 09 May 2011 08:06:02 GMT
Author: fmui
Date: Mon May  9 08:06:01 2011
New Revision: 1100911

URL: http://svn.apache.org/viewvc?rev=1100911&view=rev
Log:
TCK enhancements

Modified:
    chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-tck/src/main/java/org/apache/chemistry/opencmis/tck/impl/AbstractSessionTest.java
    chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-tck/src/main/java/org/apache/chemistry/opencmis/tck/report/HtmlReport.java

Modified: chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-tck/src/main/java/org/apache/chemistry/opencmis/tck/impl/AbstractSessionTest.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/impl/AbstractSessionTest.java?rev=1100911&r1=1100910&r2=1100911&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-tck/src/main/java/org/apache/chemistry/opencmis/tck/impl/AbstractSessionTest.java
(original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-tck/src/main/java/org/apache/chemistry/opencmis/tck/impl/AbstractSessionTest.java
Mon May  9 08:06:01 2011
@@ -890,7 +890,10 @@ public abstract class AbstractSessionTes
                 f = createResult(FAILURE, "Content stream allowed flag is not set!");
                 addResult(results, assertNotNull(docType.getContentStreamAllowed(), null,
f));
             } else if (BaseTypeId.CMIS_FOLDER.equals(type.getBaseTypeId())) {
-                // nothing to do
+                if (type.isFileable() != null) {
+                    f = createResult(FAILURE, "Folder types must be fileable!");
+                    addResult(results, assertIsTrue(type.isFileable(), null, f));
+                }
             } else if (BaseTypeId.CMIS_RELATIONSHIP.equals(type.getBaseTypeId())) {
                 RelationshipTypeDefinition relType = (RelationshipTypeDefinition) type;
 
@@ -925,6 +928,11 @@ public abstract class AbstractSessionTes
                         }
                     }
                 }
+
+                if (type.isFileable() != null) {
+                    f = createResult(FAILURE, "Relationship types must not be fileable!");
+                    addResult(results, assertIsFalse(type.isFileable(), null, f));
+                }
             } else if (BaseTypeId.CMIS_POLICY.equals(type.getBaseTypeId())) {
                 // nothing to do
             }

Modified: chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-tck/src/main/java/org/apache/chemistry/opencmis/tck/report/HtmlReport.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/report/HtmlReport.java?rev=1100911&r1=1100910&r2=1100911&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-tck/src/main/java/org/apache/chemistry/opencmis/tck/report/HtmlReport.java
(original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-tck/src/main/java/org/apache/chemistry/opencmis/tck/report/HtmlReport.java
Mon May  9 08:06:01 2011
@@ -40,7 +40,7 @@ public class HtmlReport extends Abstract
     public void createReport(Map<String, String> parameters, List<CmisTestGroup>
groups, Writer writer)
             throws IOException {
         writer.write("<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01//EN\" \"http://www.w3.org/TR/html4/strict.dtd\">\n");
-        writer.write("<html><head>\n<title>Report</title>\n");
+        writer.write("<html><head>\n<title>OpenCMIS TCK Report</title>\n");
         writer.write("<style TYPE=\"text/css\">\n");
         writer.write(".tckResultINFO { margin-left: 5px; margin-right: 5px; }\n");
         writer.write(".tckResultSKIPPED { margin-left: 5px; margin-right: 5px; background-color:
#FFFFFF; }\n");



Mime
View raw message