@Test public void exportToXml_planProperties() throws PlanningException { Plan p = generateBasicPlan(); p.setPlanProperties(generatePlanProperties()); Document doc = exporter.exportToXml(p); Element ppElement = (Element) getNode(doc, "/plans/p:plan/p:properties"); assertThat(ppElement.attributeValue("author"), is("Author")); assertThat(ppElement.attributeValue("organization"), is("Organization")); assertThat(ppElement.attributeValue("name"), is("Name")); assertThat(ppElement.attributeValue("privateProject"), is("true")); assertThat(ppElement.attributeValue("reportPublic"), is("true")); assertThat(ppElement.attributeValue("repositoryIdentifier"), is("Repository ID")); Element reportElement = getElement(doc, "/plans/p:plan/p:properties/p:report"); checkDigitalObject(reportElement, p.getPlanProperties().getReportUpload()); assertThat(getElement(doc, "/plans/p:plan/p:properties/p:state").attributeValue("value"), is("0")); checkContentByName(ppElement, "p:description"); checkContentByName(ppElement, "p:owner"); }
public Document exportToXml(Plan p) throws PlanningException { Document doc = createProjectDoc(); addProject(p, doc, false); return doc; }
ProjectExporter implements Serializable { public Document exportToXml(Plan p) throws PlanningException { Document doc = createProjectDoc(); addProject(p, doc, false); return doc; } }
ProjectExporter implements Serializable { public Document exportToXml(Plan p) throws PlanningException { Document doc = createProjectDoc(); addProject(p, doc, false); return doc; } ProjectExporter(); }
ProjectExporter implements Serializable { public Document exportToXml(Plan p) throws PlanningException { Document doc = createProjectDoc(); addProject(p, doc, false); return doc; } ProjectExporter(); Document exportToXml(Plan p); Document createProjectDoc(); Document createTemplateDoc(); String getObjectiveTreeAsTemplate(Plan p, String templateLibrary, String name, String description); void exportToFile(Plan p, File target); Document exportTemplates(List<TemplateTree> trees); void addProject(Plan p, Document projectsDoc, boolean addDigitalObjectData); String exportTreeToFreemind(Plan plan); String exportTreeToFreemind(TreeNode treeRoot); }
ProjectExporter implements Serializable { public Document exportToXml(Plan p) throws PlanningException { Document doc = createProjectDoc(); addProject(p, doc, false); return doc; } ProjectExporter(); Document exportToXml(Plan p); Document createProjectDoc(); Document createTemplateDoc(); String getObjectiveTreeAsTemplate(Plan p, String templateLibrary, String name, String description); void exportToFile(Plan p, File target); Document exportTemplates(List<TemplateTree> trees); void addProject(Plan p, Document projectsDoc, boolean addDigitalObjectData); String exportTreeToFreemind(Plan plan); String exportTreeToFreemind(TreeNode treeRoot); static OutputFormat prettyFormat; static OutputFormat compactFormat; }