Package eu.scape_project.planning.xml

Examples of eu.scape_project.planning.xml.PlanParser.importProjects()


        File userDir = FileUtils.getUserDirectory();
        File outFile = new File(userDir, "statistics.csv");
        Writer writer = new FileWriter(outFile);
        PlanStatisticsGenerator statistics = new PlanStatisticsGenerator(writer, null);

        List<Plan> plans = parser.importProjects(in);
        for (Iterator<Plan> iter = plans.iterator(); iter.hasNext();) {
            statistics.writeStatistics(iter.next());
        }
        statistics.endReport();
        System.out.printf("Statistics written to : %s", outFile.getAbsolutePath());
View Full Code Here


        File userDir = FileUtils.getUserDirectory();
        File outFile = new File(userDir, "stage-statistics.csv");
        Writer writer = new FileWriter(outFile);
        StateChangeLogGenerator statistics = new StateChangeLogGenerator(writer, null);

        List<Plan> plans = parser.importProjects(in);
        for (Iterator<Plan> iter = plans.iterator(); iter.hasNext();) {
            statistics.writeStatistics(iter.next());
        }
        statistics.endReport();
        System.out.printf("Statistics written to : %s", outFile.getAbsolutePath());
View Full Code Here

public class QLDGeneratorTest {

    @Test
    public void generateQLDsBasedOnPlan() throws Exception{
        PlanParser  planParser = new PlanParser();
        List<Plan> plans = planParser.importProjects(getClass().getClassLoader().getResourceAsStream("qld/plan.xml"));
        assertNotNull(plans);
        assertEquals(1, plans.size());
       
        Plan plan = plans.get(0);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.