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:
Roy Wetherall
2010-03-10 12:03:24 +00:00
parent 67bda4baa6
commit 9fb5186744

View File

@@ -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