protected DDMStructure addStructure(long classNameId, String name, String description) throws Exception { return addStructure( 0, classNameId, null, name, description, read("test-structure.xsd"), StorageType.JSON.getValue(), DDMStructureConstants.TYPE_DEFAULT); }
@Before @Override public void setUp() throws Exception { super.setUp(); long classNameId = PortalUtil.getClassNameId(JournalArticle.class); String definition = read("test-ddm-structure-all-fields.xml"); _ddmStructure = addStructure( classNameId, null, "Test Structure", definition, StorageType.JSON.getValue(), DDMStructureConstants.TYPE_DEFAULT); }