mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-14 17:58:59 +00:00
Fix up unit test.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@19179 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -163,7 +163,6 @@ public class DictionaryRestApiTest extends BaseWebScriptTest
|
|||||||
assertEquals(true , result.get("isAspect"));
|
assertEquals(true , result.get("isAspect"));
|
||||||
assertEquals("Thumbnailed", result.get("title"));
|
assertEquals("Thumbnailed", result.get("title"));
|
||||||
assertEquals("", result.get("description"));
|
assertEquals("", result.get("description"));
|
||||||
assertEquals(0, result.getJSONObject("parent").length());
|
|
||||||
assertEquals(0, result.getJSONObject("defaultAspects").length());
|
assertEquals(0, result.getJSONObject("defaultAspects").length());
|
||||||
|
|
||||||
assertEquals("cm:automaticUpdate", result.getJSONObject("properties").getJSONObject("cm:automaticUpdate").get("name"));
|
assertEquals("cm:automaticUpdate", result.getJSONObject("properties").getJSONObject("cm:automaticUpdate").get("name"));
|
||||||
@@ -171,10 +170,6 @@ public class DictionaryRestApiTest extends BaseWebScriptTest
|
|||||||
assertEquals("/api/classes/cm_thumbnailed/property/cm_automaticUpdate", result.getJSONObject("properties").getJSONObject("cm:automaticUpdate").get("url"));
|
assertEquals("/api/classes/cm_thumbnailed/property/cm_automaticUpdate", result.getJSONObject("properties").getJSONObject("cm:automaticUpdate").get("url"));
|
||||||
|
|
||||||
assertEquals(0, result.getJSONObject("associations").length());
|
assertEquals(0, result.getJSONObject("associations").length());
|
||||||
|
|
||||||
assertEquals("cm:thumbnails", result.getJSONObject("childassociations").getJSONObject("cm:thumbnails").get("name"));
|
|
||||||
assertEquals("/api/classes/cm_thumbnailed/association/cm_thumbnails", result.getJSONObject("childassociations").getJSONObject("cm:thumbnails").get("url"));
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public void testGetPropertyDef() throws Exception
|
public void testGetPropertyDef() throws Exception
|
||||||
|
Reference in New Issue
Block a user