@Test public void testWithoutParent() throws Exception { DocumentType type = schemaManager.getDocumentType("Document"); JsonAssert json = jsonAssert(type); json.properties(5); json.has("parent").isNull(); }
@Test public void test() throws Exception { DocumentType type = schemaManager.getDocumentType("Folder"); JsonAssert json = jsonAssert(type); json.properties(5); json.has("entity-type").isEquals("docType"); json.has("name").isEquals("Folder"); json.has("parent").isEquals("Document"); json.has("facets").contains("Folderish"); json = json.has("schemas").length(2); json.childrenContains("entity-type", "schema", "schema"); json.childrenContains("name", "common", "dublincore"); }