chemistry-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j...@apache.org
Subject svn commit: r923821 - in /incubator/chemistry/trunk/opencmis/opencmis-client/opencmis-provider-impl/src/test/java/org/apache/opencmis/client/provider/atompub: SimpleReadOnlyTests.java SimpleReadWriteTests.java
Date Tue, 16 Mar 2010 15:57:06 GMT
Author: jens
Date: Tue Mar 16 15:57:06 2010
New Revision: 923821

URL: http://svn.apache.org/viewvc?rev=923821&view=rev
Log:
add comment to startup code how to enable cookie management for client

Modified:
    incubator/chemistry/trunk/opencmis/opencmis-client/opencmis-provider-impl/src/test/java/org/apache/opencmis/client/provider/atompub/SimpleReadOnlyTests.java
    incubator/chemistry/trunk/opencmis/opencmis-client/opencmis-provider-impl/src/test/java/org/apache/opencmis/client/provider/atompub/SimpleReadWriteTests.java

Modified: incubator/chemistry/trunk/opencmis/opencmis-client/opencmis-provider-impl/src/test/java/org/apache/opencmis/client/provider/atompub/SimpleReadOnlyTests.java
URL: http://svn.apache.org/viewvc/incubator/chemistry/trunk/opencmis/opencmis-client/opencmis-provider-impl/src/test/java/org/apache/opencmis/client/provider/atompub/SimpleReadOnlyTests.java?rev=923821&r1=923820&r2=923821&view=diff
==============================================================================
--- incubator/chemistry/trunk/opencmis/opencmis-client/opencmis-provider-impl/src/test/java/org/apache/opencmis/client/provider/atompub/SimpleReadOnlyTests.java
(original)
+++ incubator/chemistry/trunk/opencmis/opencmis-client/opencmis-provider-impl/src/test/java/org/apache/opencmis/client/provider/atompub/SimpleReadOnlyTests.java
Tue Mar 16 15:57:06 2010
@@ -45,6 +45,13 @@ public class SimpleReadOnlyTests extends
 
   @Override
   protected CmisProvider createProvider() {
+    // Add the default Java cookie manager from Java 1.6 to optimize authentication
+    // by reusing the common case where a token is stored in a cookie.
+    // Note: Enable cookie management requires Java 1.6, uncomment the following two lines
to 
+    //       enable cookie management for the tests.
+//    java.net.CookieManager cm = new java.net.CookieManager(null, CookiePolicy.ACCEPT_ALL);
+//    java.net.CookieHandler.setDefault(cm);
+
     return AtomPubTestProviderFactory.createProvider(getAtomPubURL(), getUsername(), getPassword());
   }
 

Modified: incubator/chemistry/trunk/opencmis/opencmis-client/opencmis-provider-impl/src/test/java/org/apache/opencmis/client/provider/atompub/SimpleReadWriteTests.java
URL: http://svn.apache.org/viewvc/incubator/chemistry/trunk/opencmis/opencmis-client/opencmis-provider-impl/src/test/java/org/apache/opencmis/client/provider/atompub/SimpleReadWriteTests.java?rev=923821&r1=923820&r2=923821&view=diff
==============================================================================
--- incubator/chemistry/trunk/opencmis/opencmis-client/opencmis-provider-impl/src/test/java/org/apache/opencmis/client/provider/atompub/SimpleReadWriteTests.java
(original)
+++ incubator/chemistry/trunk/opencmis/opencmis-client/opencmis-provider-impl/src/test/java/org/apache/opencmis/client/provider/atompub/SimpleReadWriteTests.java
Tue Mar 16 15:57:06 2010
@@ -18,6 +18,7 @@
  */
 package org.apache.opencmis.client.provider.atompub;
 
+import java.net.CookiePolicy;
 import java.util.HashSet;
 import java.util.Set;
 
@@ -45,6 +46,13 @@ public class SimpleReadWriteTests extend
 
   @Override
   protected CmisProvider createProvider() {
+    // Add the default Java cookie manager from Java 1.6 to optimize authentication
+    // by reusing the common case where a token is stored in a cookie.
+    // Note: Enable cookie management requires Java 1.6, uncomment the following two lines
to 
+    //       enable cookie management for the tests.
+//    java.net.CookieManager cm = new java.net.CookieManager(null, CookiePolicy.ACCEPT_ALL);
+//    java.net.CookieHandler.setDefault(cm);
+
     return AtomPubTestProviderFactory.createProvider(getAtomPubURL(), getUsername(), getPassword());
   }
 



Mime
View raw message