chemistry-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j...@apache.org
Subject svn commit: r1549553 - /chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-inmemory/src/test/java/org/apache/chemistry/opencmis/inmemory/RepositoryServiceMutabilityTest.java
Date Mon, 09 Dec 2013 11:22:52 GMT
Author: jens
Date: Mon Dec  9 11:22:51 2013
New Revision: 1549553

URL: http://svn.apache.org/r1549553
Log:
InMemory: Another try to fix build.

Modified:
    chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-inmemory/src/test/java/org/apache/chemistry/opencmis/inmemory/RepositoryServiceMutabilityTest.java

Modified: chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-inmemory/src/test/java/org/apache/chemistry/opencmis/inmemory/RepositoryServiceMutabilityTest.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-inmemory/src/test/java/org/apache/chemistry/opencmis/inmemory/RepositoryServiceMutabilityTest.java?rev=1549553&r1=1549552&r2=1549553&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-inmemory/src/test/java/org/apache/chemistry/opencmis/inmemory/RepositoryServiceMutabilityTest.java
(original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-inmemory/src/test/java/org/apache/chemistry/opencmis/inmemory/RepositoryServiceMutabilityTest.java
Mon Dec  9 11:22:51 2013
@@ -268,7 +268,7 @@ public class RepositoryServiceMutability
             fRepSvc.updateType(repositoryId, typeDefRef, null);
             fail("updating a type should throw exception.");
         } catch (Exception e) {
-            assert (e instanceof CmisNotSupportedException);
+            assertTrue(e instanceof CmisNotSupportedException);
         }
         log.info("... testTypeMutabilityUpdate() finished.");
     }
@@ -288,7 +288,7 @@ public class RepositoryServiceMutability
             fRepSvc.deleteType(repositoryId, TYPE_ID_MUTABILITY, null);
             fail("deleting a type which is in use should throw exception.");
         } catch (Exception e) {
-            assert (e instanceof CmisInvalidArgumentException);
+            assertTrue(e instanceof CmisInvalidArgumentException);
         }
 
         fObjSvc.deleteObject(fRepositoryId, docId, true, null);
@@ -306,16 +306,16 @@ public class RepositoryServiceMutability
         }
 
         try {
-            fRepSvc.deleteType(repositoryId, BaseTypeId.CMIS_DOCUMENT.name(), null);
+            fRepSvc.deleteType(repositoryId, BaseTypeId.CMIS_DOCUMENT.value(), null);
             fail("deleting a CMIS base type throw exception.");
         } catch (Exception e) {
-            assert (e instanceof CmisInvalidArgumentException);
+            assertTrue (e instanceof CmisInvalidArgumentException);
         }
         try {
-            fRepSvc.deleteType(repositoryId, BaseTypeId.CMIS_FOLDER.name(), null);
+            fRepSvc.deleteType(repositoryId, BaseTypeId.CMIS_FOLDER.value(), null);
             fail("deleting a CMIS base type throw exception.");
         } catch (Exception e) {
-            assert (e instanceof CmisInvalidArgumentException);
+            assertTrue (e instanceof CmisInvalidArgumentException);
         }
 
         log.info("... testTypeMutabilityDeletion() finished.");
@@ -348,6 +348,7 @@ public class RepositoryServiceMutability
             cmisLaterType.setId(TYPE_ID_MUTABILITY);
             cmisLaterType.setDisplayName("Type with two properties");
             cmisLaterType.setDescription("Builtin InMemory type definition " + TYPE_ID_MUTABILITY);
+            cmisLaterType.setIsIncludedInSupertypeQuery(false);
 
             PropertyIntegerDefinitionImpl prop1 = PropertyCreationHelper.createIntegerDefinition(PROPERTY_ID_NUMBER,
                     "Sample Int Property", Updatability.READWRITE);



Mime
View raw message