You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@chemistry.apache.org by dc...@apache.org on 2010/02/26 16:51:45 UTC
svn commit: r916729 -
/incubator/chemistry/trunk/chemistry/chemistry-tck-atompub/src/main/java/org/apache/chemistry/tck/atompub/test/spec/AllowableActionsTest.java
Author: dcaruana
Date: Fri Feb 26 15:51:45 2010
New Revision: 916729
URL: http://svn.apache.org/viewvc?rev=916729&view=rev
Log:
Fix CMIS-134: TCK: AllowableActionsTest.testFolderAllowableActions There shouldn't be the ALLOWABLE_ACTIONS extension by default
- no longer rely on allowable actions being returned from create
Modified:
incubator/chemistry/trunk/chemistry/chemistry-tck-atompub/src/main/java/org/apache/chemistry/tck/atompub/test/spec/AllowableActionsTest.java
Modified: incubator/chemistry/trunk/chemistry/chemistry-tck-atompub/src/main/java/org/apache/chemistry/tck/atompub/test/spec/AllowableActionsTest.java
URL: http://svn.apache.org/viewvc/incubator/chemistry/trunk/chemistry/chemistry-tck-atompub/src/main/java/org/apache/chemistry/tck/atompub/test/spec/AllowableActionsTest.java?rev=916729&r1=916728&r2=916729&view=diff
==============================================================================
--- incubator/chemistry/trunk/chemistry/chemistry-tck-atompub/src/main/java/org/apache/chemistry/tck/atompub/test/spec/AllowableActionsTest.java (original)
+++ incubator/chemistry/trunk/chemistry/chemistry-tck-atompub/src/main/java/org/apache/chemistry/tck/atompub/test/spec/AllowableActionsTest.java Fri Feb 26 15:51:45 2010
@@ -52,11 +52,6 @@
Element allowableActions = model.parse(new StringReader(allowableActionsRes.getContentAsString()), null);
Assert.assertNotNull(allowableActions);
Assert.assertTrue(allowableActions instanceof CMISAllowableActions);
- CMISObject childObject = folder.getExtension(CMISConstants.OBJECT);
- Assert.assertNotNull(childObject);
- CMISAllowableActions objectAllowableActions = childObject.getExtension(CMISConstants.ALLOWABLE_ACTIONS);
- Assert.assertNotNull(objectAllowableActions);
- compareAllowableActions((CMISAllowableActions) allowableActions, objectAllowableActions);
// retrieve getProperties() with includeAllowableActions flag
Map<String, String> args = new HashMap<String, String>();
@@ -80,11 +75,6 @@
Element allowableActions = model.parse(new StringReader(allowableActionsRes.getContentAsString()), null);
Assert.assertNotNull(allowableActions);
Assert.assertTrue(allowableActions instanceof CMISAllowableActions);
- CMISObject childObject = document.getExtension(CMISConstants.OBJECT);
- Assert.assertNotNull(childObject);
- CMISAllowableActions objectAllowableActions = childObject.getExtension(CMISConstants.ALLOWABLE_ACTIONS);
- Assert.assertNotNull(objectAllowableActions);
- compareAllowableActions((CMISAllowableActions) allowableActions, objectAllowableActions);
// retrieve getProperties() with includeAllowableActions flag
Map<String, String> args = new HashMap<String, String>();