chemistry-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j...@apache.org
Subject svn commit: r1229747 - /chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-util/src/main/java/org/apache/chemistry/opencmis/util/specexamples/Main.java
Date Tue, 10 Jan 2012 21:34:45 GMT
Author: jens
Date: Tue Jan 10 21:34:45 2012
New Revision: 1229747

URL: http://svn.apache.org/viewvc?rev=1229747&view=rev
Log:
change maxItems parameter for example requests
add getAllowableActions call

Modified:
    chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-util/src/main/java/org/apache/chemistry/opencmis/util/specexamples/Main.java

Modified: chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-util/src/main/java/org/apache/chemistry/opencmis/util/specexamples/Main.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-util/src/main/java/org/apache/chemistry/opencmis/util/specexamples/Main.java?rev=1229747&r1=1229746&r2=1229747&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-util/src/main/java/org/apache/chemistry/opencmis/util/specexamples/Main.java
(original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-util/src/main/java/org/apache/chemistry/opencmis/util/specexamples/Main.java
Tue Jan 10 21:34:45 2012
@@ -70,9 +70,9 @@ import org.apache.commons.logging.LogFac
 public class Main {
 
     private static final Log LOG = LogFactory.getLog(Main.class.getName());
-    private static final BigInteger MAX_ITEMS = BigInteger.valueOf(-1);
+    private static final BigInteger TYPE_DEPTH_ALL = BigInteger.valueOf(-1);
+    private static final BigInteger MAX_ITEMS = null;
     private static final BigInteger SKIP_COUNT = BigInteger.valueOf(0);
-    // private static final String COMPLEX_TYPE = "ComplexType";
     private static final String TOPLEVEL_TYPE = "DocumentTopLevel";
     private static final String VERSIONED_TYPE = "VersionableType";
     private static String LOGDIR = System.getProperty("java.io.tmpdir");// + File.separator;
@@ -99,8 +99,7 @@ public class Main {
     }
 
     public void runAllBindings() {
-//      for (int i = 0; i < BINDINGS.length; i++) {
-        for (int i = 0; i < 2; i++) {
+      for (int i = 0; i < BINDINGS.length; i++) {
             bindingType = BINDINGS[i];
             init(URLS[i], BINDINGS[i]);
             run();
@@ -115,6 +114,7 @@ public class Main {
         getRepositoryInfo();
 
         getRepositories();
+
         String docId = getTestDocId();
         String folderId = getTestFolderId();
 
@@ -129,6 +129,7 @@ public class Main {
         getAcl(docId);
         String id1 = createDocument("SampleDocument", TOPLEVEL_TYPE, rootFolderId, VersioningState.NONE);
         updateProperties(id1, PropertyIds.NAME, "RenamedDocument");
+        getAllowableActions(id1);
         deleteObject(id1);
 
         // Discovery Service:
@@ -443,9 +444,8 @@ public class Main {
     }
 
     private void getTypeDescendants(String typeId) {
-        final BigInteger DEPTH = BigInteger.valueOf(-1);
         LOG.debug("getTypeDescendants " + typeId);
-        repSvc.getTypeDescendants(repositoryId, typeId, DEPTH, true /* includePropertyDefinitions
*/, null);
+        repSvc.getTypeDescendants(repositoryId, typeId, TYPE_DEPTH_ALL, true /* includePropertyDefinitions
*/, null);
         renameFiles("getTypeDescendants");
         LOG.debug("getTypeDescendants() done.");
     }



Mime
View raw message